Update Feature Geometry
update_feature_geometryReplace feature geometries in a QGIS layer using WKT coordinates in the layer’s CRS. Run inside an edit session for undoable changes or write updates directly to the data source.
Instructions
Replace feature geometries. updates: [{fid: 1, geometry_wkt: 'POINT(1 2)'}]. WKT must be in the layer's CRS. Inside an edit session the change is undoable; otherwise it is written straight to the data source.
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>",
"updates": "<updates>"
},
"name": "update_feature_geometry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | ||
| layer_id | Yes |