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

Rupert, James rupert at NRCan.gc.ca
Fri Jul 13 05:57:59 PDT 2001


Hi Steve and Daniel,

 Thanks for the help, it was the GD problem. I had explicitly told PHP to
compile with GD 1.2 but noticed that the configure stated that it did not
have GIF support. This was because I had originally compiled PHP with GD 1.8
and did not remove the config.cache file. Once I deleted the config.cache
and reran configure and compiled and installed PHP and apache everything is
now working.

 Now its time to learn how to use mapserver and PHP/mapscript to create a
layer and draw symbols that can be queried at locations from a postgresql
database. Any examples would be a great time saver

Again thanks for the help.

Jamie


> ----------
> From: 	Stephen Lime[SMTP:steve.lime at dnr.state.mn.us]
> Sent: 	Wednesday, July 11, 2001 3:40 PM
> To: 	morissette at dmsolutions.ca; rupert at NRCan.gc.ca
> Cc: 	mapserver-users at lists.gis.umn.edu
> Subject: 	[mapserver-users] Re: Mapscript/PHP and TIFF
> 
> 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