Skip to content

Viewing tiles generated with ctb-tile tool doesn't work; RangeError: "invalid array length" #16

@swiss-knight

Description

@swiss-knight

I've generated some tiles from a DEM (Erdas Imagine format) using the ctb-tile tool under Ubuntu 18.04.

Then I place a symlink in my local repo of the quantized-mesh-viewer to replace the default example-tile/ folder.
I made the necessary changes in the meshUrl variable in the ./src/tile/index.js file.

After what, while navigating to my tile, it doesn't show up, the box stays black.
I double checked that the tile file I used do have a few kilo bytes of data.

In the console, an RangeError: "invalid array length" error is shown:

Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://944a0c0c-593a-48c7-a8f9-9f42afc3f240/browser-polyfill.js
Source Map URL: browser-polyfill.js.map
THREE.WebGLRenderer 92 three.js:21172:11
RangeError: "invalid array length"
    node_modules index.js:44
    node_modules index.js:246
    createQuantizedMesh create-quantized-mesh.js:326
create-quantized-mesh.js:355
RangeError: "invalid array length"
    node_modules index.js:44
    node_modules index.js:246
    createQuantizedMesh create-quantized-mesh.js:326
create-quantized-mesh.js:355
(...)

Do you have any cue on how to fix this or on the source of the problem?
I also notify the cesium-terrain-builder team of this error: geo-data/cesium-terrain-builder#89

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions