org.geotools.geometry.jts.spatialschema.geometry.primitive
Class PrimitiveFactoryImpl

java.lang.Object
  extended by org.geotools.geometry.jts.spatialschema.geometry.primitive.PrimitiveFactoryImpl
All Implemented Interfaces:
org.opengis.geometry.primitive.PrimitiveFactory

public class PrimitiveFactoryImpl
extends java.lang.Object
implements org.opengis.geometry.primitive.PrimitiveFactory

Factory that knows how to create instances of the 19107 primitives as implemented in LiteGO1.


Constructor Summary
PrimitiveFactoryImpl()
          DOCUMENT ME
PrimitiveFactoryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
          DOCUMENT ME
 
Method Summary
 org.opengis.geometry.primitive.Curve createCurve(java.util.List<org.opengis.geometry.primitive.CurveSegment> segments)
          Takes a list of with the appropriate end-to-start relationships and creates a .
 org.opengis.geometry.DirectPosition createDirectPosition(double[] coordinates)
          Create a direct position at the specified location specified by coordinates.
 org.opengis.geometry.primitive.Point createPoint(double[] coordinates)
          Creates a point at the specified location specified by coordinates.
 org.opengis.geometry.primitive.Point createPoint(org.opengis.geometry.coordinate.Position position)
          Creates a point at the specified position.
 org.opengis.geometry.coordinate.PolyhedralSurface createPolyhedralSurface(java.util.List<org.opengis.geometry.coordinate.Polygon> patches)
           
 org.opengis.geometry.primitive.Primitive createPrimitive(org.opengis.geometry.Envelope envelope)
          Not implemented.
 org.opengis.geometry.primitive.Ring createRing(java.util.List curves)
           
 org.opengis.geometry.primitive.Solid createSolid(org.opengis.geometry.primitive.SolidBoundary boundary)
          Constructs a by indicating its boundary as a collection of organized into a .
 org.opengis.geometry.primitive.Surface createSurface(java.util.List<org.opengis.geometry.primitive.SurfacePatch> patches)
          Creates a new Surface.
 org.opengis.geometry.primitive.Surface createSurface(org.opengis.geometry.primitive.SurfaceBoundary boundary)
           
 org.opengis.geometry.primitive.SurfaceBoundary createSurfaceBoundary(org.opengis.geometry.primitive.Ring exterior, java.util.List interiors)
           
 org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
          Returns the coordinate reference system in use for all geometric objects to be created through this interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveFactoryImpl

public PrimitiveFactoryImpl()
DOCUMENT ME


PrimitiveFactoryImpl

public PrimitiveFactoryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
DOCUMENT ME

Parameters:
crs -
Method Detail

getCoordinateReferenceSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
Returns the coordinate reference system in use for all geometric objects to be created through this interface.

Specified by:
getCoordinateReferenceSystem in interface org.opengis.geometry.primitive.PrimitiveFactory

createPrimitive

public org.opengis.geometry.primitive.Primitive createPrimitive(org.opengis.geometry.Envelope envelope)
Not implemented. Returns null.

Specified by:
createPrimitive in interface org.opengis.geometry.primitive.PrimitiveFactory

createDirectPosition

public org.opengis.geometry.DirectPosition createDirectPosition(double[] coordinates)
Create a direct position at the specified location specified by coordinates. If the parameter is null, the position is left uninitialized.

Parameters:
coordinates -
Returns:

createPoint

public org.opengis.geometry.primitive.Point createPoint(double[] coordinates)
Creates a point at the specified location specified by coordinates.

Specified by:
createPoint in interface org.opengis.geometry.primitive.PrimitiveFactory

createPoint

public org.opengis.geometry.primitive.Point createPoint(org.opengis.geometry.coordinate.Position position)
Creates a point at the specified position.

Specified by:
createPoint in interface org.opengis.geometry.primitive.PrimitiveFactory

createCurve

public org.opengis.geometry.primitive.Curve createCurve(java.util.List<org.opengis.geometry.primitive.CurveSegment> segments)
Takes a list of with the appropriate end-to-start relationships and creates a . This may throw an IllegalArgumentException if the List contains objects that are not instances of the CurveSegment interface.

Specified by:
createCurve in interface org.opengis.geometry.primitive.PrimitiveFactory

createSurface

public org.opengis.geometry.primitive.Surface createSurface(java.util.List<org.opengis.geometry.primitive.SurfacePatch> patches)
Creates a new Surface. This method can't possibly be used in the current implementation since there are no implementations of the SurfacePatch interface. Returns null.

Specified by:
createSurface in interface org.opengis.geometry.primitive.PrimitiveFactory

createSurface

public org.opengis.geometry.primitive.Surface createSurface(org.opengis.geometry.primitive.SurfaceBoundary boundary)
Specified by:
createSurface in interface org.opengis.geometry.primitive.PrimitiveFactory
See Also:
PrimitiveFactory.createSurface(org.opengis.geometry.primitive.SurfaceBoundary)

createSurfaceBoundary

public org.opengis.geometry.primitive.SurfaceBoundary createSurfaceBoundary(org.opengis.geometry.primitive.Ring exterior,
                                                                            java.util.List interiors)
                                                                     throws org.opengis.geometry.MismatchedReferenceSystemException,
                                                                            org.opengis.geometry.MismatchedDimensionException
Specified by:
createSurfaceBoundary in interface org.opengis.geometry.primitive.PrimitiveFactory
Throws:
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
See Also:
PrimitiveFactory.createSurfaceBoundary(org.opengis.geometry.primitive.Ring, java.util.List)

createSolid

public org.opengis.geometry.primitive.Solid createSolid(org.opengis.geometry.primitive.SolidBoundary boundary)
Constructs a by indicating its boundary as a collection of organized into a . Since this specification is limited to 3-dimensional coordinate reference systems, any solid is definable by its boundary.

Specified by:
createSolid in interface org.opengis.geometry.primitive.PrimitiveFactory
Parameters:
boundary -
Returns:
a Solid based on the given boundary

createRing

public org.opengis.geometry.primitive.Ring createRing(java.util.List curves)
Specified by:
createRing in interface org.opengis.geometry.primitive.PrimitiveFactory

createPolyhedralSurface

public org.opengis.geometry.coordinate.PolyhedralSurface createPolyhedralSurface(java.util.List<org.opengis.geometry.coordinate.Polygon> patches)
                                                                          throws org.opengis.geometry.MismatchedReferenceSystemException,
                                                                                 org.opengis.geometry.MismatchedDimensionException
Throws:
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
See Also:
org.opengis.geometry.coordinate.Factory#createPolyhedralSurface(java.util.List)


Copyright © 1996-2010 Geotools. All Rights Reserved.