Geospatial equivalent of create_from_dataframe()
#373
Labels
🙋♀️ Feature Request
New feature or request
create_from_dataframe()
#373
🙋 feature request
Just as normal pandas DataFrames can be created using the
create_from_dataframe()
method, it would be great if we could do the same for aGeoPandasDataFrame
.🤔 Expected Behavior
Which would create the dataset, generate the attributes—and set the geometry as the correct type.
When setting the primary key and using the
__geo_interface__
implementation of geopandas, the value infeature['id']
is based on the index of the GeoDataFrame.To manually set this to a different column,
geodf.index = geodf['my_primary_key']
can be used.🔦 Context
Using the geoJSON API endpoint is less than ideal as all column fields need to be specified in the curl command.
Having it integrated neatly would also allow us to leverage the many types of geospatial data that geopandas can read. (shape files, etc.)
The text was updated successfully, but these errors were encountered: