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

Question: conversion of citygml with gfs file #43

Closed
Marwa-AL opened this issue Mar 28, 2023 · 4 comments
Closed

Question: conversion of citygml with gfs file #43

Marwa-AL opened this issue Mar 28, 2023 · 4 comments

Comments

@Marwa-AL
Copy link

Hi all,

I am working with 3D building data from BayrenAtlas. The data are downloaded in tiles each tile has .gml and .gfs file. I converted the CityGML file to CityJSON for further analysis in Python. However, I noticed a scaling and shift in the data after starting the analysis.

Example: the actual surface area is 15 but I get an area of 15e-5. Also the vertices are shifted out of the geographical extent.

Do you have any idea what could be wrong? Is it possible that some data are missed during the conversion.

Thank you

@clausnagel
Copy link
Member

Hi @Marwa-AL, can you please share a dataset and give an example for what you get and expect? Otherwise it's really hard to support you. And please first check whether you run into the same issue as described in #37.

@Marwa-AL
Copy link
Author

Marwa-AL commented Mar 28, 2023

Hi,
You can download the tile (gml and gfs) from this google drive link:
https://drive.google.com/drive/folders/1nq2ivspzEygZxP-H3gH5Llg02yCPqLG1?usp=share_link
After converting to CityJSON. I am using cjio for processing. I am aware of the transformation which is happening and I am applying it to retrieve the correct coordinates. However, I am still observing the issue I described initially. Basically the surface are scaled down and shifted.

@clausnagel
Copy link
Member

clausnagel commented Mar 28, 2023

Try and convert to CityJSON 1.0 instead. In this conversion, do not transform the coordinates (so, do not use the --transform-ccordinates option).

> citygml-tools to-cityjson --cityjson-version=1.0 /your/CityGML/file.gml

This way, the resulting CityJSON output file will contain the original coordinates and not transformed ones. If there is still a shift, check #37.

@Marwa-AL
Copy link
Author

It worked. Thank you very much.

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

2 participants