Re: [mapserver-users] Problems with MapScript and setProjection

2009-02-10 Thread Pietro Giannini
Tim, maybe you set a map extent wich don't coincides with the extent of the dataset. If you change the projection of the map you should change the extent according with the new projection. Try reproject the extent of the map: $oMapProjection = ms_newProjectionObj($map-getProjection());

Re: [mapserver-users] Problems with MapScript and setProjection

2009-02-10 Thread Tim Wood
Pietro, that was exactly what I needed. Thanks. The example below pulls everything together and works under MapServer 5.2.1 (tested under Fedora 10). If someone hits this in the mailing list archive later and is trying to figure out reprojection, start at the end with the comment reproject

Re: [mapserver-users] Problems with MapScript and setProjection

2009-02-09 Thread Tim Wood
Tom, that PPT linked from your example is filled with good stuff. Anyway, I took your example and did some minor changes to make it work with mapscript as Fedora installs it and my data. Then I added the ability to turn projection on off. With the projection off, everything works great. But,

RE: [mapserver-users] Problems with MapScript and setProjection

2009-02-08 Thread Kralidis,Tom [Ontario]
I've added a small example at: http://trac.osgeo.org/mapserver/wiki/PHPMapscriptAddLayerQueryReproject Hope this helps. ..Tom -Original Message- From: mapserver-users-boun...@lists.osgeo.org on behalf of Tim Wood Sent: Sat 07-Feb-09 22:55 To: mapserver-users@lists.osgeo.org Subject: