[MAPSERVER-USERS] Accessing GDAL raster in MapServer

Pål Kristensen pal.kristensen at statkart.no
Thu May 29 06:33:22 EDT 2008


Hi!

I'm trying to serve some CADRG (A.toc) data through MapServer, but I'm
obviously doing something wrong because all I get is some error messages in
the logfile. I'm currently using the latest MS4W release.

This is how the mapfile looks like:
MAP
    NAME "Rendertest"
    STATUS ON
    SIZE 800 500
    DEBUG 4
    #IMAGETYPE PNG
    #IMAGECOLOR 255 255 255
    #SYMBOLSET "c:/ms4w/sym/symbols/SKsym.sym"
    #FONTSET "c:/ms4w/sym/skfonts/font.list"
    EXTENT -1 53 53 68
    SHAPEPATH "E:/RPF_test/"
    UNITS dd
    MAXSIZE 2048
    RESOLUTION 96

    PROJECTION
      "init=epsg:4326"
    END
    WEB
        IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
        IMAGEURL "/ms_tmp/"
        METADATA
            "ows_schemas_location" "http://schemas.opengeospatial.net"
            "ows_accessconstraints" "Copyright Statens kartverk 2007"
             "wms_srs" "EPSG:4326 EPSG:27391 EPSG:27392 EPSG:27393
EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:3034 EPSG:32635
EPSG:32633 EPSG:32634 EPSG:32631 EPSG:32636 EPSG:32632"
            "ows_exceptions_format" "application/vnd.ogc.se_xml"
        END
    END
   LAYER
      NAME "Test"
      DEBUG 4
      STATUS ON
      DATA "rpf/a.toc"
      TYPE RASTER
      #MINSCALE 3000000
      #PROCESSING "RESAMPLE=AVERAGE"
      #PROCESSING "RESAMPLE=BILINEAR"
      #PROCESSING "RPFTOC_FORCE_RGBA=TRUE"
      METADATA
         "wms_title" "Test"
      END
      PROJECTION
         "init=epsg:4326"
      END
   END
END

And this is the error message:
[Thu May 29 12:11:41 2008].641000 CGI Request 1 on process 1516
[Thu May 29 12:11:41 2008].688000 msDrawRasterLayerLow(Test): entering.
[Thu May 29 12:11:42 2008].125000 msResampleGDALToMap in effect: cellsize =
0.053997
[Thu May 29 12:11:42 2008].125000 msDrawGDAL(Test): using RAW_WINDOW=805 0
95841 47616
[Thu May 29 12:11:42 2008].125000 msDrawGDAL(): red,green,blue,alpha bands =
1,0,0,0
[Thu May 29 12:11:42 2008].125000 msDrawMap(): Image handling error. Failed
to draw layer named 'Test'.
[Thu May 29 12:11:42 2008].125000 msFreeMap(): freeing map at 01535F40

I would really appreciate any help on this issue?

Regards,
Pål Kristensen
-- 
View this message in context: http://www.nabble.com/Accessing-GDAL-raster-in-MapServer-tp17532414p17532414.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list