ogc-schemas
ogc-schemas copied to clipboard
CityGML_1_0 JSON.stringify
I have tried to convert an xml file "3840_5820.xml" which is the used example CityGML file into json with JSON.stringify. However, I have noticed that there are some missing part in the resulting file (more than 50%) starting from this line:
<bldg:Building gml:id="BLDG_0003000e0023384d">
This is the test code which runs without any errors:
var fs = require("fs");
var unmarshaller = require("./CityGML").unmarshaller;
unmarshaller.unmarshalFile("GML/3840_5820.xml", function (jsonFile) {
fs.writeFileSync("./results/3840_5820.json",JSON.stringify(jsonFile));
});
I have attached the the resulting file Thank you very much for your help
{
"CityModel": {
"TYPE_NAME": "CityGML_1_0.CityModelType",
"boundedBy": {
"TYPE_NAME": "GML_3_1_1.BoundingShapeType",
"envelope": {
"gml:Envelope": {
"TYPE_NAME": "GML_3_1_1.EnvelopeType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"lowerCorner": {
"TYPE_NAME": "GML_3_1_1.DirectPositionType",
"value": [
384093.322968437,
5820125.49132874,
32.5900001525879
]
},
"upperCorner": {
"TYPE_NAME": "GML_3_1_1.DirectPositionType",
"value": [
384615.38881093,
5820392.7819335,
82.1
]
}
}
}
},
"location": {
"cityObjectMember": {
"TYPE_NAME": "GML_3_1_1.FeaturePropertyType",
"feature": {
"bldg:Building": {
"TYPE_NAME": "CityGML_Building_1_0.BuildingType",
"id": "BLDG_0003000a00534b1c",
"name": [
{
"gml:name": {
"TYPE_NAME": "GML_3_1_1.CodeType",
"value": "BLDG_0003000a00534b1c"
}
}
],
"creationDate": {
"year": 2015,
"month": 2,
"day": 11,
"hour": null,
"minute": null,
"second": null,
"fractionalSecond": null,
"timezone": null,
"date": "2015-02-11T00:00:00.000Z"
},
"roofType": "",
"cityObjectBoundedBy": [
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865767",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384238.546857303,
5820236.73245394,
45.67,
384233.045328656,
5820242.11955016,
43.63,
384196.317851942,
5820239.87374225,
43.63,
384161.71943493,
5820237.75812174,
43.63,
384157.697459515,
5820231.78868222,
45.67,
384196.62531924,
5820234.16903956,
45.67,
384238.546857303,
5820236.73245394,
45.67
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:WallSurface": {
"TYPE_NAME": "CityGML_Building_1_0.WallSurfaceType",
"id": "GEOM_5865751",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384151.005817453,
5820225.65557979,
33.9199981689453,
384151.006018375,
5820225.65587927,
43.3899192810059,
384150.391170117,
5820237.06541485,
43.3899192810059,
384150.390969196,
5820237.06511536,
33.9199981689453,
384151.005817453,
5820225.65557979,
33.9199981689453
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865758",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384156.362823823,
5820231.70714542,
48.0898780822754,
384150.391170117,
5820237.06541485,
43.3899192810059,
384151.006018375,
5820225.65587927,
43.3899192810059,
384156.362823823,
5820231.70714542,
48.0898780822754
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865762",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384239.065600484,
5820236.76425406,
48.3098411560059,
384233.045319742,
5820242.11953687,
43.209888458252,
384233.660167719,
5820230.71000344,
43.209888458252,
384239.065600484,
5820236.76425406,
48.3098411560059
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865766",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384233.660176632,
5820230.71001673,
43.63,
384238.546857303,
5820236.73245394,
45.67,
384196.62531924,
5820234.16903956,
45.67,
384157.697459515,
5820231.78868222,
45.67,
384162.334283149,
5820226.34858646,
43.63,
384196.932700044,
5820228.46420786,
43.63,
384233.660176632,
5820230.71001673,
43.63
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:GroundSurface": {
"TYPE_NAME": "CityGML_Building_1_0.GroundSurfaceType",
"id": "GEOM_5865748",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384238.546857303,
5820236.73245394,
45.67,
384233.660176632,
5820230.71001673,
43.63,
384233.045328656,
5820242.11955016,
43.63,
384238.546857303,
5820236.73245394,
45.67
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865765",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384244.470816823,
5820242.81818195,
43.209888458252,
384233.045319742,
5820242.11953687,
43.209888458252,
384239.065600484,
5820236.76425406,
48.3098411560059,
384244.470816823,
5820242.81818195,
43.209888458252
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865764",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384244.470816823,
5820242.81818195,
43.209888458252,
384239.065600484,
5820236.76425406,
48.3098411560059,
384245.085664761,
5820231.40864882,
43.209888458252,
384244.470816823,
5820242.81818195,
43.209888458252
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865763",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384245.085664761,
5820231.40864882,
43.209888458252,
384239.065600484,
5820236.76425406,
48.3098411560059,
384233.660167719,
5820230.71000344,
43.209888458252,
384245.085664761,
5820231.40864882,
43.209888458252
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:GroundSurface": {
"TYPE_NAME": "CityGML_Building_1_0.GroundSurfaceType",
"id": "GEOM_5865747",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384157.697459515,
5820231.78868222,
45.67,
384161.71943493,
5820237.75812174,
43.63,
384162.334283149,
5820226.34858646,
43.63,
384157.697459515,
5820231.78868222,
45.67
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:WallSurface": {
"TYPE_NAME": "CityGML_Building_1_0.WallSurfaceType",
"id": "GEOM_5865755",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384233.659970601,
5820230.70970966,
33.92,
384245.085467641,
5820231.40835503,
33.9199981689453,
384245.085664761,
5820231.40864882,
43.209888458252,
384233.660167719,
5820230.71000344,
43.209888458252,
384233.660176632,
5820230.71001673,
43.63,
384196.932700044,
5820228.46420786,
43.63,
384162.334283149,
5820226.34858646,
43.63,
384162.334278055,
5820226.34857887,
43.3899192810059,
384151.006018375,
5820225.65587927,
43.3899192810059,
384151.005817453,
5820225.65557979,
33.9199981689453,
384162.334077131,
5820226.34827938,
33.9199981689453,
384196.932494019,
5820228.46390079,
33.92,
384233.659970601,
5820230.70970966,
33.92
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865761",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384161.719429836,
5820237.75811415,
43.3899192810059,
384150.391170117,
5820237.06541485,
43.3899192810059,
384156.362823823,
5820231.70714542,
48.0898780822754,
384161.719429836,
5820237.75811415,
43.3899192810059
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:WallSurface": {
"TYPE_NAME": "CityGML_Building_1_0.WallSurfaceType",
"id": "GEOM_5865756",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384233.045328656,
5820242.11955016,
43.63,
384233.045319742,
5820242.11953687,
43.209888458252,
384244.470816823,
5820242.81818195,
43.209888458252,
384244.470619703,
5820242.81788816,
33.9199981689453,
384233.045122624,
5820242.11924308,
33.92,
384196.317645918,
5820239.87343517,
33.92,
384161.719228912,
5820237.75781466,
33.9199981689453,
384150.390969196,
5820237.06511536,
33.9199981689453,
384150.391170117,
5820237.06541485,
43.3899192810059,
384161.719429836,
5820237.75811415,
43.3899192810059,
384161.71943493,
5820237.75812174,
43.63,
384196.317851942,
5820239.87374225,
43.63,
384233.045328656,
5820242.11955016,
43.63
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865760",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384161.719429836,
5820237.75811415,
43.3899192810059,
384156.362823823,
5820231.70714542,
48.0898780822754,
384162.334278055,
5820226.34857887,
43.3899192810059,
384161.719429836,
5820237.75811415,
43.3899192810059
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:RoofSurface": {
"TYPE_NAME": "CityGML_Building_1_0.RoofSurfaceType",
"id": "GEOM_5865759",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384162.334278055,
5820226.34857887,
43.3899192810059,
384156.362823823,
5820231.70714542,
48.0898780822754,
384151.006018375,
5820225.65587927,
43.3899192810059,
384162.334278055,
5820226.34857887,
43.3899192810059
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:WallSurface": {
"TYPE_NAME": "CityGML_Building_1_0.WallSurfaceType",
"id": "GEOM_5865752",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384162.334278055,
5820226.34857887,
43.3899192810059,
384162.334283149,
5820226.34858646,
43.63,
384161.71943493,
5820237.75812174,
43.63,
384161.719429836,
5820237.75811415,
43.3899192810059,
384162.334278055,
5820226.34857887,
43.3899192810059
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:GroundSurface": {
"TYPE_NAME": "CityGML_Building_1_0.GroundSurfaceType",
"id": "GEOM_5865749",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384233.045122624,
5820242.11924308,
33.92,
384244.470619703,
5820242.81788816,
33.9199981689453,
384245.085467641,
5820231.40835503,
33.9199981689453,
384233.659970601,
5820230.70970966,
33.92,
384196.932494019,
5820228.46390079,
33.92,
384162.334077131,
5820226.34827938,
33.9199981689453,
384151.005817453,
5820225.65557979,
33.9199981689453,
384150.390969196,
5820237.06511536,
33.9199981689453,
384161.719228912,
5820237.75781466,
33.9199981689453,
384196.317645918,
5820239.87343517,
33.92,
384233.045122624,
5820242.11924308,
33.92
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:WallSurface": {
"TYPE_NAME": "CityGML_Building_1_0.WallSurfaceType",
"id": "GEOM_5865754",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384244.470619703,
5820242.81788816,
33.9199981689453,
384244.470816823,
5820242.81818195,
43.209888458252,
384245.085664761,
5820231.40864882,
43.209888458252,
384245.085467641,
5820231.40835503,
33.9199981689453,
384244.470619703,
5820242.81788816,
33.9199981689453
]
}
}
}
}
}
}
}
}
]
}
}
}
}
},
{
"TYPE_NAME": "CityGML_Building_1_0.BoundarySurfacePropertyType",
"object": {
"bldg:WallSurface": {
"TYPE_NAME": "CityGML_Building_1_0.WallSurfaceType",
"id": "GEOM_5865753",
"lod2MultiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfacePropertyType",
"multiSurface": {
"TYPE_NAME": "GML_3_1_1.MultiSurfaceType",
"srsName": "EPSG:25833",
"srsDimension": 3,
"surfaceMember": [
{
"TYPE_NAME": "GML_3_1_1.SurfacePropertyType",
"surface": {
"gml:Polygon": {
"TYPE_NAME": "GML_3_1_1.PolygonType",
"exterior": {
"gml:exterior": {
"TYPE_NAME": "GML_3_1_1.AbstractRingPropertyType",
"ring": {
"gml:LinearRing": {
"TYPE_NAME": "GML_3_1_1.LinearRingType",
"posList": {
"TYPE_NAME": "GML_3_1_1.DirectPositionListType",
"value": [
384233.045319742,
5820242.11953687,
43.209888458252,
384233.045328656,
5820242.11955016,
43.63,
384233.660176632,
5820230.71001673,
43.63,
384233.660167719,
5820230.71000344,
43.209888458252,
384233.045319742,
5820242.11953687,
43.209888458252
]
}
}
}
}
}
}
}
}
]
}
}
}
}
}
]
}
}
}
}
}
}
Reproduced.
The problem seems to be that Jsonix writes cityObjectMembers as location instead of featureMembers. The former is a single field, the latter is a collection. So only the last cityObjectMember survives.
This is a problem in Jsonix. I'm not sure why it's happening. The fix won't be quite easy so this will, unfortunately, take time to fix.
Hello, Is there any update concerning this issue? Thank you very much!
Sorry, not yet. I was extremely busy last weeks. Still have to catch some air, so can't promise a prompt reaction.
There were two problems here:
- highsource/jsonix#150
featureMemberandfeatureMembersmust be reference properties to allow substitution.
This should be solved now, I get 5 features unmarshalled in the featureMember property. Please try it with the latest Jsonix 2.4.2 snapshot.
Thank you very much, that is great news