Geometry primitivesFree
geometry_ops
Operazioni PostGIS unary e binary su WKT fornito dall'utente. Unary: buffer (con distance_m), simplify, centroid, envelope, convex_hull. Binary: intersection, union, difference. Restituisce WKT del risultato + tipo geometria + metriche area/lunghezza. SRID limitato a allowlist curato.
Use cases
- Buffer di una location proprietà di 500m per derivare un poligono di ricerca.
- Simplify di un poligono WKT pesante prima di passarlo a un tool downstream.
- Calcola l'intersezione di due poligoni custom (es. allagamento + limite amministrativo).
- Convex hull di un cluster di punti generato upstream.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| op | string | required | buffer | simplify | centroid | envelope | convex_hull | intersection | union | difference. |
| geom_a | string | required | Input WKT geometry. |
| geom_b | string | optional | Second geometry for binary ops. |
| distance_m | number | optional | Buffer distance. Required for buffer. Max 50,000 m. |
| tolerance | number | optional | Simplify tolerance. Required for simplify. Max 1.0. |
| srid | integer | optional | Coordinate system. Allowlist: 4326, 3857, 3003, 3004, 4258, 6707, 6708, 32632, 32633. Default 4326. |
Example request
curl
bash
curl -X POST https://mcp.qubitdata.it/mcp \
-H "Authorization: Bearer $QUBITDATA_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "geometry_ops",
"arguments": {
"op": "buffer",
"geom_a": "POINT(9.19 45.4642)",
"distance_m": 500,
"srid": 4326
}
}
}'
Example response
JSON-RPC 2.0 result
json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"wkt\": \"POLYGON((9.1964 45.4642, 9.1962 45.4598, ...))\",\n \"type\": \"Polygon\",\n \"area_m2\": 785398\n}"
}
]
}
}
Prompt da provare
Incollali in Claude Desktop, Cursor o un qualsiasi client MCP collegato a https://mcp.qubitdata.it/mcp.
-
Claude Desktop
Buffera POINT(9.19 45.4642) di 500m e ritorna il WKT.
-
Cursor
Calcola la convex hull del cluster di punti che ti passo come MULTIPOINT WKT.
-
Client MCP custom
Simplify di questo poligono pesante a tolleranza 0.0001 prima di inoltrarlo.
Related tools
geometry_validate · coordinate_transform · isochrone_proxy
Get started
Registrati per una free key e richiama il tool dal tuo agente. Servono cap geografici più ampi o quota più alta? Vedi pricing.
Last updated: