The /data resource represents the data querying capabilities of Weave.
Metadata
All /data resources support a 'metadata' boolean query parameter. This parameter determines if a column definition of the queried data is returned along with the result.
1. Top-level resource: services/v1/data
Provides a list of all data definitions configured and accessible to the user on Weave.
Example 1 - When metadata=true
curl -X GET --header 'Accept: application/json' 'http://localhost:8080/weave/services/v1/data?metadata=true'
Output
Example 2 - When metadata=false
curl -X GET --header 'Accept: application/json' 'http://localhost:8080/weave/services/v1/data?metadata=false'
Output
Sub-resources:
1. /data/execute/ids/{dataId}
For the given feature id, queries and returns data matching the provided data configuration id.
Parameters
GET query parameters:
ids - list of strings - feature ids (identifies individual entity items)
Example 2
curl -X GET --header 'Accept: application/json' 'http://localhost:8080/weave/services/v1/data/execute/ids/addresspoiDetails?ids=710247_2&metadata=false'
Output
2. /data/execute/line/{dataId}
Returns data associated with the geometrical line segment along the two specified vertices. E.g. when working with property layer this refers to properties that fall within the specified spatial operation along the specified geometrical line.
Example 3
curl -X GET --header 'Accept: application/json' 'http://localhost:8080/weave/services/v1/data/execute/line/addresspoiDetails?entity=property&x1=16784645.367663&y1=-4107061.3011045&x2=16784700.367663&y2=-4106561.3011045&crs=EPSG%3A3857&spatialOperation=intersects&selectedOnly=false&metadata=false'
Output
3. /data/execute/search/{dataId}
Returns data associated with the specified search string.
Example 4
curl -X GET --header 'Accept: application/json' 'http://localhost:8080/weave/services/v1/data/execute/search/addresspoiDetails?searchId=addresspoi¶meters=plannumber%3DDP778240&metadata=false'
Output
4. /data/execute/linearray/{dataId}
Returns data associated with the provided shape. E.g. in the property layer, this means the properties intersecting the specified line array geometrical shape.
Example 5
curl -X GET --header 'Accept: application/json' 'http://localhost:8080/weave/services/v1/data/execute/linearray/addresspoiDetails?entity=property&crs=EPSG%3A3857&spatialOperation=intersects&selectedOnly=false&metadata=false&points=16784645.367%2C-4107061.301%2C16784642.367%2C-4107061.301%2C16784645.367%2C-4107066.301'
Output
5. /data/execute/buffer/{dataId}
Returns data associated with the specified spatial operation on the map area of the point and the buffer area specified around it. E.g. in the property layer, when an 'intersect ' operation is specified this refers to properties that intersect the specified point and the geometrical buffer around the point.
Example 6
curl -X GET --header 'Accept: application/json' 'http://52.62.90.95:9090/weave/services/v1/data/execute/buffer/addresspoiDetails?entity=property&x=16784645.367663&y=-4107061.3011045&radius=10&crs=EPSG%3A3857&spatialOperation=intersects&selectedOnly=false&metadata=false'
Output
6. /data/execute/point/{dataId}
Returns data associated with the the specified shape. E.g. in the property layer, this means the property that encompasses the geometrical point on the map.
Example 7
curl -X GET --header 'Accept: application/json' 'http://localhost:8080/weave/services/v1/data/execute/point/addresspoiDetails?entity=property&x=16784645.367663&y=-4107061.3011045&crs=EPSG%3A3857&spatialOperation=intersects&selectedOnly=false&metadata=false'
Output
7. /data/execute/geometry/{dataId}
Returns data associated with the specified envelope on the map.
Example 8
curl -X GET --header 'Accept: application/json' 'http://localhost:8087/weave/services/v1/data/execute/geometry/addresspoiDetails?entity=property&minx=16784645.367663&miny=-4107061.3011045&maxx=16784700.367663&maxy=4106561.3011045&crs=EPSG%3A3857&spatialOperation=within&selectedOnly=false&metadata=false'
Output
8. /data/execute/selection/{dataId}
Returns data associated with the selections of an entity.
Example 9
curl -X GET --header 'Accept: application/json' 'http://localhost:8087/weave/services/v1/data/execute/selection/addresspoiDetails?entity=property&metadata=false'
Output
9. /data/execute/polygonarray/{dataId}
Returns data associated with the specified spatial operation on the provided polygonarray shape on the map.
Example 10
curl -X GET --header 'Accept: application/json' 'http://localhost:8087/weave/services/v1/data/execute/polygonarray/addresspoiDetails?entity=property&crs=EPSG%3A3857&spatialOperation=intersects&selectedOnly=false&metadata=false&points=16784645.367%2C-4107061.301%2C16784642.367%2C-4107061.301%2C16784645.367%2C-4107066.301'
Output