Raster image issue
Hooi
wchoonhooi at GMAIL.COM
Wed Jul 5 11:30:48 PDT 2006
Frank,
I follow all ur suggestions but seems not working. I access
http://localhost/cgi-bin/mapserv?map=jpg.map&layer=lakespy&mode=map
My intention is to get map.jpg displayed, but what I get is a purple
rectangular shape.
Below is output gdalinfo map.jpg. I simplified the map file too.
Hope you able to spot the mistake?
#gdalinfo map.jpg
Driver: JPEG/JPEG JFIF
Size is 2524, 1738
Coordinate System is `'
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 1738.0)
Upper Right ( 2524.0, 0.0)
Lower Right ( 2524.0, 1738.0)
Center ( 1262.0, 869.0)
Band 1 Block=2524x1 Type=Byte, ColorInterp=Red
Band 2 Block=2524x1 Type=Byte, ColorInterp=Green
Band 3 Block=2524x1 Type=Byte, ColorInterp=Blue
"jpg.map"
MAP
NAME ITASCA
STATUS ON
SIZE 2524 1738
EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897
#SHAPEPATH "/var/www/cgi-bin/data"
IMAGECOLOR 255 0 255
TRANSPARENT TRUE
IMAGETYPE JPEG
LAYER
NAME lakespy
TYPE RASTER
STATUS ON
DATA "/var/www/cgi-bin/data/map.jpg"
END
On 6/28/06, Frank Warmerdam <warmerdam at pobox.com> wrote:
>
> Hooi wrote:
> > Hi, all. I am new here.
> > I access to
> > http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map
> > <http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map>
> > but JPEG was displayed. FYI, I able to see vector image. Need help on
> > this, thanks.
> >
> > Below is my mapserver version output:-
> > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> > OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL
> > INPUT=SHAPEFILE
>
> Hooi,
>
> I skimmed through your whole email message but was unable to determine
> what sort of problem you are having. You mention a jpeg was
> displayed. What something wrong with it?
>
> I am guessing that your raster layer didn't display properly, is that
> right?
>
> It is a bit odd to have a single class for a raster layer. As far as I
> know the current arrangement would just cause the whole raster to
> be render in color 49 117 185. Is that your intention?
>
> If the problem is with your raster layer it might also be helpful
> to see a gdalinfo report on the raster file (map.tif) as opposed
> to map.jpg. Was map.jpg the output file?
>
> PS. I often try with full absolute paths when I suspect problems with
> how the data is being found. You might want to try that.
>
> Best regards,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush | President OSGF, http://osgeo.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060706/3219908b/attachment.htm>
More information about the MapServer-users
mailing list