Orthophoto basics WAS: [Mapserver-users] Raster geotiff turns background yellow
Dylan Keon
keon at nacse.org
Tue Jul 15 11:52:57 PDT 2003
Hi Charlton,
I would recommend using a newer version of GD...it's up to 2.0.15 now.
I think there were some problems with earlier versions (< 2.0.10?) of GD
that have been cleared up in the newer versions. Don't know if that's
related to your issue, but it's worth doing anyway.
Your OUTPUTFORMAT block looks ok to me. For more examples/info, see the
Wiki page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OutputFormat
--Dylan
Charlton Purvis wrote:
> 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
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
--
************************************************
Dylan Keon
GIS/Database Specialist
Northwest Alliance for Computational
Science and Engineering (NACSE)
Oregon State University
Corvallis, OR 97331
keon at nacse.org (541) 737-6608
************************************************
More information about the MapServer-users
mailing list