Add Features
add_featuresAdd features with attributes and WKT geometries to a vector layer, with optional CRS reprojection and validation against the layer's geometry type.
Instructions
Add features to a vector layer. Each feature: {attributes: {field: value}, geometry_wkt: 'POINT(1 2)'}. geometry_wkt is in the layer's CRS, or in crs when given (it is then reprojected). A geometry type the layer cannot hold is refused; invalid geometry or 2D on a Z layer comes back in warnings. Returns count of added features.
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": {
"layer_id": "<layer_id>",
"features": "<features>"
},
"name": "add_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crs | No | ||
| features | Yes | ||
| layer_id | Yes |