geotiff problem since update

William Reid wer at CSTONE.NET
Fri Mar 23 23:13:50 EDT 2007


Since upgrading my rasters have left the map.  They are there, but the 
scale is wrong and they are waaaaay off the map.  I think something 
changed with the way projections are handled since the upgrade.


The TIF takes up the entire extents here.
EXTENTS:
188.403478037
179.62236063
1273.20347804
993.222360634
188.406478037 Layers = 4

SCALE: 533894978.163

Where it used to live here.

EXTENTS:
-78.924
37.78625
-78.246
38.29475
-78.921 Layers = 4

SCALE: 333684.36135


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)
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0, 1200.0)
Upper Right ( 1600.0,    0.0)
Lower Right ( 1600.0, 1200.0)
Center      (  800.0,  600.0)
Band 1 Block=1600x8 Type=Byte, ColorInterp=Red
Band 2 Block=1600x8 Type=Byte, ColorInterp=Green
Band 3 Block=1600x8 Type=Byte, ColorInterp=Blue


The map file has only this for the layer.

  LAYER
    NAME "FF_2623"
    DATA "geotiff/Carters.tif"
    TYPE RASTER
    STATUS ON
    debug on
  END


I have also tried this.

  LAYER
    NAME "FF_Piny"
    TYPE RASTER
    STATUS off
    DEBUG on
    PROJECTION
      "proj=latlong"
      "ellps=WGS84"
      "no_defs"
    END
    TRANSPARENCY 30
    OFFSITE 255 255 255
    DATA "geotiff/Carters2.tif"
  END


I can't find what changed since my upgrade and I am at my wits end.  
Mapservers debug gives me nothing.  It has been working so long that I 
am having to relearn my mapping skills.

Can anyone out there point out the obvious mistake I must have been 
making all along?

Best wishes,

-=Bill



Debian Etch......
Versions:
ii  cgi-mapserver                      4.10.0-5+etch1              cgi 
module of mapserver
ii  php5-mapscript                     4.10.0-5+etch1              
module for php5-cgi to use mapserver
ii  cgi-mapserver                      4.10.0-5+etch1              cgi 
module of mapserver
ii  gdal-bin                           1.3.2-4                     
Geospatial Data Abstraction Library - Utilit
ii  libgdal1-1.3.2                     1.3.2-4                     
Geospatial Data Abstraction Library

Old Versions:
libgdal1                           1.2.6-1                     
Geospatial Data Abstraction Library
php4-mapscript_4.8.1
cgi-mapserver_4.8.1-
mapserver-bin_4.8.1-0



More information about the mapserver-users mailing list