Package hec.map.transform
Class CoordinateInfo
java.lang.Object
hec.map.transform.CoordinateInfo
- All Implemented Interfaces:
hec.io.AsciiSerializable,CoordinateTransformConstants,Serializable
- Direct Known Subclasses:
AlbersLambertCoordinateInfo,GeographicCoordinateInfo,PolarStereographicCoordinateInfo,StatePlaneCoordinateInfo,TransverseMercatorCoordinateInfo,UTMCoordinateInfo,XYCoordinateInfo
public abstract class CoordinateInfo
extends Object
implements Serializable, hec.io.AsciiSerializable, CoordinateTransformConstants
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Hashtableprotected Stringprotected Stringprotected doubleprotected Stringstatic final Stringstatic final Stringprotected 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 TypeMethodDescriptionbooleangetFieldObject(Field fld) doublegetLengthConvFactor(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 StringgetType()doublegetUnits()getWKT()booleanloadData(org.jdom.Element cinfoElem) static CoordinateInforeadObject(BufferedReader reader) protected abstract voidreadObject2(BufferedReader reader) booleansaveData(org.jdom.Element cinfoElem) XML format savevoidbooleansetFieldObject(Field fld, Object fobj) voidsetSpheroid(String spheroid) voidvoidsetUnitMultiplier(double m) voidtoString()voidwriteObject(BufferedWriter writer) protected abstract voidwriteObject2(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
- Specified by:
getFieldObjectin interfacehec.io.AsciiSerializable
-
setFieldObject
- Specified by:
setFieldObjectin interfacehec.io.AsciiSerializable
-