|
|
# 1 Select server and end-point and database and Bounding Box (BBOX) coordinates:
|
|
|
Note: depending on the wfs-implementation the database is already predefined in wfs-endpoint
|
|
|
### Server: 193.196.137.147
|
|
|
### DB: stuttgartdb on above server:
|
|
|
### Endpoint: http://193.196.137.147:8080/wfs
|
|
|
### select BBOX coordinates
|
|
|
Say we have selected these coordinates to retrieve all objects that are within the BBOX from the wfs
|
|
|
3514855.4 , 5397531.76 , 3514877.521 , 5397549.18
|
|
|
|
|
|
# 2 Send request to get data via **API**:
|
|
|
### we need to construct the following query:
|
|
|
http://193.196.137.147:8080/wfs?
|
|
|
SERVICE=WFS&VERSION=2.0.0&
|
|
|
REQUEST=GetFeature&
|
|
|
TYPENAMES=bldg:Building&
|
|
|
BBOX=3514855.4,5397531.76,3514877.521,5397549.18
|
|
|
|
|
|
|
|
|
|
|
|
# 3 Response
|
|
|
Response is a xml or a file or an error message if no objects are within the defined BBOX in the database.
|
|
|
If more than one element is returned, the response is a `<wfs:FeatureCollection>`
|
|
|
see response.gml file for full response.
|
|
|
|
|
|
[response.gml](/uploads/a936b5359047eef8ad21105a49d8af25/response.gml) |
|
|
\ No newline at end of file |