Here is one of the layers I'm using:
LAYER
NAME "JNC_CADRG"
METADATA
"wms_title" "JNC_CADRG"
"wms_name" "JNC_CADRG"
"wms_extent" "-180 -90 180 90"
"wms_srs" "ESPG:4326"
"wms_style" "Default"
END
STATUS ON
TYPE RASTER
PROCESSING "RESAMPLE=AVERAGE"
PROCESSING "OVERSAMPLE_RATIO=8"
TILEINDEX "C:\\MapData\\GNCJNC\\JNC.SHP"
TILEITEM "LOCATION"
PROJECTION
"init=epsg:4326"
END
#MAXSCALEDENOM 40000000
ENDI couldn't get it to work by addressing the A.TOC. I had to add each of the underlying jn* files to the shape. James -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Francis, Mike Sent: Tuesday, July 29, 2014 9:17 AM To: [email protected] Subject: [mapserver-users] CADRG A.TOC I am attempting to load CADRG maps into MapServer 6.4.1 using an RPF TOC file. I have attempted to load the A.TOC file directly via the DATA tag inside a LAYER as well as using a shape index file created by gdaltindex. Has anyone successfully loaded an RPF TOC file into MapServer? Any help would be greatly appreciated. Direct TOC File: -------Map File-------------- LAYER NAME "TEST" TYPE RASTER STATUS ON DATA "CADRG_100_AZ/rpf/A.TOC" METADATA "wms_srs" "EPSG:4326" "wms_title" "Test" "wms_name" "Test" END END --------WMS GetMap Error------------------- msDrawMap(): Image handling error. Failed to draw layer named 'TEST' --------sh2img error--------------------- shp2img -m earth.map -o test.png -all_debug 5 msDrawMap(): Image handling error. Failed to draw layer named 'TEST' TILEINDEX Tag: gdaltindex index.shp NITF_TOC_ENTRY:CADRG__100K_2_0:CADRG_100_AZ/rpf/A.TOC ------Map File------- LAYER NAME "TEST" TYPE RASTER STATUS ON TILEINDEX "index.shp" METADATA "wms_srs" "EPSG:4326" "wms_title" "Test" "wms_name" "Test" END END ------sh2img------- shp2img -m earth.map -o test.png -all_debug=5 No errors but the output image(test.png) is all white. ------WMS GetMap Error--------- msDrawMap(): Image handling error. Failed to draw layer named 'TEST' msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file 'NITF_TOC_ENTRY:CADRG__100K_2_0:CADRG_100_AZ/rpf/A.TOC' Thanks, Mike Francis
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
