[Mapserver-users] Export to GeoTIFF file

Gheysen Thibaut gheysen.t at skynet.be
Sun Apr 11 06:25:55 EDT 2004


Hello,

That still doesn't function and I don't know why.

I just want to export my map in a geotiff file for use it in arcview. For do
this, I have just add a new outputformat and add this lines in my mapscript
code.

OUTPUTFORMAT
   NAME "Geotiff"
   DRIVER "GDAL/GTiff"
   MIMETYPE "image/tiff"
   IMAGEMODE RGB
   EXTENSION "tif"
 END

$map->selectOutputFormat("Geotiff");
$tif  =  $map->draw();
$tifUrl = $tif->saveWebImage();

I don't use any projection because all the layer are in the same the
projection, this of belgium.

Best regards

Thibaut.


----- Original Message -----
From: "Babak Toloue Tehrani" <babak.tehrani at map4web.de>
To: "Gheysen Thibaut" <gheysen.t at skynet.be>
Sent: Saturday, April 10, 2004 10:37 PM
Subject: Re: [Mapserver-users] Export to GeoTIFF file


> Hello Thibaut
>
> you need a Tiff-World-File (.tfw) to use it with arcview. you can create
> it with geotifcp (http://remotesensing.org/geotiff/geotifcp.html).
>
> Babak
>
>
> Am Sam, den 10.04.2004 schrieb Gheysen Thibaut um 20:51:
> > Hello,
> >
> > I have try to export my current map to a GeoTIFF file to use it with
> > arcview. I use this outputformat :
> >
> > OUTPUTFORMAT
> >   NAME GTiff
> >   DRIVER "GDAL/GTiff"
> >   MIMETYPE "image/tiff"
> >   IMAGEMODE RGB
> >   EXTENSION "tif"
> > END
> >
> > I have obtained the tiff file but when I have add this file in
> > arcview, the file is not good georeferenced. I don't know how I can
> > solve this problem. My mapserver config is :
> >
> > MapServer version 4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> > OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE
> > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> > SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> >
> > Thanks in advance.
> >
> > Best regards
> >
> > ---
> > Mail certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.654 / Virus Database: 419 - Release Date: 6/04/04


---
Mail certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.656 / Virus Database: 421 - Release Date: 9/04/04




More information about the mapserver-users mailing list