[mapserver-users] Re: Mapscript/PHP and TIFF

Stephen Lime steve.lime at dnr.state.mn.us
Wed Jul 11 12:40:14 PDT 2001


This is a GD issue. You must've compiled with a different version than PHP was compiled
with. In GD 1.2 the image array in GD is column major (i.e. img[x][y]) and in subsequent 
versions they switched that to row major for performance reasons. Get the versions of GD
in sync and I believe the problem will disappear.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Daniel Morissette <morissette at dmsolutions.ca> 07/11/01 02:27PM >>>
"Rupert, James" wrote:
> 
> Hello Daniel,
> 
>  I have encounter a problem with PHP/mapscript and TIFF images. If I use
> mapserver standalone the TIFF image appears properly. If I draw the same map
> file through PHP/mapscript the image is output as a mirror image and is
> rotated 90 degrees anti-clockwise. Any thoughts.
> 
> Jamie

Jamie,

PHP/MapScript does nothing special about the way things are drawn.  Are
your 'mapserv' CGI and your PHP MapScript compiled with the exact same
options?  Perhaps one of them uses native TIFF support in MapServer and
the other one uses GDAL's TIFF support?  (If so then we'll have to find
out why they behave differently.)

Maybe Frank, Steve, or someone else on the list already ran into a
similar problem and will have some ideas?

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca 
 DM Solutions Group              http://www.dmsolutions.ca/ 
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.





More information about the MapServer-users mailing list