Package hec.map.transform
Class CoordinateInfo
java.lang.Object
hec.map.transform.CoordinateInfo
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,CoordinateTransformConstants
,Serializable
- Direct Known Subclasses:
AlbersLambertCoordinateInfo
,GeographicCoordinateInfo
,PolarStereographicCoordinateInfo
,StatePlaneCoordinateInfo
,TransverseMercatorCoordinateInfo
,UTMCoordinateInfo
,XYCoordinateInfo
public abstract class CoordinateInfo
extends Object
implements Serializable, AsciiSerializable, CoordinateTransformConstants
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Hashtable
protected String
protected String
protected double
protected String
static final String
static final String
protected static final Class[]
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.double
getLengthConvFactor
(int unitSystemId) returns the conversion factor that multiplies the base length unit in the maps world coordinates to feet or meters depending on the given unit system idabstract String
getType()
double
getUnits()
getWKT()
boolean
loadData
(org.jdom.Element cinfoElem) static CoordinateInfo
readObject
(BufferedReader reader) protected abstract void
readObject2
(BufferedReader reader) boolean
saveData
(org.jdom.Element cinfoElem) XML format savevoid
boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setSpheroid
(String spheroid) void
void
setUnitMultiplier
(double m) void
toString()
void
writeObject
(BufferedWriter writer) protected abstract void
writeObject2
(BufferedWriter writer)
-
Field Details
-
_type
-
_units
-
_unitMultiplier
protected double _unitMultiplier -
_spheroid
-
COORDINATEINFO_BEGIN
- See Also:
-
COORDINATEINFO_END
- See Also:
-
INT_CLASS_ARGS
-
_mapCoordinateInfo
-
-
Constructor Details
-
CoordinateInfo
public CoordinateInfo() -
CoordinateInfo
-
-
Method Details
-
setUnits
-
setUnitMultiplier
public void setUnitMultiplier(double m) -
setSpheroid
-
getType
-
getUnits
-
getUnitMultiplier
public double getUnitMultiplier() -
getWKT
-
getLengthConvFactor
public double getLengthConvFactor(int unitSystemId) returns the conversion factor that multiplies the base length unit in the maps world coordinates to feet or meters depending on the given unit system id- Parameters:
unitSystemId
-- Returns:
-
getSpheroid
-
set
-
equals
-
writeObject
- Throws:
IOException
-
writeObject2
- Throws:
IOException
-
readObject
- Throws:
IOException
-
setType
-
readObject2
- Throws:
IOException
-
saveData
public boolean saveData(org.jdom.Element cinfoElem) XML format save- Parameters:
cinfoElem
-- Returns:
-
loadData
public boolean loadData(org.jdom.Element cinfoElem) -
toString
-
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
- 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
- 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
-