MapScript and GeoTiff output

Armin Burger armin.burger at GMX.NET
Tue Mar 15 02:01:50 EST 2005


Hi everybody,

When I use the shp2img tool and select as output format 'GTiff' the tool creates a true GeoTiff, with the georeferencing and coodinates information of the map file.

I would like to produce a GeoTiff output with PHP/Mapscript. I tried

$mymap->selectOutputFormat("GTiff");
$mapImg = $mymap->draw();
$mapImg->saveWebImage();

using the same mapfile as with shp2img, but the output is just a plain tiff, no georeferencing etc., just pixel coordinates. I this a bug or is just the shp2img (and maybe CGI mapserv) producing true GeoTiffs? I tried it PHP/with Mapserver 4.4 and 4.5.

Thanks for any help

Armin



More information about the mapserver-users mailing list