Package hec.map.transform
Class AlbersLambertCoordinateInfo
java.lang.Object
hec.map.transform.CoordinateInfo
hec.map.transform.AlbersLambertCoordinateInfo
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,CoordinateTransformConstants
,Serializable
- Direct Known Subclasses:
AlbersCoordinateInfo
,LambertCoordinateInfo
public abstract class AlbersLambertCoordinateInfo
extends CoordinateInfo
implements Serializable, AsciiSerializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
protected double
protected double
protected double
protected double
protected double
protected double
protected double
Fields inherited from class hec.map.transform.CoordinateInfo
_mapCoordinateInfo, _spheroid, _type, _unitMultiplier, _units, COORDINATEINFO_BEGIN, COORDINATEINFO_END, INT_CLASS_ARGS
Fields inherited from interface hec.map.transform.CoordinateTransformConstants
ALBERS_TYPE, CLARK_1866, GEOGRAPHIC_TYPE, GRS_1980, HRAP_SPHERE_OF_RADIUS, HRAP_TYPE, LAMBERT_TYPE, METERS, SHG_DEFAULT, SHG_TYPE, SPHERIOD_IDS, SPHERIODS, STATE_TYPE, SYSTEM_IDS, SYSTEMS, TM_TYPE, UNIT_IDS, UNITS, US_FEET, UTM_TYPE, XY_TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionAlbersLambertCoordinateInfo
(String units, String spheroid) AlbersLambertCoordinateInfo
(String units, String spheroid, double sMajorAxis, double sMinorAxis, double latStdPar1, double latStdPar2, double longCentMer, double originLat, double fe, double fn) -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
double
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.double
double
double
double
double
double
boolean
loadData
(org.jdom.Element cinfoElem) protected void
protected void
readObject2
(BufferedReader reader) boolean
saveData
(org.jdom.Element cinfoElem) XML format savevoid
setFalseEasting
(double fe) void
setFalseNorthing
(double fn) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setLatStdPar1
(double latStdPar1) void
setLatStdPar2
(double latStdPar2) void
setLongCentMer
(double longCentMer) void
setMajorAxis
(double sMajorAxis) void
setMinorAxis
(double sMinorAxis) void
setOriginLat
(double originLat) protected void
writeObject2
(BufferedWriter writer) Methods inherited from class hec.map.transform.CoordinateInfo
getLengthConvFactor, getSpheroid, getType, getUnitMultiplier, getUnits, getWKT, readObject, set, setSpheroid, setType, setUnitMultiplier, setUnits, toString, writeObject
-
Field Details
-
_sMajorAxis
protected double _sMajorAxis -
_sMinorAxis
protected double _sMinorAxis -
_latStdPar1
protected double _latStdPar1 -
_latStdPar2
protected double _latStdPar2 -
_longCentMer
protected double _longCentMer -
_originLat
protected double _originLat -
_fe
protected double _fe -
_fn
protected double _fn
-
-
Constructor Details
-
AlbersLambertCoordinateInfo
public AlbersLambertCoordinateInfo() -
AlbersLambertCoordinateInfo
-
AlbersLambertCoordinateInfo
-
-
Method Details
-
setMajorAxis
public void setMajorAxis(double sMajorAxis) -
setMinorAxis
public void setMinorAxis(double sMinorAxis) -
setLatStdPar1
public void setLatStdPar1(double latStdPar1) -
setLatStdPar2
public void setLatStdPar2(double latStdPar2) -
setLongCentMer
public void setLongCentMer(double longCentMer) -
setOriginLat
public void setOriginLat(double originLat) -
setFalseNorthing
public void setFalseNorthing(double fn) -
setFalseEasting
public void setFalseEasting(double fe) -
getMajorAxis
public double getMajorAxis() -
getMinorAxis
public double getMinorAxis() -
getLatStdPar1
public double getLatStdPar1() -
getLatStdPar2
public double getLatStdPar2() -
getLongCentMer
public double getLongCentMer() -
getOriginLat
public double getOriginLat() -
getFalseNorthing
public double getFalseNorthing() -
getFalseEasting
public double getFalseEasting() -
writeObject2
- Specified by:
writeObject2
in classCoordinateInfo
- Throws:
IOException
-
readObject2
- Specified by:
readObject2
in classCoordinateInfo
- Throws:
IOException
-
parseType
-
saveData
public boolean saveData(org.jdom.Element cinfoElem) Description copied from class:CoordinateInfo
XML format save- Overrides:
saveData
in classCoordinateInfo
- Returns:
-
loadData
public boolean loadData(org.jdom.Element cinfoElem) - Overrides:
loadData
in classCoordinateInfo
-
equals
- Overrides:
equals
in classCoordinateInfo
-
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Overrides:
getFieldObject
in classCoordinateInfo
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Overrides:
setFieldObject
in classCoordinateInfo
- Parameters:
fld
- The java field object representing the member field to be setfobj
- The data to set in that field- Returns:
- returns true if successful
-