-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently, the Bezier curve is visualized using matplotlib, but not exported for use in GIS platforms.
Goal: Enable saving the generated Bezier curve to GeoJSON, so it can be opened in QGIS, Leaflet.js, or other spatial tools.
Tasks:
- Convert curve points (x, y) to
shapely.geometry.LineString - Use
GeoDataFramefromgeopandasto wrap it - Export to
output/curve.geojsonviato_file(..., driver="GeoJSON") - Add a flag or function call in
Bezier.pyto trigger this export
Dependencies:
shapelygeopandas
Example code snippet:
from shapely.geometry import LineString
import geopandas as gpd
line = LineString(list_of_xy_points)
gdf = gpd.GeoDataFrame(index=[0], geometry=[line])
gdf.to_file("output/curve.geojson", driver="GeoJSON")Metadata
Metadata
Assignees
Labels
No labels