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

Charlton Purvis cpurvis at asg.sc.edu
Tue Jul 15 11:44:23 PDT 2003


Hi, Randy:

MapServer version 3.7 (development) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=JPEG
INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE

I will tell you, though, that I'm rendering a call to produce the image
through PHP (same MS config version).

$map = ms_newMapObj($map_path.$map_file);
$image=$map->draw();
$image_url=$image->saveImage("");

But I don't see anything wrong there.

Thanks for your help.

Charlton

-----Original Message-----
From: Randy James [mailto:rjames57 at yahoo.com] 
Sent: Tuesday, July 15, 2003 2:37 PM
To: Charlton Purvis
Subject: Re: Orthophoto basics WAS: [Mapserver-users] Raster geotiff
turns background yellow

Hi

>From the information you give it looks ok to me ;-)

maybe post your mapserv -v info

Cheers

--- Charlton Purvis <cpurvis at asg.sc.edu> 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


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com




More information about the MapServer-users mailing list