mapbox / mapbox/tile-reduce

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.

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

Description

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](https://github.com/Monduiz/CrowdAnalysis/tree/master/Workflow1).
Data is canada.mbtiles (not uploaded).

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.