com.bbn.openmap.layer.rpf
Class RpfAttributes
java.lang.Object
com.bbn.openmap.layer.rpf.RpfAttributes
public class RpfAttributes
- extends java.lang.Object
This class knows how to read the attribute section of an RPF file.
This section includes all the information about the image,
including source and production information.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
currencyDate
public java.lang.String currencyDate
productionDate
public java.lang.String productionDate
significantDate
public java.lang.String significantDate
chartSeriesCode
public java.lang.String chartSeriesCode
mapDesignationCode
public java.lang.String mapDesignationCode
oldHorDatum
public java.lang.String oldHorDatum
edition
public java.lang.String edition
projectionCode
public java.lang.String projectionCode
projectionA
public float projectionA
projectionB
public float projectionB
projectionC
public float projectionC
projectionD
public float projectionD
vertDatumCode
public java.lang.String vertDatumCode
horDatumCode
public java.lang.String horDatumCode
vertAbsAccuracy
public long vertAbsAccuracy
vertAbsUnits
public int vertAbsUnits
horAbsAccuracy
public long horAbsAccuracy
horAbsUnits
public int horAbsUnits
vertRelAccuracy
public long vertRelAccuracy
vertRelUnits
public int vertRelUnits
horRelAccuracy
public long horRelAccuracy
horRelUnits
public int horRelUnits
ellipsoidCode
public java.lang.String ellipsoidCode
soundingDatumCode
public java.lang.String soundingDatumCode
navSystemCode
public int navSystemCode
gridCode
public java.lang.String gridCode
eMagChange
public float eMagChange
eMagChangeUnits
public int eMagChangeUnits
wMagChange
public float wMagChange
wMagChangeUnits
public int wMagChangeUnits
magAngle
public float magAngle
magAngleUnits
public int magAngleUnits
gridConver
public float gridConver
gridConverUnits
public int gridConverUnits
highElevation
public double highElevation
highElevationUnits
public int highElevationUnits
highLat
public double highLat
highLon
public double highLon
legendFileName
public java.lang.String legendFileName
dataSource
public java.lang.String dataSource
gsd
public long gsd
dataLevel
public int dataLevel
RpfAttributes
public RpfAttributes()
read
public boolean read(BinaryFile binFile,
long attributeLocation)
- Read the section in a file. The method will start reading from
the offset provided.
- Parameters:
binFile
- the opened RPF file.attributeLocation
- the offset of the attribute section in
the file.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getAttributes
public static RpfAttributes getAttributes(java.lang.String filename)
throws java.io.IOException,
java.io.FileNotFoundException
- Get the attributes from within a RPF Frame file. Returns null
if something goes wrong. You do need to make sure that the
Debug class is initialized before calling this class. For
OpenMap, it usually is.
- Parameters:
filename
- the file path for the RPF frame file.
- Returns:
- a RpfAttributes object.
- Throws:
java.io.IOException
java.io.FileNotFoundException
getAttributes
public static RpfAttributes getAttributes(BinaryFile binFile)
throws java.io.IOException,
java.io.FileNotFoundException
- Get the attributes from within a RPF Frame file, after the
header has been read. Returns null if something goes wrong. You
do need to make sure that the Debug class is initialized before
calling this class. For OpenMap, it usually is.
- Parameters:
binFile
- BinaryFile.
- Returns:
- a RpfAttributes object.
- Throws:
java.io.IOException
java.io.FileNotFoundException
main
public static void main(java.lang.String[] args)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details