write_file_gpd
Convert and save GeoDataFrame to geospatial file formats like Shapefile, GeoJSON, or GPKG using specified driver, enabling efficient geospatial data export.
Instructions
Export a GeoDataFrame to a file (Shapefile, GeoJSON, GPKG, etc.).
Args:
gdf_path: Path to the input geospatial file.
output_path: Path to save the exported file.
driver: Optional OGR driver name (e.g., 'ESRI Shapefile', 'GeoJSON', 'GPKG').
Returns:
Dictionary with status and message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
driver | No | ||
gdf_path | Yes | ||
output_path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"driver": {
"default": null,
"title": "Driver",
"type": "string"
},
"gdf_path": {
"title": "Gdf Path",
"type": "string"
},
"output_path": {
"title": "Output Path",
"type": "string"
}
},
"required": [
"gdf_path",
"output_path"
],
"title": "write_file_gpdArguments",
"type": "object"
}