I am trying to use Geojson to create meshes. I keep getting a “json is invalid or empty”. and I know there is data there. Is babylon able to consume json data or aGeoJson data? I know I have exportd json out of babylon, but I have never parsed it and used it to generate geometry.
This si the GeoJson data Iam trying to use:
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-83.294417,
42.446736
],
[
-83.294603,
42.446731
],
[
-83.294592,
42.446533
],
[
-83.294816,
42.446526
],
[
-83.294807,
42.44638
],
[
-83.294536,
42.446389
],
[
-83.294544,
42.44653
],
[
-83.2944,
42.446535
],
[
-83.294409,
42.446692
],
[
-83.294118,
42.446701
],
[
-83.294127,
42.446849
],
[
-83.293869,
42.446857
],
[
-83.293875,
42.446959
],
[
-83.294181,
42.44695
],
[
-83.294176,
42.446858
],
[
-83.294424,
42.44685
],
[
-83.294417,
42.446736
]
]
]
},
"properties": {
"id": 1260752083,
"tags": {
"building": "yes"
}
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-83.296896,
42.445188
],
[
-83.296918,
42.44559
],
[
-83.297122,
42.445584
],
[
-83.297099,
42.445182
],
[
-83.296896,
42.445188
]
]
]
},
"properties": {
"id": 1260752088,
"tags": {
"building": "yes"
}
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-83.296382,
42.445153
],
[
-83.296387,
42.445228
],
[
-83.296661,
42.44522
],
[
-83.296653,
42.445077
],
[
-83.296378,
42.445085
],
[
-83.296373,
42.444997
],
[
-83.29607,
42.445006
],
[
-83.296079,
42.445162
],
[
-83.296382,
42.445153
]
]
]
},
"properties": {
"id": 1260752089,
"tags": {
"building": "yes"
}
}