[prev in list] [next in list] [prev in thread] [next in thread]
List: mapserver-users
Subject: Re: [mapserver-users] CADRG A.TOC
From: "Francis, Mike" <mfrancis () srcinc ! com>
Date: 2014-07-29 20:29:48
Message-ID: 20140729202952.C05A385B3 () lists ! osgeo ! org
[Download RAW message or body]
Thanks, I have gone with the shape file approach as well. If anyone figures out how to use the TOC then I will go that route.
-----Original Message-----
From: EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE [mailto:james.evans.4@us.af.mil]
Sent: Tuesday, July 29, 2014 4:18 PM
To: Francis, Mike; mapserver-users@lists.osgeo.org
Subject: RE: CADRG A.TOC
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@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] On Behalf Of Francis, Mike
Sent: Tuesday, July 29, 2014 9:17 AM
To: mapserver-users@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
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic