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

How i can set height from attribute in geojson? #178

Open
jshirokov-bs opened this issue Dec 5, 2023 · 1 comment
Open

How i can set height from attribute in geojson? #178

jshirokov-bs opened this issue Dec 5, 2023 · 1 comment

Comments

@jshirokov-bs
Copy link

Hi!
I have some problem with py3dtilers.
So, I have a geojson with ~50 objects with the attribute "h_m" (height).
I tried to use this attribute in the console, but I couldn't use the attributes correctly - the objects didn't get the height according to the data.
I also tried to reproject the data into cesium (coordinates, but the objects were displayed in the area of Africa, not Eastern Europe.
Am I doing something wrong?

I am applying a visualization screen and a data set

image

building_pr.zip

@LorenzoMarnat
Copy link
Collaborator

LorenzoMarnat commented Dec 12, 2023

Hello,
I think this issue is linked to #135 (Py3Dtilers doesn't support degree projections as input).

Some workaround would be to:

  • Use a GIS software (I used QGIS) to export your GeoJSON file in EPSG:4087 proj (this prj uses meter unit)
  • Use this reprojected file as input in Py3DTilers and choose your output projection

Example:

geojson-tiler -i building_pr_4087.geojson -o building_pr_4978 --z 0 --crs_in EPSG:4087 --crs_out EPSG:4978

Result (in cesium):
image

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