Package hec.map.transform
Class PolarStereographicCoordinateInfo
java.lang.Object
hec.map.transform.CoordinateInfo
hec.map.transform.PolarStereographicCoordinateInfo
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,CoordinateTransformConstants,Serializable
public class PolarStereographicCoordinateInfo
extends CoordinateInfo
implements Serializable, AsciiSerializable
- See Also:
-
Field Summary
Fields inherited from class hec.map.transform.CoordinateInfo
_mapCoordinateInfo, _spheroid, _type, _unitMultiplier, _units, COORDINATEINFO_BEGIN, COORDINATEINFO_END, INT_CLASS_ARGSFields 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
ConstructorsConstructorDescriptionPolarStereographicCoordinateInfo(String units, String spheroid) PolarStereographicCoordinateInfo(String units, String spheroid, double sMajorAxis, double sMinorAxis, double longPol, double trueScale, double fe, double fn) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubledoublegetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.doubledoubledoubledoublegetType()booleanisHrap()booleanloadData(org.jdom.Element cinfoElem) protected voidreadObject2(BufferedReader reader) booleansaveData(org.jdom.Element cinfoElem) XML format savevoidsetFalseEasting(double fe) voidsetFalseNorthing(double fn) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetLongPol(double longPol) voidsetMajorAxis(double sMajorAxis) voidsetMinorAxis(double sMinorAxis) voidsetTrueScale(double trueScale) protected voidwriteObject2(BufferedWriter writer) Methods inherited from class hec.map.transform.CoordinateInfo
getLengthConvFactor, getSpheroid, getUnitMultiplier, getUnits, getWKT, readObject, set, setSpheroid, setType, setUnitMultiplier, setUnits, toString, writeObject
-
Constructor Details
-
PolarStereographicCoordinateInfo
public PolarStereographicCoordinateInfo() -
PolarStereographicCoordinateInfo
-
PolarStereographicCoordinateInfo
-
-
Method Details
-
setMajorAxis
public void setMajorAxis(double sMajorAxis) -
setMinorAxis
public void setMinorAxis(double sMinorAxis) -
setLongPol
public void setLongPol(double longPol) -
setTrueScale
public void setTrueScale(double trueScale) -
setFalseNorthing
public void setFalseNorthing(double fn) -
setFalseEasting
public void setFalseEasting(double fe) -
getType
- Specified by:
getTypein classCoordinateInfo
-
getMajorAxis
public double getMajorAxis() -
getMinorAxis
public double getMinorAxis() -
getLongPol
public double getLongPol() -
getTrueScale
public double getTrueScale() -
getFalseNorthing
public double getFalseNorthing() -
getFalseEasting
public double getFalseEasting() -
writeObject2
- Specified by:
writeObject2in classCoordinateInfo- Throws:
IOException
-
readObject2
- Specified by:
readObject2in classCoordinateInfo- Throws:
IOException
-
saveData
public boolean saveData(org.jdom.Element cinfoElem) Description copied from class:CoordinateInfoXML format save- Overrides:
saveDatain classCoordinateInfo- Returns:
-
loadData
public boolean loadData(org.jdom.Element cinfoElem) - Overrides:
loadDatain classCoordinateInfo
-
equals
- Overrides:
equalsin classCoordinateInfo
-
getHRAPCoordinateInfo
-
isHrap
public boolean isHrap() -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classCoordinateInfo- 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- Overrides:
setFieldObjectin 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
-