[mapserver-users] Problems with MapScript and setProjection

Kralidis,Tom [Ontario] Tom.Kralidis at ec.gc.ca
Sun Feb 8 18:44:36 EST 2009


I've added a small example at:

http://trac.osgeo.org/mapserver/wiki/PHPMapscriptAddLayerQueryReproject

Hope this helps.

..Tom



-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org on behalf of Tim Wood
Sent: Sat 07-Feb-09 22:55
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Problems with MapScript and setProjection
 
I've been round and round with setProjection in MapScript and 
setProjection today. I either get the infamous blank image  or the image 
returns in the same proportions as the original lat/long data. Proj 
seems to be (at least partially) working because if I forget something 
like +ellps=[blah blah], it throws an error.

I'd like to look at a simple php mapscript example of creating a map, 
adding a layer, adding something to that layer (e.g. my a simple query 
against a lat/long shapefile) and then project that another way (tmerc, 
lcc, whatever). But, I have yet to find one. Can someone share a working 
example or know of one on the web?

Tim Wood



More information about the mapserver-users mailing list