Re: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer
In message [EMAIL PROTECTED] Steve Chilton [EMAIL PROTECTED] wrote: 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. Converting those flag keys to boolean columns in the postgres database would be the obvious answer, but I don't know if mapnik supports boolean columns? Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer
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.60655lon=-0.05558zoom=15layers=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.95lon=18.45zoom=12layers=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 talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
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.60655lon=-0.05558zoom=15layers=B0FT 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.95lon=18.45zoom=12layers=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 talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
[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.95lon=18.45zoom=12layers=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 talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer
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.60655lon=-0.05558zoom=15layers=B0FT 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.95lon=18.45zoom=12layers=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 talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer
On 11/02/2008, Karl Eichwalder [EMAIL PROTECTED] wrote: Why did I not think of that? (slaps head). In fact, I could put them in as layer=5 which will put them on top of virtually any other conceivable feature (like, a river underneath a three-layer highway intersection...) In fact, I have a strange idea that osmarender may in fact put them on a virtual layer 5, though I could be *completely* hallucinating that... I'd rather vote to prefer highways. Administrative boundaries are only useful for... the administration. maybe, maybe not. but if we represent them with a fine enough line, they should not interfere with roads, which physically need a thick line to represent them. imo, those boundaries shown on the map of cape town are far too thick, i'm sure if they were less prominent there would be less of a problem ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer
Why did I not think of that? (slaps head). In fact, I could put them in as layer=5 which will put them on top of virtually any other conceivable feature (like, a river underneath a three-layer highway intersection...) In fact, I have a strange idea that osmarender may in fact put them on a virtual layer 5, though I could be *completely* hallucinating that... I'd rather vote to prefer highways. Administrative boundaries are only useful for... the administration. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer
Steve Chilton wrote: This is kind of workaround only. The real solution would be putting features on different layers automatically. For examples POIs (nodes) should be always above anything else while areas always below. Unless, of course, layer= says different. This should be supported by rendering engines not users. 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.60655lon=-0.05558zoom=15layers=B0FT 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.95lon=18.45zoom=12layers=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 talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk -- Było mi bardzo miło. Czwarta pospolita klęska, [...] Łukasz Już nie katolicka lecz złodziejska. (c)PP Pogoda na najblizsze dni. Sprawdz http://link.interia.pl/f1ce1 begin:vcard fn;quoted-printable:=C5=81ukasz Stelmach n;quoted-printable:Stelmach;=C5=81ukasz email;internet:[EMAIL PROTECTED] x-mozilla-html:FALSE version:2.1 end:vcard ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer
On Mon, 2008-02-11 at 10:46 +1300, Robin Paulson wrote: I'd rather vote to prefer highways. Administrative boundaries are only useful for... the administration. maybe, maybe not. but if we represent them with a fine enough line, they should not interfere with roads, which physically need a thick line to represent them. imo, those boundaries shown on the map of cape town are far too thick, i'm sure if they were less prominent there would be less of a problem I agree. In fact, they look *much* better at z15. See, for example, http://www.openstreetmap.org/?lat=-33.95306lon=18.47802zoom=15layers=0BFT I don't think people would object to boundaries drawn that thin? I mean, they don't obscure any other detail. Cheers, Adrian ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] administrative boundaries that run along roads - in the Mapnik layer
On Feb 11, 2008 12:19 AM, Adrian Frith [EMAIL PROTECTED] wrote: On Mon, 2008-02-11 at 10:46 +1300, Robin Paulson wrote: I'd rather vote to prefer highways. Administrative boundaries are only useful for... the administration. maybe, maybe not. but if we represent them with a fine enough line, they should not interfere with roads, which physically need a thick line to represent them. imo, those boundaries shown on the map of cape town are far too thick, i'm sure if they were less prominent there would be less of a problem I agree. In fact, they look *much* better at z15. See, for example, http://www.openstreetmap.org/?lat=-33.95306lon=18.47802zoom=15layers=0BFT I don't think people would object to boundaries drawn that thin? I mean, they don't obscure any other detail. Cheers, Adrian Yes, z14 boundaries on osmarender do look bad, it's been nagging me for a while, but I keep forgetting to look at the stylesheet, test and submit a patch. -- Regards, Thomas Wood (Edgemaster) ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk