org.deegree_impl.model.pt
Class Adapters

java.lang.Object
  extended byorg.deegree_impl.model.pt.Adapters

public class Adapters
extends java.lang.Object

Provide methods for interoperability with org.opengis.pt package. All methods accept null argument.

Version:
1.0
Author:
Martin Desruisseaux

Field Summary
private static Adapters DEFAULT
          Default adapters.
 
Constructor Summary
protected Adapters()
          Default constructor.
 
Method Summary
 PT_CoordinatePoint export(CoordinatePoint point)
          Returns an OpenGIS structure for a coordinate point.
 PT_Envelope export(Envelope envelope)
          Returns an OpenGIS structure for an envelope.
 PT_Matrix export(Matrix matrix)
          Returns an OpenGIS structure for a matrix.
static Adapters getDefault()
          Returns the default adapters.
 CoordinatePoint wrap(PT_CoordinatePoint point)
          Returns a coordinate point from an OpenGIS's structure.
 Envelope wrap(PT_Envelope envelope)
          Returns an envelope from an OpenGIS's structure.
 Matrix wrap(PT_Matrix matrix)
          Returns a matrix from an OpenGIS's structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

private static Adapters DEFAULT
Default adapters. Will be constructed only when first requested.

Constructor Detail

Adapters

protected Adapters()
Default constructor.

Method Detail

getDefault

public static Adapters getDefault()
Returns the default adapters.


export

public PT_CoordinatePoint export(CoordinatePoint point)
Returns an OpenGIS structure for a coordinate point. Changes to the returned structure will not affect the original point.


export

public PT_Envelope export(Envelope envelope)
Returns an OpenGIS structure for an envelope. Changes to the returned structure will not affect the original envelope.


export

public PT_Matrix export(Matrix matrix)
Returns an OpenGIS structure for a matrix. Changes to the returned structure will not affect the original matrix.


wrap

public CoordinatePoint wrap(PT_CoordinatePoint point)
Returns a coordinate point from an OpenGIS's structure. Changes to the returned point will not affect the original structure.


wrap

public Envelope wrap(PT_Envelope envelope)
Returns an envelope from an OpenGIS's structure. Changes to the returned envelope will not affect the original structure.


wrap

public Matrix wrap(PT_Matrix matrix)
Returns a matrix from an OpenGIS's structure. Changes to the returned matrix will not affect the original structure.