Buffer, merge, clip or simplify features
process_geometryUse this when the user wants to apply one GIS operation to a set of features (an uploaded file, a link, inline GeoJSON, or a download link from another TerraLab answer) and get the result as a file: buffer every feature by radius_m, union (dissolve all features into one, or one per value of dissolve_field), intersection or difference with a second layer, clip to a second layer or to an area (place, place with radius_m, or bbox), simplify by tolerance_m, centroid of each feature, or area_length (adds area_m2, perimeter_m and length_m to each feature, geodesic). Overlays run in WGS 84 degrees; buffer, simplify and centroid in a local equidistant projection. Up to 20,000 features and 100,000 vertices (10,000 for buffer). Returns the feature count, geometry types, total area or length, a map and GeoJSON, KML, Shapefile zip, GeoPackage and CSV downloads. Not for one distance or the area of a shape drawn in the chat: that is measure. Not for reading or converting a file without changing its geometry: that is open_gis_file. Never use the user's current location unless they type it. Download links build their file when opened; no file is saved. Never pass these links to open_gis_file: list every format the user needs in formats, in this one call. TerraLab reads the file or link to answer and keeps no copy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public http(s) link to the features, or a TerraLab download link from an earlier answer. | |
| area | No | For clip: the area to keep, as a bbox or a place with a radius (its bounding box is used). The place the user asks about, not the user's own location. | |
| file | No | A file uploaded in the conversation (GeoJSON, KML, KMZ, GPX, zipped Shapefile, CSV or WKT). | |
| title | No | Name for the map and the output files. | |
| formats | No | Download formats. All five by default. | |
| geojson | No | The features as a GeoJSON FeatureCollection, Feature or geometry in WGS 84 (longitude, latitude). | |
| radius_m | No | For buffer: the distance in metres (convert km or miles first). | |
| with_url | No | For intersection, difference and clip: a link to the second layer, or a TerraLab download link. | |
| operation | Yes | The operation to apply. | |
| with_file | No | For intersection, difference and clip: the second layer, uploaded in the conversation. | |
| tolerance_m | No | For simplify: the largest allowed shift of the outline in metres. | |
| with_geojson | No | For intersection, difference and clip: the second layer as GeoJSON in WGS 84. Only its polygons count. | |
| dissolve_field | No | For union: dissolve into one feature per value of this field instead of one feature. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code, on errors only. | |
| hint | No | What to do next, on errors only. | |
| message | No | Error message, on errors only. | |
| sources | No | Data sources and licences of the result. | |
| downloads | No | Download links; each builds its file when opened. | |
| truncated | No | ||
| totalFound | No |