com.partnersoft.v3x.geometry.projections
Class ProjectionTransform

java.lang.Object
  extended by com.partnersoft.v3x.geometry.projections.ProjectionTransform
All Implemented Interfaces:
java.io.Serializable, ObjectMangler, ObjectTransform

public class ProjectionTransform
extends java.lang.Object
implements java.io.Serializable, ObjectMangler

Mangler to project from latlong to xy or vice versa.

See Also:
Serialized Form

Constructor Summary
ProjectionTransform()
          Create a new ProjectionTransform.
 
Method Summary
 java.lang.String getLatitude()
          Field containing latitude.
 java.lang.String getLongitude()
          Field containing longitude.
 java.lang.String getProjection()
          Name of projection/coordinate system to use.
 double getScaleFactor()
          Scale factor applied to xy - use to convert from meters to other units.
 boolean getToLatLong()
          If true, does a reverse projection from xy to latlong.
 java.lang.String getX()
          Field containing x coordinate (easting).
 java.lang.String getY()
          Field containing y coordinate (northing).
 void setLatitude(java.lang.String newLatitude)
          Field containing latitude.
 void setLongitude(java.lang.String newLongitude)
          Field containing longitude.
 void setProjection(java.lang.String newProjection)
          Name of projection/coordinate system to use.
 void setScaleFactor(double newScaleFactor)
          Scale factor applied to xy - use to convert from meters to other units.
 void setToLatLong(boolean newToLatLong)
          If true, does a reverse projection from xy to latlong.
 void setX(java.lang.String newX)
          Field containing x coordinate (easting).
 void setY(java.lang.String newY)
          Field containing y coordinate (northing).
 java.lang.Object transform(java.lang.Object victim)
          Our one method; this transforms one object into another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectionTransform

public ProjectionTransform()
Create a new ProjectionTransform.

Method Detail

transform

public java.lang.Object transform(java.lang.Object victim)
Description copied from interface: ObjectTransform
Our one method; this transforms one object into another. Transformation must be nondestructive, but may produce a derived product that is still affected by changes to the original, so beware.

Specified by:
transform in interface ObjectTransform

getLatitude

public java.lang.String getLatitude()
Field containing latitude.


setLatitude

public void setLatitude(java.lang.String newLatitude)
Field containing latitude.


getLongitude

public java.lang.String getLongitude()
Field containing longitude.


setLongitude

public void setLongitude(java.lang.String newLongitude)
Field containing longitude.


getProjection

public java.lang.String getProjection()
Name of projection/coordinate system to use.


setProjection

public void setProjection(java.lang.String newProjection)
Name of projection/coordinate system to use.


getScaleFactor

public double getScaleFactor()
Scale factor applied to xy - use to convert from meters to other units.


setScaleFactor

public void setScaleFactor(double newScaleFactor)
Scale factor applied to xy - use to convert from meters to other units.


getToLatLong

public boolean getToLatLong()
If true, does a reverse projection from xy to latlong.


setToLatLong

public void setToLatLong(boolean newToLatLong)
If true, does a reverse projection from xy to latlong.


getX

public java.lang.String getX()
Field containing x coordinate (easting).


setX

public void setX(java.lang.String newX)
Field containing x coordinate (easting).


getY

public java.lang.String getY()
Field containing y coordinate (northing).


setY

public void setY(java.lang.String newY)
Field containing y coordinate (northing).