-
-
Notifications
You must be signed in to change notification settings - Fork 184
-
Warning! Contains high art.. 🙃
Original OSM data looks something like this. It's a multipolygon that could contain multiple "holes" or islands to be more specific.
However the planetiler output looks like this (for all the big bays that contain islands):
If bay contains multiple islands, all island areas ("holes", "cutouts", whatever you want to call them) end up being bay polygons.
Not doing anything fancy here:
if (sourceFeature.canBePolygon() && sourceFeature.hasTag("natural", "bay")) { var feature = features.polygon("testing") .setAttr("type", "bay") .setZoomRange(0, 14) .setMinPixelSize(1) .setBufferPixels(8); }
Any advice is highly appreciated!
Not sure if it's relevant but I'm using --area to generate specific countries. I have no idea how data is "sliced". Could it be that geofabrik cuts off the multipolygon? Or does it always contain the full geometry even if it's overhangs the selected "area"?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
Hello! That code looks fine, there could be any number of issues going on here. Could you share a minimal test project (input file, code, and how you are building it) to reproduce this?
Beta Was this translation helpful? Give feedback.
All reactions
-
Back to mapping! Had lots of stuff going on in past.. Many months.
I will provide a minimal test project if I return to this issue!
Beta Was this translation helpful? Give feedback.