data_convert
Convert geospatial data between GeoJSON, WKT, WKB, KML, GPX, CSV, and polyline formats. Automatically detects the input format and validates results, reporting specific issues like self-intersections or out-of-range coordinates.
Instructions
Convert geospatial data between GeoJSON, WKT, WKB, KML, GPX, CSV and polyline.
Detects the input format automatically and validates the result, reporting specific problems (self-intersections, out-of-range coordinates, the removed RFC 7946 'crs' member) rather than a bare pass/fail.
Handles the everyday format wrangling of real work: a customer sends KML, the routing engine wants an encoded polyline, the warehouse system exports CSV, the web map needs GeoJSON. Runs entirely offline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The geometry or dataset to convert: GeoJSON (object or string), WKT, WKB hex, an encoded polyline, KML, GPX, or CSV with latitude/longitude columns. | |
| to_format | No | Output format. | geojson |
| from_format | No | Input format; 'auto' detects it. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| output | Yes | ||
| validation | No | ||
| input_format | Yes | ||
| measurements | Yes | ||
| output_format | Yes |