> > 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. > > Just to be clear, I'm probing the osm.xml file more than studying it -> > modify-render-learn-modify-render-learn, etc > > I'm currently having problems where TextSymbolizers are getting clipped at > tile boundaries (label shows up on one side but not the other) if you have > any ideas. I've tried playing with TS min_distance, spacing, avoid_edges, > etc but no luck yet
Try buffer_size=128 in your <Map ... > element. > > 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. > > This looks immensely useful for the graphic design... I'm generating on OS X > Snow Leopard. > Okay, well first step would be to install the Mac QT binaries - either the SDK or the libraries. This should give you the `qmake` program. Then go into the viewer directory and run qmake $ cd demo/viewer/ $ qmake This should create a Makefile so you can then run make If it did not generate a makefile then do this: $ qmake -spec macx-g++ Now, in Mapnik trunk the plugins/fonts directory for viewer are configurable with a 'viewer.ini' file but in Mapnik 0.7.x they are not. So if you are running 0.7.x you need to open up demo/viewer/main.cpp and edit line 42 likely to point to '/usr/local'. Finally run make: $ make If that works then you can run the viewer.app like: $ ./viewer.app/Contents/MacOS/viewer > Thanks again! > > 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

