1 Select server and end-point and database and RESOURCEID:
Note: depending on the wfs-implementation the database is already predefined in wfs-endpoint
Server: 193.196.137.147
DB: stuttgartdb on above server:
http://193.196.137.147:8080/wfs
Endpoint:select RESOURCEID from your data requirements / db or what ever
Say we have selected this gmlID (in this case gmlID = RESOURCEID): DEBW522AA00000000 to request from the wfs
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&RESOURCEID=DEBW522AA00000000
3 Response
Response is a xml or a file or an error message if the request RESOURCEID
is not within the database.
If more than one element is returned, the response is a wfs:FeatureCollection>
<?xml version="1.0" standalone="yes"?> <wfs:FeatureCollection xmlns:xAL="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0" xmlns:gml="http://www.opengis.net/gml" xmlns:bldg="http://www.opengis.net/citygml/building/2.0" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:app="http://www.opengis.net/citygml/appearance/2.0" xmlns:gen="http://www.opengis.net/citygml/generics/2.0" xmlns:core="http://www.opengis.net/citygml/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/citygml/building/2.0 http://schemas.opengis.net/citygml/building/2.0/building.xsd http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/citygml/appearance/2.0 http://schemas.opengis.net/citygml/appearance/2.0/appearance.xsd http://www.opengis.net/citygml/generics/2.0 http://schemas.opengis.net/citygml/generics/2.0/generics.xsd" timeStamp="2022-02-22T14:40:31" numberMatched="1" numberReturned="1"> <wfs:member> <bldg:Building gml:id="DEBW522AA00000000"> <gml:name>08111000_0_012_01780_001</gml:name> <gml:boundedBy> <gml:Envelope srsName="crs:EPSG::31463" srsDimension="3"> <gml:lowerCorner>3516560.32 5409321.61 219.64124</gml:lowerCorner> <gml:upperCorner>3516569.92 5409327.39 226.675596</gml:upperCorner> </gml:Envelope> </gml:boundedBy> <core:creationDate>2018-06-07</core:creationDate> <bldg:consistsOfBuildingPart> <bldg:BuildingPart
gml:id="DEBW522AA00000001" > <gml:name>08111000_0_012_01780_001_000,08111000_0_012_01780_001</gml:name>
etc.... see response.gml file for full response.