com.partnersoft.geometry.projection
Class ProjectionTransform

java.lang.Object
  extended by com.partnersoft.geometry.xy.AbstractXyTransform
      extended by com.partnersoft.geometry.projection.ProjectionTransform
All Implemented Interfaces:
Immutable, XyTransform

public class ProjectionTransform
extends AbstractXyTransform

XyTransform for reverse projecting XyPoints and XyShapes from xy to lonlat coordinates.

Copyright 2002-2008 Partner Software, Inc. All rights reserved.

Version:
$Id: ProjectionTransform.java 2013 2009-08-10 03:29:31Z paul $
Author:
Paul Reavis

Constructor Summary
ProjectionTransform(Projection projection)
          Create a new ProjectionTransform with the given projection, assuming meters as output.
ProjectionTransform(Projection projection, LinearUnit unit)
          Create a new ProjectionTransform and the given unit of measure.
ProjectionTransform(java.lang.String projectionName, java.lang.String unitName)
           
 
Method Summary
 Projection getProjection()
           
 LinearUnit getUnit()
           
 boolean isIdentity()
          True if this transform will return the input unchanged, and can therefore be skipped or discarded.
protected  XyPoint transformImp(XyPoint point)
          Subclasses must implement this to do the actual work of transformation.
 
Methods inherited from class com.partnersoft.geometry.xy.AbstractXyTransform
transform, transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectionTransform

public ProjectionTransform(java.lang.String projectionName,
                           java.lang.String unitName)

ProjectionTransform

public ProjectionTransform(Projection projection,
                           LinearUnit unit)
Create a new ProjectionTransform and the given unit of measure.


ProjectionTransform

public ProjectionTransform(Projection projection)
Create a new ProjectionTransform with the given projection, assuming meters as output.

Method Detail

transformImp

protected XyPoint transformImp(XyPoint point)
Description copied from class: AbstractXyTransform
Subclasses must implement this to do the actual work of transformation. It behaves the same way as AbstractXyTransform.transform(XyPoint), except that you do NOT have to check for identity - that will be done automatically.

Specified by:
transformImp in class AbstractXyTransform

isIdentity

public boolean isIdentity()
Description copied from interface: XyTransform
True if this transform will return the input unchanged, and can therefore be skipped or discarded.


getProjection

public Projection getProjection()

getUnit

public LinearUnit getUnit()