Hello community,
I hope someone can help me in my confusion. I would like to build a 3D model of a city quarter from online geo data. The data for buildings (LOD2) is only available in 2x2km squares and my quarter covers two of these tiles. Since I can only download gml-files, which Rhino cannot handle, I am using a different programm to export gml to stl WITH local coordinates checked. By setting the Earth anchor point I was able to place the tiles (that consist of many buildings) in distinct positions - or so I thought. Importing the first file works magnificent. All buildings are sitting where they are supposed to be. But the second file gets imported at the very same spot, which results in the total misplacement of all the buildings of the second file. I’m really confused since I thought using earth anchor point and saving local coordinates is the whole point of working with georeferenced data…? Does anyone know, what went wrong or where I took a wrong turn?
This is the top view. The green structures are all buildings from file nr. 1 (they are correct). The cyan ones are from the 2nd file, but they are supposed to be “on top”/North of the green tile. (The red marker just shows one example of a cyan coloured house where it currently is and where it should go.)
Without at least the stl files, it’s really hard to tell. Preferably, you’d post the original gml files as well.
I see that Carina used Heron earlier - but just to comment on that link to Food4Rhino: the much newer version of Heron (beta) is only available from the Package Manager.
-wim
Thanks for the replies already. Yes, I’ve used Heron before and for working with shp-files it’s amazing. Unfortunately not all required data is available in that format, let alone from the same provider. So it’s more of a puzzle game to stitch everything together.
Attached there are the gml and stl files - the ones in each folder belong together. Looking at the stl it seems like each object gets built with points between 0 and 2000. I think I’m not understanding the “local coordinates” part properly… because it doesn’t look like coordinates to me. LoD2_32_682_5644_2_TH.zip (16.3 MB) LoD2_32_682_5646_2_TH.zip (8.5 MB)
Yes, I don’t know what that other application does with that setting. STL files don’t carry geo references and any coordinates are simply used as they are written in the STL file.
I’m not sure that Heron does not read CityGML files, @Brian_Washburn would know.
-wim
@wim is correct, Heron doesn’t read CityGML files, but I have found AntFarm works well. Just keep in mind the EarthAnchorPoint will not have an effect (so the model will be far from origin) and the buildings come in as open meshes within blocks.
The image below shows what I get when importing your data with AntFarm.
Even though it doesn’t work for me that well, it’s a pretty useful tool. Importing and categorizing of city quarters is really easy and it shows a neat overview of all the attributes.
Thanks for the hint!