MapScript and GeoTiff output
Armin Burger
armin.burger at GMX.NET
Mon Mar 14 23:01:50 PST 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