3dcitydb / importer-exporter

3D City Database client for high-performance import and export of 3D city model data
Apache License 2.0
128 stars 55 forks source link

3d CityDatabase #296

Closed cbsemre closed 1 year ago

cbsemre commented 1 year ago

/**

clausnagel commented 1 year ago

We do not provide support for VCS products like the VC Database here. Please contact the VCS support.

clausnagel commented 1 year ago

WFS-related issues should be posted in the WFS repository issue tracker: https://github.com/3dcitydb/web-feature-service/issues

In order to be able to help you, please open a new issue there and add more information:

  1. What version of the 3DCityDB are you using?
  2. What version of the WFS are you using?
  3. What is the exact query that you have sent to the WFS?
  4. Please provide the config.xml of your WFS
  5. Please provide an excerpt of the dataset that you loaded into the 3DCityDB
clausnagel commented 1 year ago

WFS versions < 5.0.0 do not support ad-hoc query expressions but only stored query expressions (see v5.0.0. release notes). That's why you get the error message. Update to the latest version of the WFS.

clausnagel commented 1 year ago

Well, based on my previous answer, all WFS releases >= 5.0.0 support ad-hoc queries. As written above, I recommend using the latest release.

clausnagel commented 1 year ago

Hard to say what is going wrong at your side. I recommend following the installation guide: https://3dcitydb-docs.readthedocs.io/en/latest/wfs/index.html

BWibo commented 1 year ago

As written in the error message, your request is missing the mandatory REQUEST parameter. The WFS standard is documented here: https://www.ogc.org/standard/wfs/

clausnagel commented 1 year ago

This does not make sense. The error message in your screenshot will only be sent if the database connection has been successfully established. Otherwise, the service will already fail with a message saying that the database connection could not be established.

Changes to the config.xml require to reload the WFS service (e.g. through the Tomcat Manager application when using Tomcat).

clausnagel commented 1 year ago

https://3dcitydb-docs.readthedocs.io/en/latest/wfs/functionality/get-feature.html#wfs-getfeature-operation-chapter

https://3dcitydb-docs.readthedocs.io/en/latest/wfs/wfs-web-client.html

clausnagel commented 1 year ago

Please make sure to read the documentation. The WFS only supports querying top-level feature types: https://3dcitydb-docs.readthedocs.io/en/latest/wfs/functionality/basic.html#citygml-feature-types

Either your gml:id does not belong to a top-level feature type or there is no corresponding gml:id in your database.

clausnagel commented 1 year ago

It is stated that my building data will be queried in this section.

Great, then use a gml:id in your WFS query that exists in your database and that is associated with a building. And then you will get the building as response....

clausnagel commented 1 year ago

Why don't you simply ask the service to return the first building in the database for testing purposes?

<wfs:GetFeature service="WFS" version="2.0.0"
  xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0"
  xmlns:bldg="http://www.opengis.net/citygml/building/2.0" count="1">
  <wfs:Query typeNames="bldg:Building"/>
</wfs:GetFeature>
clausnagel commented 1 year ago

Please send this request to the WFS "http://localhost:8080/citydb-wfs/service/version" by copying this URL into your web browser.