Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • U UrbanDataPlatformCatalog
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Jobs
Collapse sidebar
  • iCityDigitalTwinFramework
  • UrbanDataPlatformCatalog
  • Wiki
  • Get Object from 3dcityDB by ID using WFS API call

Get Object from 3dcityDB by ID using WFS API call · Changes

Page history
Create Get Object from 3dcityDB by ID using WFS API call authored 3 years ago by Sven Schneider's avatar Sven Schneider
Hide whitespace changes
Inline Side-by-side
Showing
with 35 additions and 0 deletions
+35 -0
Get-Object-from-3dcityDB-by-ID-using-WFS-API-call.md 0 → 100644
View page @ 2f696b64
# 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:
### Endpoint: http://193.196.137.147:8080/wfs
### 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
![image](/uploads/82c1e87826a37aae5bee95e8b54d194b/image.png)
# 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.
[response.gml](/uploads/6473eecacfc6ed62284ac8a02cf09ed8/response.gml)
\ No newline at end of file
Clone repository
  • Get Object from 3dcityDB by ID using WFS API call
  • How to import citygml into 3DcityDB with the Importer
    • How to import citygml into 3DcityDB with the 3DcityDB Importer Exporter tool
  • Request citygml objects from 3dcityDB using WFS BBOX API calls
  • Home

Menu

Explore Projects Groups Snippets

Dies ist die Gitlab-Instanz des Transferportals der Hochschule für Technik Stuttgart. Hier geht es zurück zum Portal