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
GeoDataFrame
fromgeopandas
to wrap it - Export to
output/curve.geojson
viato_file(..., driver="GeoJSON")
- Add a flag or function call in
Bezier.py
to trigger this export
Dependencies:
shapely
geopandas
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