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:
Dependencies:
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")
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:
shapely.geometry.LineStringGeoDataFramefromgeopandasto wrap itoutput/curve.geojsonviato_file(..., driver="GeoJSON")Bezier.pyto trigger this exportDependencies:
shapelygeopandasExample code snippet: