Lennard wrote: > The problem, which you touched on earlier, is that the osm.xml > stylesheet will not work without lots of changes to the filters, and > even then you cannot fully get the same results. osm.xml does a fair > amount of filtering in the SQL queries, and you cannot get this done in > the OSM plugin.
Shouldn't this only make a performance difference ? the output should be the same. For my precise case it is not really a problem, since I plan on rendering only small maps once in a while. Anyway, I got it to work !!! Just had to replace the srs attribute of the <Layer> by one gotten from an example: srs="+proj=latlong +datum=WGS84" (instead of something much longer). I noticed one thing (bug?) while testing: if you have several layers using datasource of type osm/file and the second one references an unexisting file, the file from the first layer is used instead (silently). Maybe it is also used when both files exist, I did not test with 2 different files. Also, I read that polygon detection was a delicate matter here: http://trac.mapnik.org/wiki/OsmPlugin#Linesorpolygons It seems this detection has already been done for osm2pgsql: http://wiki.openstreetmap.org/wiki/Osm2pgsql#Import_style and the way they describe it, it sounds more complete than the Osm plugin one. Wouldn't it be possible to reuse the same code, or at least algorithm, for both tools ? Thanks for any comment ! _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

