Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3d CityDatabase #296

Closed
cbsemre opened this issue Nov 28, 2023 · 12 comments
Closed

3d CityDatabase #296

cbsemre opened this issue Nov 28, 2023 · 12 comments

Comments

@cbsemre
Copy link

cbsemre commented Nov 28, 2023

/**

@clausnagel
Copy link
Member

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

@clausnagel
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

BWibo commented Dec 4, 2023

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

@cbsemre cbsemre changed the title VC Database 3d CityDatabase Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants