Help in displaying rasters needed!

Ker Nulov kernu11 at YAHOO.COM
Thu Mar 9 13:34:40 EST 2006


Hello to all,

I am trying to display a raster but it isn't working
and I need some guidance, hope somebody can help. Here
it is:

I downloaded a sample geotiff raster from here:
http://www.csc.noaa.gov/crs/tcm/sample_geotiff.html
and saved it as .gff extension. The info about the
file gives this:
[niko at localhost temporal]$ listgeo geotiff_examp.gff
Geotiff_Information:
   Version: 1
   Key_Revision: 1.0
   Tagged_Information:
      ModelTiepointTag (2,3):
         0.5              0.5              0
         703985.696       3737741.78       0
      ModelPixelScaleTag (1,3):
         2                2                0
      End_Of_Tags.
   Keyed_Information:
      GTModelTypeGeoKey (Short,1): ModelTypeProjected
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
      ProjectedCSTypeGeoKey (Short,1):
PCS_NAD83_UTM_zone_17N
      ProjLinearUnitsGeoKey (Short,1): Linear_Meter
      End_Of_Keys.
   End_Of_Geotiff.

PCS = 26917 (NAD83 / UTM zone 17N)
Projection = 16017 (UTM zone 17N)
Projection Method: CT_TransverseMercator
   ProjNatOriginLatGeoKey: 0.000000 (  0d 0' 0.00"N)
   ProjNatOriginLongGeoKey: -81.000000 ( 81d 0'
0.00"W)
   ProjScaleAtNatOriginGeoKey: 0.999600
   ProjFalseEastingGeoKey: 500000.000000 m
   ProjFalseNorthingGeoKey: 0.000000 m
GCS: 4269/NAD83
Datum: 6269/North American Datum 1983
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)
Prime Meridian: 8901/Greenwich (0.000000/  0d 0'
0.00"E)
Projection Linear Units: 9001/metre (1.000000m)

Corner Coordinates:
Upper Left    (  703984.696, 3737742.777)
Lower Left    (  703984.696, 3737060.777)
Upper Right   (  704894.696, 3737742.777)
Lower Right   (  704894.696, 3737060.777)
Center        (  704439.696, 3737401.777)
[niko at localhost temporal]$

I assume the extento of this geotiff is 
 EXTENT 703983 3737060 704894 3737742
right?

Then I create 
a mapfile like this:
MAP
  NAME "TEST"
  STATUS ON
  IMAGETYPE PNG
  SIZE 900 600
  OUTPUTFORMAT
        NAME png
        DRIVER "GD/PNG"
        MIMETYPE "image/png"
  END
  UNITS dd
  EXTENT 703983 3737060 704894 3737742
  DEBUG on
  SHAPEPATH "data"
  IMAGECOLOR 255 255 255
  WEB
    LOG "/tmp/mapserver.log"
  END
  PROJECTION
      "proj=utm"
      "ellps=GRS80"
      "datum=NAD83"
      "zone=17"
      "units=m"
      "north"
      "no_defs"
  END


  LAYER
        NAME "raster"
        DATA "geotiff_examp.gff"
        TYPE RASTER
        STATUS DEFAULT
        CLASS
            COLOR 255 145 25
            NAME 'Digital Raster Graphic'
        END
  END

END


Then I call it like
this:http://someserver/cgi-bin/mapserv?map=/var/www/html/test/niko/raster.map&mode=map

when I do it I get a white PNG image with no raster
drawn.

My mapserver CGI has this info:
gentoo niko # /var/www/cgi-bin/mapserv -v
MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG
OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF
INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
gentoo niko #

Mapserver log gives:
gentoo niko # cat /tmp/mapserver.log
Thu Mar  9 12:32:23
2006,21210,10.225.182.179,TEST,3,703927.000000
3737060.000000 704950.000000 3737742.000000,-1.000000
-1.000000,,normal execution
gentoo niko #


I have tryed many combination of options but nothing
seems to work and no error message appears. Where is
my error?

Thanks in advance
Nikolai



__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 



More information about the mapserver-users mailing list