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 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) This method allows access to java.lang.reflect.Field objects within the implementing class.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) This allows access to fields withing the implementing object to set there data.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
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin 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
-