Hi Kevin,

Given that your rendering generally looks good, I'd assume the difference you 
are seeing is simply a difference in the data, not your mapnik install or your 
stylesheet.

If you grabbed your data from cloudmade, it may be a week or two behind, and 
this change could be making the difference:

http://www.openstreetmap.org/browse/changeset/6559377

Re: a doc/wiki/etc explaining the OSM map style... well, the osm.xml is 
enormous and complicated. I think the best way to learn how it works is not 
study it, but the pieces that make it up -  so topics like Mapnik Layers, 
PostGIS datasource parameters, Zoom-dependent rules (min/max scale 
denominators), and how styles are attached to layers. The kind of pieces of 
info that should be linked from here: 
http://trac.mapnik.org/wiki/LearningMapnik if they are not already.

That said, for a first cut to understand how the elements of the osm.xml work: 
like layer ordering, which styles do text, casings, or features, and how the 
heck to find a rule that renders something... the most useful thing for me has 
been the mapnik viewer: http://trac.mapnik.org/wiki/MapnikViewer

It is not terribly easy to build, but in trunk I've been working on making it 
slightly easier.

Let me know what platform you are on and I can advise a bit more on how to get 
it running.

Dane


On Dec 9, 2010, at 5:14 PM, Kevin Collins wrote:

> Hi!
> 
> I've been working with Mapnik, enjoying it, and having some success... 
> except, I'm failing to generate the same green/preserve areas 
> openstreetmap.org has despite an unmodified-from-svn osm.xml file, for 
> example  ->
> 
> http://liquidcycles.com/osm-rendering-of-marin-headlands.png 
> http://liquidcycles.com/attempt-to-copy-osm-rendering-of-marin-headlands.png
> 
> (This is the peninsula just north of San Francisco if that helps at all)
> 
> Zooming out, is there an intro doc/wiki/etc to navigating/modifying the 
> default OSM map-styling?  I'm finding it tricky to relate specific Rule and 
> Filter blocks to the tiles/images being generated.  I've had good success 
> querying the planet_osm_nodes table to find tags for a given point, but 
> as-of-yet unable to replicate this trick for polygons (which I suspect the 
> problem above may involve).
> 
> If not, I can add/write a doc as I learn :)
> 
> Thanks in advance for any help!
> 
> Kevin
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to