holoviz / holonote

Tools to create, edit, and persist annotated regions for HoloViews
https://holonote.holoviz.org
BSD 3-Clause "New" or "Revised" License
23 stars 2 forks source link

Allow Paths or generic geometry support to be used for annotations #96

Open ahuang11 opened 8 months ago

ahuang11 commented 8 months ago

I want to annotate a line on a map and have it persisted:

image

At the current moment, I believe there are "start"/"end" and "point" columns? I additionally propose a "geometry" column (if there isn't one yet, this seems to suggest there is partial support for it)?

Since I don't think SQLite natively supports geometry, I imagine the we could utilize to_wkt (well-known-text) to store the data as string type, and from_wkt to serialize back the geometry, like I did here for MapnStreets since Parquet also doesn't natively support geometry.

I am happy to help implement this if the plan is agreed on.