Package hec.map.transform
Class UTMCoordinateInfo
java.lang.Object
hec.map.transform.CoordinateInfo
hec.map.transform.UTMCoordinateInfo
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,CoordinateTransformConstants
,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
protected double
protected long
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
ConstructorsConstructorDescriptionUTMCoordinateInfo
(String units, String spheroid) UTMCoordinateInfo
(String units, String spheroid, long utmZone, double latZone, double longZone) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.double
double
getType()
long
boolean
loadData
(org.jdom.Element cinfoElem) protected void
readObject2
(BufferedReader reader) boolean
saveData
(org.jdom.Element cinfoElem) XML format saveboolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setLatZone
(double latZone) void
setLongZone
(double longZone) void
setUTMZone
(long utmZone) protected void
writeObject2
(BufferedWriter writer) Methods inherited from class hec.map.transform.CoordinateInfo
getLengthConvFactor, getSpheroid, getUnitMultiplier, getUnits, getWKT, readObject, set, setSpheroid, setType, setUnitMultiplier, setUnits, toString, writeObject
-
Field Details
-
_utmZone
protected long _utmZone -
_latZone
protected double _latZone -
_longZone
protected double _longZone
-
-
Constructor Details
-
UTMCoordinateInfo
public UTMCoordinateInfo() -
UTMCoordinateInfo
-
UTMCoordinateInfo
-
-
Method Details
-
getType
- Specified by:
getType
in classCoordinateInfo
-
setUTMZone
public void setUTMZone(long utmZone) -
setLatZone
public void setLatZone(double latZone) -
setLongZone
public void setLongZone(double longZone) -
getUTMZone
public long getUTMZone() -
getLatZone
public double getLatZone() -
getLongZone
public double getLongZone() -
equals
- Overrides:
equals
in classCoordinateInfo
-
writeObject2
- Specified by:
writeObject2
in classCoordinateInfo
- Throws:
IOException
-
readObject2
- Specified by:
readObject2
in classCoordinateInfo
- Throws:
IOException
-
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
-
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
-