Good call Andy. I have moved admin boundaries to its own style in osm.xml and put it in its own layer that paints last. Works fine. Whilst about it I have devised hierarchical mapnik styles for all 7 admin_levels that have been used so far (2,3,4,5,6,8,10). This will mean that boundary=admin will have to be supplemented by an admin_level=foo tag as well to show correctly. If I can get it to work I will use Else Filter for the moment for cases where no admin_level is present yet. All done late last night so not commited to SVN yet, but hope to get it in next style sheet that is deployed. Feel free to patch osm2pgsql as you suggested.
Incidentally, would it be possible for someone to patch osm2pgsql so that instances of =true, =yes and =1 were seen to be the same thing? That way there would be no need for long strings of AND =true, =yes and =1 in order to filter for instance on bridges, tunnels etc. Cheers STEVE Steve Chilton, Learning Support Fellow Learning and Technical Support Unit Manager School of Health and Social Sciences Middlesex University phone/fax: 020 8411 5355 email: [EMAIL PROTECTED] http://www.mdx.ac.uk/schools/hssc/staff/profiles/technical/chiltons.asp Chair of the Society of Cartographers: http://www.soc.org.uk/ SoC conference 2008: http://www.abdn.ac.uk/cartographers08/ -----Original Message----- From: Andy Allan [mailto:[EMAIL PROTECTED] Sent: 11 February 2008 10:48 To: Steve Chilton Cc: Adrian Frith; [EMAIL PROTECTED] Subject: Re: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer Hmm. Since the layer tag is supposed to be for defining the relative vertical displacement of physical features, I think I will rustle up a patch to osm2pgsql to strip off layer tags for non-physical features like admin boundaries :-) If we (or any renderer) want the admin boundaries showing above roads, it should be controlled through the rendering process rather than using layer=. For example, I would move the administrative rendering rule in osm.xml to a separate style from minor-roads, and then put that style in a separate layer. Cheers, Andy On Feb 10, 2008 7:41 PM, Steve Chilton <[EMAIL PROTECTED]> wrote: > Where I have been mapping admin boundaries I put them all in as layer=1 - this brings them above most things in the mapnik rendering. > See: http://www.openstreetmap.org/?lat=51.60655&lon=-0.05558&zoom=15&layers=B 0FT > > Cheers > STEVE > > > -----Original Message----- > From: [EMAIL PROTECTED] on behalf of Adrian Frith > Sent: Sun 2/10/2008 7:06 PM > To: [EMAIL PROTECTED] > Cc: > Subject: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer > > > > Hi All, > > In Cape Town we've been mapping the suburb boundaries (which are > official) as boundary=administrative admin_level=10. These boundaries > run often down the middle of roads, railways or rivers. They show up > very nicely on the Osmarender/[EMAIL PROTECTED] layer as dashed red > lines - see for > example > http://www.openstreetmap.org/?lat=-33.95&lon=18.45&zoom=12&layers=0BFT > > On the Mapnik layer, however, they show up only where they do *not* run > along roads or railways - it seems that the other features are rendered > on top of the boundaries. Should we not be rendering administrative > boundaries above real features? > > My understanding is that this would require a change to the z_order code > in osm2pgsql. Is that correct? > > Regards, > Adrian > > > _______________________________________________ > talk mailing list > [email protected] > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk > > > > _______________________________________________ > talk mailing list > [email protected] > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk > _______________________________________________ talk mailing list [email protected] http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

