geotiff problem since update

Frank Warmerdam warmerdam at POBOX.COM
Sat Mar 24 00:21:37 EDT 2007


William Reid wrote:
> Since upgrading my rasters have left the map.  

...
> The image itself is readable by gdal.
> 
> Driver: GTiff/GeoTIFF
> Size is 1600, 1200
> Coordinate System is `'      (Is this a problem?)
> GCP Projection = GEOGCS["unnamed",DATUM["WGS_1984",SPHEROID["WGS 
> 84",6378137,298.257223563],TOWGS84[0,0,0,-0,-0,-0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]] 
> 
> GCP[  0]: Id=, Info=
>          (0,0) -> (-78.7842,38.1912,0)
> GCP[  1]: Id=, Info=
>          (0,1200) -> (-78.7824,37.7893,0)
> GCP[  2]: Id=, Info=
>          (1600,0) -> (-78.118,38.1912,0)
> GCP[  3]: Id=, Info=
>          (1600,1200) -> (-78.1198,37.7893,0)

Bill,

It was my understanding that MapServer has never supported GDAL
images with only GCPs for control information.  So I don't know how
this used to work.

Is it possible you have a .wld file associated with this GeoTIFF?   It
may be that the internal geotiff info is now taking precidence over the
.wld.

If that is the case, you can do an operation like:

  gdal_translate -co PROFILE=BASELINE old.tif new.tif
  mv new.tif old.tif

to strip away the geotiff information from a geotiff 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