Understanding interior and exterior surface / shells #210
-
I am currently writing my own cityjson2geojson converter to extract single surface types such as roof surfaces as a 2D geometry from CityJSON and convert this to GeoJSON. I have some issues to understand the exterior vs. interior ring problem. Let me explain in a bit more details: The official CityJSON specification states the following:
Now I am trying to wrap my head around the two (it seems distinct) mentions of "interior shell" and "interior boundary". Perhaps my issue is that I think always 2D when I hear "interior [something]", but what is the difference between the two? For instance, the documentation page gives an example like the following for interior boundaries within one of the two exterior surfaces, which seems to align with the GeoJSON standard of interior rings:
However, the specification gives also an example for exterior / interior shells of a Solid type like this:
Here I am getting lost, as I don't understand what this interior shell actually represents geometrically. Sadly for this case there is also no drawing in the documentation pages. Why can I not add interior boundaries in the exterior shell and make the interior shell obsolete? And in the above example, is it true that each surface entry in the interior shell represents a "hole" in the exterior shell's surface with the same index? So every exterior shell has a hole in the example above? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
this should help: https://val3dity.readthedocs.io/2.5.1/definitions.html#iso19107-primitives |
Beta Was this translation helpful? Give feedback.
this should help: https://val3dity.readthedocs.io/2.5.1/definitions.html#iso19107-primitives