USGS DEM in mapserver

Frank Warmerdam warmerdam at POBOX.COM
Thu Jan 25 08:02:01 EST 2007


Pietro Giannini wrote:
> Thanks Zoltan!
> 
> I tried immediately and it work well ... but MS does not reproject the 
> raster!
> The only way to display correctly the raster is apply a lat/lon 
> projection to the map, the same of the raster.
> 
> In the same directory  of the .dem is a world file, with the same name 
> of the Gtopo tile and extension ".wld", I tried also to rename the world 
> file to ".dmw", without result.
> 
> I used .tif rasters, georeferenced with world files, and MS reproject 
> them without problem.
> 
> Another way to georeference .dem rasters?
> Anyone can help?

Pietro,

MapServer should be able to reproject the rasters as long as you define
the original file projection on the LAYER, and then define your desired
output projection on the MAP.  If the .dem files are actually USGS DEM
files then world files of any sort are likely to be ignored by GDAL
though I believe that MapServer actually will pick up the .wld and use it
to override the GDAL returned extents.

Is there a reason you are trying to setup a world file?

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 OSGeo, http://osgeo.org



More information about the mapserver-users mailing list