com.partnersoft.geometry.projection
Class ReverseProjectionTransform

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

public class ReverseProjectionTransform
extends AbstractXyTransform

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

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

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
ReverseProjectionTransform(Projection projection)
          Create a new ProjectionTransform with the given projection, assuming meters as output.
ReverseProjectionTransform(Projection projection, LinearUnit unit)
          Create a new ProjectionTransform and the given unit of measure.
 
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

ReverseProjectionTransform

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


ReverseProjectionTransform

public ReverseProjectionTransform(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()