query_features
Extract vector layer data from GeoServer using CQL filters to specify query conditions, return properties, and limit results.
Instructions
Query features from a vector layer using CQL filter.
Args:
workspace: The workspace containing the layer
layer: The layer to query
filter: Optional CQL filter expression
properties: Optional list of properties to return
max_features: Maximum number of features to return
Returns:
GeoJSON FeatureCollection with query results
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filter | No | ||
layer | Yes | ||
max_features | No | ||
properties | No | ||
workspace | Yes |
Input Schema (JSON Schema)
{
"properties": {
"filter": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filter"
},
"layer": {
"title": "Layer",
"type": "string"
},
"max_features": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": 10,
"title": "Max Features"
},
"properties": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Properties"
},
"workspace": {
"title": "Workspace",
"type": "string"
}
},
"required": [
"workspace",
"layer"
],
"title": "query_featuresArguments",
"type": "object"
}