cityjson / Up3date

A Blender add-on to import, edit and export 3D city models encoded in CityJSON v.1.0 format preserving geometries, attributes and semantics
MIT License
66 stars 12 forks source link

How to recover the original coordinates #7

Closed balazsdukai closed 4 years ago

balazsdukai commented 4 years ago

It seems that the plugin (master branch) centers the objects around 0,0,0. I have a coordinate in the citymodel's original coordinate system which I want to locate in the model, how can I do that?

konmast3r commented 4 years ago

If you install the plugin from the develop branch, which is currently many commits ahead from master, the importer has been improved and now stores the X,Y, Z translation, as custom properties of the world object of Blender.

If you have your original CRS coordinates, just add the X,Y,Z translation (algebraically) to them and you should get the point's coordinates in Blender's model.

In the screenshot below you can see how to find the translation through Blender's interface. Hope it helps!

Screenshot from 2020-01-30 14-16-24

balazsdukai commented 4 years ago

Yes, thanks!