faa.tg.prep.aces.geomaps
Class AcesGeomapToXml

java.lang.Object
  extended by faa.tg.prep.aces.geomaps.AcesGeomapToXml

public class AcesGeomapToXml
extends java.lang.Object

 AcesGeomapToXml constructs an xml file from an ACES GEOMAPS
 binary dataset file.
 
See the source: AcesGeomapToXml

Version:
$Id: AcesGeomapToXml.java,v 3.4 2008/12/31 23:45:08 lykensj Exp $
Author:
Timothy Swantek

Field Summary
(package private)  java.io.BufferedInputStream bis
           
(package private)  AcesClassType currentClassType
           
(package private)  AcesLineStyle currentLineStyle
           
(package private)  AcesSymbolType currentSymbolType
           
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
(package private)  DcpWord dcpw
           
private static Altitude DUMMY_ALT
           
(package private)  Position endPosition
           
(package private)  AcesGeomap geomap
           
(package private)  AcesGeomapDB geomapDB
           
(package private)  Position startPosition
           
(package private)  Position tangency
           
 
Constructor Summary
AcesGeomapToXml(java.io.File geomapFile, java.io.File outFile, java.io.File xmlFile)
          Constructor - AcesGeomapToXml takes an ACES GEOMAPS input dataset file and constructs a Xml outputFile from it.
AcesGeomapToXml(java.io.File geomapFile, java.io.File outFile, java.lang.String centerName)
          Constructor - AcesGeomapToXml takes an ACES GEOMAPS input dataset file and constructs a Xml outputFile from it.
 
Method Summary
private  void fillGeoLinePositions(DcpGeoLine dcpLine, StereoMapProjection smp)
          fillGeoLinePositions is a wrapper method for filling an AcesGeoLine start and end positions.
private  void fillGeoSymbolPosition(DcpGeoSymbol dcpSymbol, StereoMapProjection smp)
          fillGeoSymbolPosition is a wrapper method for filling an AcesGeoSymbol position.
static void main(java.lang.String[] args)
          Method main for stand alone use.
private  void runDcpFactory(Distance xDistortion, Distance yDistortion)
          Method runDcpFactory acquires various DcpWords through the BufferedInputStream and develops the AcesGeomapDB from them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

bis

java.io.BufferedInputStream bis

dcpw

DcpWord dcpw

currentLineStyle

AcesLineStyle currentLineStyle

currentClassType

AcesClassType currentClassType

currentSymbolType

AcesSymbolType currentSymbolType

DUMMY_ALT

private static final Altitude DUMMY_ALT

geomap

AcesGeomap geomap

geomapDB

AcesGeomapDB geomapDB

startPosition

Position startPosition

endPosition

Position endPosition

tangency

Position tangency
Constructor Detail

AcesGeomapToXml

public AcesGeomapToXml(java.io.File geomapFile,
                       java.io.File outFile,
                       java.lang.String centerName)
                throws java.io.FileNotFoundException,
                       java.io.IOException
Constructor - AcesGeomapToXml takes an ACES GEOMAPS input dataset file and constructs a Xml outputFile from it. It requires an output File to use and a center name to develop a pointOfTangency from. (Used for lat/lon development.)

Parameters:
geomapFile - : the name of the geomapFile to read from.
outFile - : the name of the desired output file.
CenterName - : the centerName which corresponds to the location of these maps. zdc, or zla are examples.
Throws:
java.io.FileNotFoundException
java.io.IOException

AcesGeomapToXml

public AcesGeomapToXml(java.io.File geomapFile,
                       java.io.File outFile,
                       java.io.File xmlFile)
                throws java.io.FileNotFoundException,
                       java.io.IOException
Constructor - AcesGeomapToXml takes an ACES GEOMAPS input dataset file and constructs a Xml outputFile from it.

Parameters:
geomapFile - : the name of the geomapFile to read from.
outFile - : the name of the desired output file.
xmlFile - : the PointOfTangency xml File to read from for lat/lon and Offset information. This file should conform with the centers.dtd.
Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

runDcpFactory

private void runDcpFactory(Distance xDistortion,
                           Distance yDistortion)
                    throws java.io.IOException
Method runDcpFactory acquires various DcpWords through the BufferedInputStream and develops the AcesGeomapDB from them.

Parameters:
xDistortion - is a displacement to latitude coord's.
yDistortion - is a displacement to longitude coord's.
Throws:
java.io.IOException
See Also:
for information on how various words are returned., for various word information.

fillGeoLinePositions

private void fillGeoLinePositions(DcpGeoLine dcpLine,
                                  StereoMapProjection smp)
fillGeoLinePositions is a wrapper method for filling an AcesGeoLine start and end positions.

Parameters:
DcpGeoLine - : The DcpGeoLine from which it retrieves the X and Y coords from.
smp - is a StereoMapProjection used to acquire lat/lons from Position data.

fillGeoSymbolPosition

private void fillGeoSymbolPosition(DcpGeoSymbol dcpSymbol,
                                   StereoMapProjection smp)
fillGeoSymbolPosition is a wrapper method for filling an AcesGeoSymbol position.

Parameters:
DcpGeoSymbol - : The DcpGeoSymbol from which it retrieves the X and Y coords from.
smp - is a StereoMapProjection used to acquire lat/lons from Position data.

main

public static void main(java.lang.String[] args)
Method main for stand alone use.