Getting extend information from GeoTIFF

Frank Warmerdam fwarmerdam at GMAIL.COM
Mon Jun 20 11:29:10 EDT 2005


On 6/17/05, Dennis Megarry <dennis at megarry.com> wrote:
> I am a complete newbie to mapserver and am switching over to it from years
> of using AspMap.  My main purpose for moving is that AspMap does not
> support GIF w/World files.
> 
> I want to use the GIF files as layers over a GeoTIFF.  What I can not
> figure out is how to get the extend info from the GeoTIFF or GIF file to
> build the MAP file.  Is there any "HOWTO" documents on this subject? or a
> GUI created to help develop your MAP file?

Dennis, 

MapServer and mapscript do not readily provide a means to
get the extents from a raster.  Some support for this was added
for WCS but I am not sure if it is accessable to mapscript. 

You can use GDAL Python bindings or gdalinfo at the commandline
to get the extents, and then create the corresponding map file lines.

You might also find that MapLab or other PHP/Chamleon related 
technologies could help, though I am not certain about this at all. 

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    | Geospatial Programmer for Rent



More information about the mapserver-dev mailing list