io_cityGML_basic
io_cityGML_basic copied to clipboard
small todo
likely to happen:
- [x] add file-path selector option
- [x] add menu to IO
unlikely to happen
- [ ] add texture recognition (big job)
- [ ] add materials (big job)
- [ ] add foliage (would require some existing foliage library)
Some of the structure (I didn't read the specs)
"""
<CityModel>
<cityObjectMember>
<bldg:Building>
<bldg:boundedBy>
<gml:MultiSurface
<gml:surfaceMember>
<gml:Polygon xmlns:gml="http://www.opengis.net/gml" gml:id="80182bd5-e999-445c-a2d5-6dc690c928a4">
<gml:exterior>
<gml:LinearRing gml:id="bfdae597-31ed-4fcd-b2a4-32d4e83c5954">
<gml:posList>
... flat list of 3d coordinates ....
</gml:posList>
</gml:LinearRing></gml:exterior>
</gml:Polygon>
</gml:surfaceMember>
<gml:surfaceMember>.......</gml:surfaceMember>
</gml:MultiSurface>
..........
</bldg:boundedBy>
<app:appearance>
<app:Appearance gml:id="....">
<app:theme> ..... </app:theme>
<app:surfaceDataMember>
<app:ParameterizedTexture gml:id="09522fed-1a36-4815-bbec-abc9e311adca">
<app:imageURI>appearances\1290_0_5.jpg</app:imageURI>
<app:mimeType>image/jpeg</app:mimeType>
<app:target uri="#80182bd5-e999-445c-a2d5-6dc690c928a4">
<app:TexCoordList>
<app:textureCoordinates ring="#bfdae597-31ed-4fcd-b2a4-32d4e83c5954">
.....float list of 2d UV data
</app:textureCoordinates>
</app:TexCoordList>
</app:target>
</app:ParameterizedTexture>
</app:surfaceDataMember>
<app:surfaceDataMember> ..... </app:surfaceDataMember>
</app:Appearance>
</app:appearance>
</bldg:Building>
</cityObjectMember>
<cityObjectMember> ..... </cityObjectMember>
</CityModel>
"""