[mapserver-users] CADRG A.TOC
EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
james.evans.4 at us.af.mil
Tue Jul 29 13:18:09 PDT 2014
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
END
I 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: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Francis, Mike
Sent: Tuesday, July 29, 2014 9:17 AM
To: mapserver-users at lists.osgeo.org
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5563 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140729/8dd7c9c7/attachment.bin>
More information about the MapServer-users
mailing list