Make it clear in the readme that geojson option doesn't support GeometryCollection

Open Beginner friendly
#104 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
62/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
documentation

Research direction

Start by locating the README section that documents the geojson option and review the reported failure at tile-cover/index.js:84 when running index.js. Clarify there that GeometryCollection is unsupported, using the issue's error and examples as context, then confirm the README states the limitation plainly.

Written by the indexing model from the issue text.

Description

question

I am trying to calculate the number of buildings in a geometry.

When I run index.js, I get "error: geometry not implemented at Object.getTiles [as tiles]" in module 'tile-cover, index.js:84' .
I checked the GeoJson and it seems valid. It was created in QGIS and I have tested it in mapshaper.

I have tested and tried with different geojsons, all valid. I always get the same error from tile-cover.

The scripts are here.
Data is canada.mbtiles (not uploaded).

Dominant language
JavaScript
Stars
185
Forks
31
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapbox/tile-reduce

All issues in mapbox/tile-reduce

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.