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

Support #20

Open gdmhrobal opened 2 years ago

gdmhrobal commented 2 years ago

Hi, thanks for this great plugin. I´ve got one problem and one support question.

my problem: We are working with FME and FME can not read the CityJSON, the plugin is exporting. The problem seems to that the values of semantics are in an inner array and an empty texture object exists.

does not working: `"semantics":{ "surfaces":[ { "type":"GroundSurface" }, { "type":"WallSurface" }, { "type":"RoofSurface" } ], "values":[ [ 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ] }, "texture":{

           },`

still working: "semantics":{ "surfaces":[ { "type":"GroundSurface" }, { "type":"WallSurface" }, { "type":"RoofSurface" } ], "values":[ 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] }, so i´ve changed and everything is working fine #init_json["CityObjects"][CityObject_id]['geometry'].append({'type':city_object['type'],'boundaries':[],'semantics':{'surfaces': [], 'values': [[]]},'texture':{},'lod':city_object['lod']}) init_json["CityObjects"][CityObject_id]['geometry'].append({'type':city_object['type'],'boundaries':[],'semantics':{'surfaces': [], 'values': []},'lod':city_object['lod']})

So is that a general issue or is that only a problem of FME?

Support question: Are you still working on the possibility to im- and export objects with textures?

best regards Tim