Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batched geojson loader freezes #3028

Open
sebakerckhof opened this issue Jun 15, 2024 · 0 comments
Open

Batched geojson loader freezes #3028

sebakerckhof opened this issue Jun 15, 2024 · 0 comments

Comments

@sebakerckhof
Copy link

I'm trying to use the batched geojson loader, but it never finishes reading the file.

import { _GeoJSONLoader as GeoJSONLoader } from '@loaders.gl/json';
import { loadInBatches } from '@loaders.gl/core';
  const batches = await loadInBatches(
    'geojson-500k.json',
    GeoJSONLoader,
    { json: { jsonpaths: ['$.features'] } }
  );
for await (const batch of batches) {
console.log('reading', batch.data.length, 'features');
}
console.log('done')

We never reach done and it reads only about 80K out of the 500K features.
The last feature it reads before halting is: { type: 'Feature' }, so without geometry, although all features in the geojson file have a geometry

File is too big to attach, but can be downloaded from: https://happyrainbowfactory.com/geojson-500k.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant