Hi.
I have 2 geojson files converted from .shp files. I’m able to load one of them with the command:
Cesium.GeoJsonDataSource.load("./data/usa.geojson").then(function (dataSource) {
viewer.dataSources.add(dataSource);
viewer.zoomTo(dataSource);
});
However, for the second one -ne_10m_admin_0_countries_tur.geojson, 25MB file- I get the error:
RangeError: Invalid array length
RangeError: Invalid array length
at On.subdivideRhumbLine (blob:https://localhost:7229/8d3c2f96-e733-4780-b7e2-8d7df92a9c5d:47:78030)
at DF (blob:https://localhost:7229/8d3c2f96-e733-4780-b7e2-8d7df92a9c5d:47:206909)
at Ac.createGeometry (blob:https://localhost:7229/8d3c2f96-e733-4780-b7e2-8d7df92a9c5d:47:211628)
at VF (blob:https://localhost:7229/8d3c2f96-e733-4780-b7e2-8d7df92a9c5d:47:212371)
at blob:https://localhost:7229/8d3c2f96-e733-4780-b7e2-8d7df92a9c5d:77:18851
at async Promise.all (index 224)
at async e (blob:https://localhost:7229/8d3c2f96-e733-4780-b7e2-8d7df92a9c5d:46:205)
I’m attaching the file that produces error.
Cesium Version 1.121
ne_10m_admin_0_countries_tur.geojson (24.1 MB)
There is another thread almost identical from 2019: Country JSON File