mapbox / mapbox/tippecanoe

Filter raises 'Polygon begins with an inner ring' without changing that data

Open
#746 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
3.1k
Forks
430
PR merge metrics
No merged PRs in 30d

Description

I used tippecane with -C 'python myfilter.pyo' and got an error

Polygon begins with an inner ring

So I reduced the filter to just

-C 'cat'

And I get the same error

But removing the -C script completely doesn't raise an error

My full command:

tippecanoe -n "routing tileset" \
  -P -Z11 -z11 -D12 -d13 --no-feature-limit \
  -x OBJNAM -x FID -x water -x natural -x cc -x tile_x -x tile_y -x error \
  -o routing.mbtiles \
  -C 'cat' \
  --clip-bounding-box=-68.500000,44.583290,-66.500000,46.583290 \
  -Losmwt2:<(cat ./dist/osm/geojson/osm.water.geojsonseq;) 

So it seems like the filter raises 'Polygon begins with an inner ring' without changing that data

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

Reproduce the supplied tippecanoe command with -C 'cat', then without the filter, using the referenced GeoJSON sequence input and clip bounding box. Trace the filter and polygon-validation path to determine why the filter changes the outcome despite not changing feature data; done means the discrepancy is explained and the reported behavior is corrected or documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.