Perforce JViews Maps for Defense Sample: CADRG Reader
Description
This sample shows how to read CADRG files using Perforce JViews.
How to Use the Sample
- Open a CADRG 'A.TOC' file using the File/Open File menu item. (See the 'About the CADRG Format' section for information on how to obtain such a file).
- Select the coverages you want to see.
- Change the zoom level to switch between different coverages and view the tiles loaded in the tile windows.
How to Run the Sample as an Application
This sample can
be run as an application.
The installation directory contains
an executable JAR file,
cadrg.jar
,
that allows you to execute the sample with a double click from a
file browser. Note that if you are using Internet Explorer, you can
open the installation directory
and execute the JAR file from the browser. This
technique may not work in other Web browsers.
Alternatively, you
can run the sample application from the command line.
First check that the Ant utility is properly configured. If not, see the
instructions on how to configure Ant for Perforce JViews.
Then, go to the installation directory
of the sample and type:
ant run
Topics Covered
- Reading CADRG files.
- Loading CADRG files on demand.
Detailed Description
The CADRG Viewer can view a subset of coverages for the CADRG product, specified by its table of contents file ("A.TOC").
About the CADRG Format
The CADRG format (Compressed ARC Digitized Raster Graphics) is a map format for raster data published by the US National Imagery and Mapping Agency (NIMA).
Basically, a CADRG database covers an area with rasters of various scales. It is composed of a main directory divided into subdirectories for each scale covered. The CADRG frames can be found in each subdirectory.
Note: No such data source is available in the JViews installation. For more information, see Map data in Programming with JViews Maps.
Installation Directory
The CADRG Reader sample is installed here.
Classes Involved
- ilog.views.maps.IlvCoordinateSystemProperty
- ilog.views.maps.IlvMapLayerTreeProperty
- ilog.views.maps.beans.IlvMapLayer
- ilog.views.maps.beans.IlvMapLayerTreeModel
- ilog.views.maps.datasource.IlvMapDataSource
- ilog.views.maps.datasource.IlvMapDataSourceModel
- ilog.views.maps.datasource.IlvMapDataSourceProperty
- ilog.views.maps.defense.format.cadrg.IlvCADRGCoverageList
- ilog.views.maps.defense.format.cadrg.IlvRasterCADRGReader
- ilog.views.maps.format.cadrg.IlvCADRGCoverage
- ilog.views.maps.format.cadrg.IlvCADRGTocReader
- ilog.views.maps.graphic.style.IlvMapCompositeStyle
- ilog.views.maps.raster.datasource.IlvRasterDataSourceFactory
- ilog.views.maps.raster.datasource.IlvThreadMonitoringData
- ilog.views.maps.srs.coordsys.IlvGeographicCoordinateSystem
- ilog.views.maps.theme.IlvMapStyleController
- ilog.views.maps.theme.IlvMapStyleControllerProperty