MapScript Save to GeoTiff or Tiff/worldfile

Shoaib Burq hydromap at GMAIL.COM
Fri Apr 21 20:09:13 PDT 2006


you might want to look at the WCS for this purposes.  i don't think
world files are supported but certainly the internally georeferenced
geotiffs work.


On 4/19/06, Simpson <asimpson at i-55.com> wrote:
>
>
> In MapScript 4.8.1 with GDAL 1.3.1.0, is there anything special one has to
> do to save image to GeoTiff or to a Tiff with worldfile?
>
> In the GeoTiff case, the tiff is created but no CRS info when I run a
> gdalinfo against it.
>
> In the Tiff with worldfile, no worldfile is created.
>
> Thanks for any help,
> Drew.
>
>
> ============= mapfile clip =====================
>
> MAP
>   EXTENT 764355.44479 3337347.51664 834777.592259 3402902.747157
>   FONTSET "xxx"
>   IMAGECOLOR 156 188 217
>   IMAGETYPE GTIFWLD
>   SYMBOLSET "xxx"
>   SIZE 2347 2185
>   STATUS ON
>   UNITS METERS
>   NAME "DIPEX3"
>
>   OUTPUTFORMAT
>     NAME "GTIFWLD"
>     MIMETYPE "image/tiff"
>     DRIVER "GDAL/GTiff"
>     EXTENSION "tif"
>     IMAGEMODE "PC256"
>     TRANSPARENT FALSE
>     FORMATOPTION "WORLDFILE=YES"
>   END
>
>   PROJECTION
>     "init=epsg:32615"
>   END
>
> ...
> END
>
> ============= gdalinfo clip =======================
>
> Driver: GTiff/GeoTIFF
> Size is 2347, 2185
> Coordinate System is `'
> Corner Coordinates:
> Upper Left  (    0.0,    0.0)
> Lower Left  (    0.0, 2185.0)
> Upper Right ( 2347.0,    0.0)
> Lower Right ( 2347.0, 2185.0)
> Center      ( 1173.5, 1092.5)
> Band 1 Block=2347x3 Type=Byte, ColorInterp=Palette
>   Color Table (RGB with 256 entries)
>     0: 156,188,217,255
>     1: 0,0,0,255
> ...
>
>
>



More information about the MapServer-users mailing list