com.partnersoft.geometry.projection
Class CoordinateSystem

java.lang.Object
  extended by com.partnersoft.geometry.projection.CoordinateSystem
All Implemented Interfaces:
Coggable, Immutable

public class CoordinateSystem
extends java.lang.Object
implements Coggable, Immutable

A coordinate system consists of a projection and measurement units.

Copyright 2005-2009 Partner Software, Inc.

Version:
$Id: CoordinateSystem.java 2474 2010-03-13 14:28:43Z paul $
Author:
Paul Reavis

Constructor Summary
CoordinateSystem()
           
CoordinateSystem(Cog state)
           
CoordinateSystem(java.lang.String projectionName, java.lang.String unitsName)
           
 
Method Summary
 XyBounds getBounds()
           
 LinearUnit getLinearUnit()
           
 double getMaximumX()
           
 double getMaximumY()
           
 double getMinimumX()
           
 double getMinimumY()
           
 Projection getProjection()
           
 java.lang.String getProjectionName()
           
 java.lang.String getUnitsName()
           
 boolean hasBounds()
           
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 java.lang.String toString()
           
 CoordinateSystem withBounds(double minimumX, double minimumY, double maximumX, double maximumY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordinateSystem

public CoordinateSystem()

CoordinateSystem

public CoordinateSystem(java.lang.String projectionName,
                        java.lang.String unitsName)

CoordinateSystem

public CoordinateSystem(Cog state)
Method Detail

toCog

public Cog toCog()
Description copied from interface: Coggable
Returns the complete internal state of this object in the form of a Cog.

Specified by:
toCog in interface Coggable
Returns:
Cog representing the internal state of this object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getProjectionName

public java.lang.String getProjectionName()

getProjection

public Projection getProjection()

getUnitsName

public java.lang.String getUnitsName()

getLinearUnit

public LinearUnit getLinearUnit()

getMinimumX

public double getMinimumX()

getMinimumY

public double getMinimumY()

getMaximumX

public double getMaximumX()

getMaximumY

public double getMaximumY()

hasBounds

public boolean hasBounds()

getBounds

public XyBounds getBounds()

withBounds

public CoordinateSystem withBounds(double minimumX,
                                   double minimumY,
                                   double maximumX,
                                   double maximumY)