mapbox / tippecanoe

Build vector tilesets from large collections of GeoJSON features.
BSD 2-Clause "Simplified" License
2.72k stars 432 forks source link

Extend --clip-bounding-box to handle polygons #722

Open Plantain opened 5 years ago

Plantain commented 5 years ago

Is it possible to have --clip-bounding-box handle more than boxes, i.e. a polygon, or a file of polygons? I do understand this can be done in tandem with ogr2ogr or similar tools.

e-n-f commented 5 years ago

The main obstacle to this at the moment is that Wagyu has code to clip polygons to arbitrary polygons, but I think needs some additional code to clip LineStrings or points to polygons. It would be good to have though.