On Feb 7, 2010, at 3:22 AM, Hrvoje Prgeša wrote: > (Note: reposting this since I accidentally hit replay instead of > replay to all:) > On Sat, Feb 6, 2010 at 23:13, Rahkonen Jukka <[email protected] > > wrote: >> Hi, >> >> EPSG:900913 is having meters as a unit. For example bounding box >> that hold all the OSM motorways of Finland is >> bbox >> (1795035.9102178386,8402459.259925343,3696374.0218113307,9864708.395856721 >> ) >> >> It is possible that Mapnik works OK, but there may be nothing to >> render inside the less than 100 x 100 metre boxes you gave. You >> can check coordinates around the area that interests you with a map >> at: >> http://spatialreference.org/ref/epsg/3785/ >> >> EPSG:3785 is the official code for this projection, but the self- >> made 900913 is probably still more popular. >> >> -Jukka- > > Thanks for getting me on the right track but still no luck. > > So, again for reference, the following works: > ? > SERVICE > = > WMS > &VERSION > = > 1.3.0 > &REQUEST > = > GetMap > &LAYERS > = > countries > &STYLES > =population&BBOX=0,-90,66.513194,0&WIDTH=256&HEIGHT=256&CRS=EPSG: > 4326&FORMAT=image%2fpng > > But this doesn't: > ? > SERVICE > = > WMS > &VERSION > = > 1.3.0 > &REQUEST > = > GetMap > &LAYERS > = > countries > &STYLES > =population&BBOX=0,0,6261721,6044022&WIDTH=256&HEIGHT=256&CRS=EPSG: > 900913&FORMAT=image%2fpng > > This is at the end of my /usr/share/proj/epsg: > <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 > +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +wktext +no_defs <> > > And ogcserver.conf: > allowedepsgcodes=4326,3857,900913,3785 > > Mapnik reports no error in the output - it just returns an empty > image.
Hrvoje, I'd guess the problem is the shapefile rather than the OGCServer. Try with this shapefile: http://bitbucket.org/springmeyer/tilelite/src/tip/demo/ It is that exact shapefile from the "population" tutorial just cleaned up a bit to avoid problems when re-projecting to 900913. I really should re-post it as the tutorial shapefile, just have not gotten around to it. You should feel free to. If that works for you then you are likely hitting this problem: http://trac.mapnik.org/ticket/308 . In short the problem is that the Antarctic shape is invalid for certain projections, including 900913, and Mapnik handles this with performance at the top concern (and skips past all features after an invalid feature is encountered) but not in the most intuitive way for the user. Dane _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

