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

Keep global coordinates for STL #181

Open
ThomasPe opened this issue Jan 2, 2024 · 1 comment
Open

Keep global coordinates for STL #181

ThomasPe opened this issue Jan 2, 2024 · 1 comment

Comments

@ThomasPe
Copy link

ThomasPe commented Jan 2, 2024

Is your feature request related to a problem? Please describe.
I'm trying to bring together meshes from terrain (Geotiff) and cities (CityJSON). To align them properly it would be great to have both meshes in their UTM coordinates which is currently not possible with cjio since everything gets calculated from 0/0 if I see it correctly.

Describe the solution you'd like
An option / parameter to skip the translate to minx,miny part.

@hugoledoux
Copy link
Member

No, CityJSON files can use any CRS (that has en EPSG code). The 0/0 you mention is based on the "transformation" used to compress the data, see these: https://www.cityjson.org/specs/2.0.0/#referencesystem-crs + https://www.cityjson.org/specs/2.0.0/#transform-object

However, GeoTIFF is not a mesh but a raster format, which is not supported by CityJSON. You would need to convert the terrain to a TIN first, startinpy can help you with this partly and it exports to CityJSON directly.

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