Opened 10 years ago

Closed 10 years ago

#1817 closed enhancement (fixed)

linear Barriers on areas

Reported by: malte.roedl@… Owned by: steve8@…
Priority: minor Milestone:
Component: mapnik Version:
Keywords: barrier linear area Cc:

Description

As in the wiki liear barriers can be applied on areas as well. (see wiki entry)

In Mapnik they're currently only rendered from ways but not from areas.

Attachments (1)

polygon-barriers.diff (1.3 KB) - added by malte.roedl@… 10 years ago.
Patch

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by malte.roedl@…

Attachment: polygon-barriers.diff added

Patch

comment:1 Changed 10 years ago by malte.roedl@…

Priority: majorminor
Type: defectenhancement

Could someone please include this patch?

comment:2 Changed 10 years ago by steve8@…

Can you give link to some linear barriers so I can investigate?

comment:3 Changed 10 years ago by malte.roedl@…

Herefor example.

The area with leisure=sports_centre named "TC Vennhausen e.V.".

comment:4 Changed 10 years ago by Ldp

The patch works fine for me. However it seems a bit too liberal in what it fetches from the database.

I would propose narrowing it a bit:

(select way,barrier,"natural" from planet_osm_polygon where barrier is not null or "natural"='hedge' order by z_order,way_area desc) as barriers

Since the barriers rule currently only checks for barrier=* or a natural=hedge.

And do we really need ordering on something that renders as a narrow black line? Dropping that makes it even simpler:

(select way,barrier,"natural" from planet_osm_polygon where barrier is not null or "natural"='hedge') as barriers

comment:5 Changed 10 years ago by steve8@…

Resolution: fixed
Status: newclosed

Done - with Ldp's tweak. Should render now

Note: See TracTickets for help on using tickets.