Orthophoto basics WAS: [Mapserver-users] Raster geotiff turns background yellow

Charlton Purvis cpurvis at asg.sc.edu
Tue Jul 15 14:17:20 EDT 2003


Hi, Randy (and all):

I realize this is a late post, but I am having a tough time getting my
orthophotos running.  Unfortunately, I don't know as much as I need to
about images, per se, but I know from what I've read, this should be
sufficient:

MS 3.7, gd-2.0.7, gdal-1.1.8

But I can't get the orthophoto to come through (rest of shapes and
rasters all of same projection are OK).  What is the secret?  What
should my OUTPUTFORMAT portion of my .map contain, assuming I wanted to
keep it simple by only displaying this one layer?

Something like this?

MAP
   ...

IMAGETYPE jpeg

OUTPUTFORMAT
  NAME jpeg
  DRIVER "GD/JPEG"
  MIMETYPE "image/jpeg"
  IMAGEMODE RGBA
  EXTENSION "jpg"
END

  LAYER
    NAME "CharlestonSE"
    GROUP "HiRes"
    STATUS ON
    DATA "Charleston-SC-SE.tif"
    TYPE RASTER
  END
END

For kicks, a gdalinfo of my orthophoto look like:

Driver: GTiff/GeoTIFF
Size is 6543, 7609
Coordinate System is `'
Origin = (599145.416999,3631174.164991)
Pixel Size = (1.000000,-1.000000)
Corner Coordinates:
Upper Left  (  599145.417, 3631174.165) 
Lower Left  (  599145.417, 3623565.165) 
Upper Right (  605688.417, 3631174.165) 
Lower Right (  605688.417, 3623565.165) 
Center      (  602416.917, 3627369.665) 
Band 1 Block=6543x5 Type=Byte, ColorInterp=Red
Band 2 Block=6543x5 Type=Byte, ColorInterp=Green
Band 3 Block=6543x5 Type=Byte, ColorInterp=Blue

Thanks,

Charlton

-----Original Message-----
From: randy james [mailto:rjames57 at yahoo.com] 
Sent: Wednesday, January 29, 2003 6:39 PM
To: Dylan Keon
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Raster geotiff turns background yellow

Hi

I'm not sure of which version of GD was compiled, i
did not specify when i ran configure. I have 2.0.1 and
1.8.4 installed. 

I'll try downloading the source of GD 2.0.11 and
reconfigure, and compile with it tommorrow.

I have GDAL 1.1.8 installed

Randy




More information about the mapserver-users mailing list