Raster image issue

Frank Warmerdam warmerdam at POBOX.COM
Thu Jul 6 11:56:12 EDT 2006


Hooi wrote:
> Frank,
> 
> I follow all ur suggestions but seems not working. I access 
> http://localhost/cgi-bin/mapserv?map=jpg.map&layer=lakespy&mode=map 
> <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)

...
>   EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897

Hooi,

OK, at this point your basic problem is that MapServer (and GDAL) don't
know "where in the world" your map.jpg file is located.  The most obvious
way of associating a location is with a world file (ie. map.wld).

There should be an FAQ on the mapserver web site about world files if you
search.

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



More information about the mapserver-users mailing list