Hey Max,

On May 13, 2009, at 5:00 AM, skydivingsu skydivingsu wrote:


My name is Max. I am russian programmer) I have used mapnik, and i have problem with projection EPSG:3395.
I use WMS server. When I see in browser

http://192.168.0.180/tilecache/tilecache.cgi?BBOX=37.265625,55.72265625,37.44140625,55.8984375&LAYERS=basic&SINGLETILE=true&FORMAT=image%2Fpng&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&WIDTH=256&HEIGHT=256&REPROJECT=true&SERVICE=WMS&SRS=EPSG%3A3395

I get empty tiles... (white color)

If i use SRS=EPSG:4326 everything ok)

I really don't know whats the matter....


The trick is you need to configure your Client (OpenLayers) to make requests in the bounding coordinates of the SRS.

To get mercator(3395) coordinates for this example try:

>>> import mapnik
>>> bbox = mapnik.Envelope(37.265625,55.72265625,37.44140625,55.898437)
>>> bbox.forward(mapnik.Projection('+init=epsg:3395'))
Envelope(4148390.39909,7468065.42159,4167958.27833,7502814.00493)
>>>

What happens if you use those for your BBOX value?

Also, make sure 3395 is listed in your 'allowedepsgcodes' parameter in your ogcserver.conf

Lastly, I notice the 'reproject=True' flag in that url. I'm actually not familiar with how that works but I think it is just an OL option and has no effect on the WMS server (http://trac.openlayers.org/ticket/881 ).

Dane

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

Reply via email to