Add Features
add_featuresAdd features to a vector layer with attributes and WKT geometry, reprojecting to the layer's CRS when needed. Rejects invalid geometry and returns the count of added features.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crs | No | ||
| features | Yes | ||
| layer_id | Yes |