com.partnersoft.geometry.projection
Class Projection

java.lang.Object
  extended by com.partnersoft.geometry.projection.Projection
All Implemented Interfaces:
Coggable
Direct Known Subclasses:
GeoToolsProjection, NullProjection, Simple, StandardProjection

public abstract class Projection
extends java.lang.Object
implements Coggable

A projection from lat/long to some sort of x, y coordinates.

Copyright 2001-2009 Partner Software, Inc.

Version:
$Id: Projection.java 2046 2009-08-25 05:28:53Z paul $
Author:
Paul Reavis

Constructor Summary
Projection()
           
 
Method Summary
 java.lang.String getName()
           
 void project(DoubleBuffer coords)
          Treats the given DoubleBuffer as an array of x,y pairs, and projects all of them.
 Point project(double longitude, double latitude)
           
abstract  void project(Point point)
          Project from latlong to xy.
 XyPoint project(XyPoint lonLatPoint)
          Transforms the given XyPoint from lonlat to meters.
 XyShape project(XyShape lonLatShape)
          Transforms the given XyShape from lonlat to meters.
 void projectFeet(DoubleBuffer coords)
          Same as project(DoubleBuffer), but produces feet instead of meters.
 Point projectFeet(double longitude, double latitude)
           
 void projectFeet(Point point)
          Same as project, but returns US Survey feet instead of meters.
 XyPoint projectFeet(XyPoint lonLatPoint)
          Transforms the given XyPoint from lonlat to US Survey Feet.
 XyShape projectFeet(XyShape lonLatShape)
          Transforms the given XyShape from lonlat to US Survey Feet.
 void reverse(DoubleBuffer coords)
          Treats the given DoubleBuffer as an array of x,y pairs, and reverse projects all of them.
 Point reverse(double x, double y)
           
abstract  void reverse(Point point)
          Reverse project from xy to latlong.
 XyPoint reverse(XyPoint xyPoint)
          Transforms the given XyPoint from meters to lonlat.
 XyShape reverse(XyShape xyShape)
          Transforms the given XyShape from meters to lonlat.
 void reverseFeet(DoubleBuffer coords)
          Same as reverse(DoubleBuffer), but treats input as feet instead of meters.
 Point reverseFeet(double x, double y)
           
 void reverseFeet(Point point)
          Same as reverse, but with input in US Survey feet instead of meters.
 XyPoint reverseFeet(XyPoint xyPoint)
          Transforms the given XyPoint from US Survey Feet to lonlat.
 XyShape reverseFeet(XyShape xyShape)
          Transforms the given XyShape from US Survey Feet to lonlat.
 void setName(java.lang.String newName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.partnersoft.cog.Coggable
toCog
 

Constructor Detail

Projection

public Projection()
Method Detail

project

public abstract void project(Point point)
Project from latlong to xy. Modifies the input Point. Remember that Point.x is longitude, Point.y is latitude.


reverse

public abstract void reverse(Point point)
Reverse project from xy to latlong. Results are returned with point.x = long, point.y = lat. Modifies input.


reverse

public Point reverse(double x,
                     double y)

project

public Point project(double longitude,
                     double latitude)

reverseFeet

public Point reverseFeet(double x,
                         double y)

projectFeet

public Point projectFeet(double longitude,
                         double latitude)

projectFeet

public void projectFeet(Point point)
Same as project, but returns US Survey feet instead of meters. Modifies input.


reverseFeet

public void reverseFeet(Point point)
Same as reverse, but with input in US Survey feet instead of meters. Modifies input.


project

public void project(DoubleBuffer coords)
Treats the given DoubleBuffer as an array of x,y pairs, and projects all of them. This implementation iterates, using project(Point). Subclasses may have a better/faster scheme.


reverse

public void reverse(DoubleBuffer coords)
Treats the given DoubleBuffer as an array of x,y pairs, and reverse projects all of them. This implementation iterates, using project(Point). Subclasses may have a better/faster scheme.


projectFeet

public void projectFeet(DoubleBuffer coords)
Same as project(DoubleBuffer), but produces feet instead of meters.


reverseFeet

public void reverseFeet(DoubleBuffer coords)
Same as reverse(DoubleBuffer), but treats input as feet instead of meters.


project

public XyShape project(XyShape lonLatShape)
Transforms the given XyShape from lonlat to meters.


projectFeet

public XyShape projectFeet(XyShape lonLatShape)
Transforms the given XyShape from lonlat to US Survey Feet.


reverse

public XyShape reverse(XyShape xyShape)
Transforms the given XyShape from meters to lonlat.


reverseFeet

public XyShape reverseFeet(XyShape xyShape)
Transforms the given XyShape from US Survey Feet to lonlat.


project

public XyPoint project(XyPoint lonLatPoint)
Transforms the given XyPoint from lonlat to meters.


projectFeet

public XyPoint projectFeet(XyPoint lonLatPoint)
Transforms the given XyPoint from lonlat to US Survey Feet.


reverse

public XyPoint reverse(XyPoint xyPoint)
Transforms the given XyPoint from meters to lonlat.


reverseFeet

public XyPoint reverseFeet(XyPoint xyPoint)
Transforms the given XyPoint from US Survey Feet to lonlat.


setName

public void setName(java.lang.String newName)

getName

public java.lang.String getName()