Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bay multipolygons end up being inside out #1069

Unanswered
adjourn asked this question in Q&A
Discussion options

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.

osm

However the planetiler output looks like this (for all the big bays that contain islands):

output

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"?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

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?

You must be logged in to vote
1 reply
Comment options

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /