표준 HelloWorld 샘플 응용 프로그램을 기반으로하는 테스트 응용 프로그램에서 다음 geoJson 파일을로드하려고 시도하고 있습니다.세슘 - 범위 오류 : 유효성이 검사 된 geoJson에 잘못된 배열 길이
An error occurred while rendering. Rendering has stopped.
RangeError: Invalid array length
RangeError: Invalid array length
at updateFrustums (http://127.0.0.1:8081/Build/CesiumUnminified/Cesium.js:155215:36)
at createPotentiallyVisibleSet (http://127.0.0.1:8081/Build/CesiumUnminified/Cesium.js:155389:13)
at executeCommandsInViewport (http://127.0.0.1:8081/Build/CesiumUnminified/Cesium.js:155943:9)
at updateAndExecuteCommands (http://127.0.0.1:8081/Build/CesiumUnminified/Cesium.js:155841:17)
at render (http://127.0.0.1:8081/Build/CesiumUnminified/Cesium.js:156177:9)
at Scene.render (http://127.0.0.1:8081/Build/CesiumUnminified/Cesium.js:156215:13)
at CesiumWidget.render (http://127.0.0.1:8081/Build/CesiumUnminified/Cesium.js:164962:25)
at render (http://127.0.0.1:8081/Build/CesiumUnminified/Cesium.js:164364:32)
geoJson이 잘 http://geojson.io를 사용하여 유효성을 검사로 나는 혼란 스러워요 : 이것은 다음과 같은 오류 메시지가 발생
var dataSource = Cesium.GeoJsonDataSource.load('../data/kirkwood.json').then(function(data) {
viewer.dataSources.add(data);
viewer.zoomTo(data);
}
:
{
"type": "FeatureCollection",
"generator": "overpass-turbo",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.",
"timestamp": "2016-09-12T19:22:48Z",
"features": [
{
"type": "Feature",
"id": "way/442106309",
"properties": {
"@id": "way/442106309",
"addr:city": "Ottawa",
"addr:housenumber": "999",
"addr:postcode": "H8G8F9",
"addr:street": "My Road",
"building": "apartments",
"building:levels": "3",
"levels": "3"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-75.7337391,
45.3783003
],
[
-75.7335222,
45.378383
],
[
-75.7335439,
45.3784096
],
[
-75.733525,
45.3784206
],
[
-75.7335406,
45.3784375
],
[
-75.7335003,
45.378453
],
[
-75.7335867,
45.378543
],
[
-75.7338474,
45.3784262
],
[
-75.7337391,
45.3783003
]
]
]
}
}]}
나는 다음과 같은 코드를 사용하여 본을로드하고 및 http://geojsonlint.com
누구든지 제공 할 수 있습니까? 유용한 제안?
감사합니다.
당신은 틀 롭습니다. 나는 범인이다. 제 개발 과정에서 디버깅 프로세스를 단순화하기 위해 다른 데이터 소스로 전환하기로 결정했습니다 (단 하나의 기능 만 사용). 코드가 표시되지 않는 것은 geoJson의 기능을 반복하고 새 데이터 집합에없는 속성 내 잘못이야... :/ –