Skip to main content
Solved

How can I pull Geometry data (CityGML) from an online database into my FME workspace for an adjustable selection area?

  • April 5, 2022
  • 2 replies
  • 45 views

The mentioned database is available under the following url: https://www.opengeodata.nrw.de/produkte/geobasis/3dg/lod2_gml/lod2_gml/ . According to a very brief documentation the database is provided as an ATOM Download-Feed. But unfortunately I don't understand how to handle it in FME and will appreciate any advise.

 

Best regards

Alex

Best answer by daveatsafe

Hi @mralex007​,

The LoD tiles are 1000m * 1000m, with the lower left corner specified in the tile name.

So the tile LoD2_32_280_5657_1_NW.gml would have its lower left at 280000, 5657000 in the coordinate system EPSG:25832.

The easiest way to get the data is to reproject your selection polygon to EPSG:25832 (if needed), scale it by 0.001, then round the coordinates to 0 decimal places. Extract the coordinates as a list - each unique coordinate will specify a tile to download to cover the original selection.

You can use the FeatureReader transformer to read a CityGML dataset directly from the URL of the tile. You will need to set the reader parameter Reader Driven by CityGML Schema to No, however.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • Best Answer
  • April 8, 2022

Hi @mralex007​,

The LoD tiles are 1000m * 1000m, with the lower left corner specified in the tile name.

So the tile LoD2_32_280_5657_1_NW.gml would have its lower left at 280000, 5657000 in the coordinate system EPSG:25832.

The easiest way to get the data is to reproject your selection polygon to EPSG:25832 (if needed), scale it by 0.001, then round the coordinates to 0 decimal places. Extract the coordinates as a list - each unique coordinate will specify a tile to download to cover the original selection.

You can use the FeatureReader transformer to read a CityGML dataset directly from the URL of the tile. You will need to set the reader parameter Reader Driven by CityGML Schema to No, however.


  • Author
  • April 15, 2022

Hi @mralex007​,

The LoD tiles are 1000m * 1000m, with the lower left corner specified in the tile name.

So the tile LoD2_32_280_5657_1_NW.gml would have its lower left at 280000, 5657000 in the coordinate system EPSG:25832.

The easiest way to get the data is to reproject your selection polygon to EPSG:25832 (if needed), scale it by 0.001, then round the coordinates to 0 decimal places. Extract the coordinates as a list - each unique coordinate will specify a tile to download to cover the original selection.

You can use the FeatureReader transformer to read a CityGML dataset directly from the URL of the tile. You will need to set the reader parameter Reader Driven by CityGML Schema to No, however.

Thank you very much for the helpful answer! My model is finally working.