write_file_gpd
Export geospatial data to Shapefile, GeoJSON, or GPKG by specifying input and output file paths, with optional driver selection.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gdf_path": "<gdf_path>",
"output_path": "<output_path>"
},
"name": "write_file_gpd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gdf_path | Yes | ||
| output_path | Yes | ||
| driver | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||