org.geotools.geometry.jts.spatialschema.geometry.geometry
Class JTSGeometryFactory

java.lang.Object
  extended by org.geotools.geometry.jts.spatialschema.geometry.geometry.JTSGeometryFactory
All Implemented Interfaces:
org.opengis.geometry.coordinate.GeometryFactory
Direct Known Subclasses:
GeometryFactoryImpl

public class JTSGeometryFactory
extends java.lang.Object
implements org.opengis.geometry.coordinate.GeometryFactory

The GeometryFactoryImpl class/interface...

Version:
$Revision $
Author:
SYS Technologies, crossley

Constructor Summary
JTSGeometryFactory()
          No argument constructor for FactorySPI
JTSGeometryFactory(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
          Direct constructor for test cases
JTSGeometryFactory(Hints hints)
          Hints constructor for FactoryRegistry
 
Method Summary
 org.opengis.geometry.coordinate.Arc createArc(org.opengis.geometry.coordinate.Position startPoint, org.opengis.geometry.coordinate.Position endPoint, double bulge, double[] normal)
           
 org.opengis.geometry.coordinate.Arc createArc(org.opengis.geometry.coordinate.Position startPoint, org.opengis.geometry.coordinate.Position midPoint, org.opengis.geometry.coordinate.Position endPoint)
           
 org.opengis.geometry.coordinate.ArcByBulge createArcByBulge(org.opengis.geometry.coordinate.Position startPoint, org.opengis.geometry.coordinate.Position endPoint, double bulge, double[] normal)
           
 org.opengis.geometry.coordinate.ArcString createArcString(java.util.List points)
           
 org.opengis.geometry.coordinate.ArcStringByBulge createArcStringByBulge(java.util.List points, double[] bulges, java.util.List normals)
           
 org.opengis.geometry.coordinate.BSplineCurve createBSplineCurve(int arg0, org.opengis.geometry.coordinate.PointArray arg1, java.util.List arg2, org.opengis.geometry.coordinate.KnotType arg3)
           
 org.opengis.geometry.coordinate.BSplineSurface createBSplineSurface(java.util.List arg0, int[] arg1, java.util.List[] arg2, org.opengis.geometry.coordinate.KnotType arg3)
           
 org.opengis.geometry.DirectPosition createDirectPosition()
           
 org.opengis.geometry.DirectPosition createDirectPosition(double[] coordinates)
           
 org.opengis.geometry.Envelope createEnvelope(org.opengis.geometry.DirectPosition lowerCorner, org.opengis.geometry.DirectPosition upperCorner)
           
 org.opengis.geometry.coordinate.Geodesic createGeodesic(org.opengis.geometry.coordinate.Position startPoint, org.opengis.geometry.coordinate.Position endPoint)
           
 org.opengis.geometry.coordinate.GeodesicString createGeodesicString(java.util.List points)
           
 org.opengis.geometry.coordinate.LineSegment createLineSegment(org.opengis.geometry.coordinate.Position startPoint, org.opengis.geometry.coordinate.Position endPoint)
           
 org.opengis.geometry.coordinate.LineString createLineString(java.util.List points)
           
 org.opengis.geometry.aggregate.MultiPrimitive createMultiPrimitive()
           
 org.opengis.geometry.coordinate.Polygon createPolygon(org.opengis.geometry.primitive.SurfaceBoundary boundary)
           
 org.opengis.geometry.coordinate.Polygon createPolygon(org.opengis.geometry.primitive.SurfaceBoundary boundary, org.opengis.geometry.primitive.Surface spanningSurface)
           
 org.opengis.geometry.coordinate.PolyhedralSurface createPolyhedralSurface(java.util.List<org.opengis.geometry.coordinate.Polygon> polygons)
           
 org.opengis.geometry.coordinate.Position createPosition(org.opengis.geometry.DirectPosition point)
           
 org.opengis.geometry.primitive.SurfaceBoundary createSurfaceBoundary(org.opengis.geometry.primitive.Ring exterior, java.util.List interiors)
           
 org.opengis.geometry.coordinate.Tin createTin(java.util.Set arg0, java.util.Set arg1, java.util.Set arg2, double arg3)
           
 org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
           
 java.util.Map getImplementationHints()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTSGeometryFactory

public JTSGeometryFactory()
No argument constructor for FactorySPI


JTSGeometryFactory

public JTSGeometryFactory(Hints hints)
Hints constructor for FactoryRegistry


JTSGeometryFactory

public JTSGeometryFactory(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Direct constructor for test cases

Method Detail

getImplementationHints

public java.util.Map getImplementationHints()

getCoordinateReferenceSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
Specified by:
getCoordinateReferenceSystem in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#getCoordinateReferenceSystem()

createPosition

public org.opengis.geometry.coordinate.Position createPosition(org.opengis.geometry.DirectPosition point)

createDirectPosition

public org.opengis.geometry.DirectPosition createDirectPosition()
Specified by:
createDirectPosition in interface org.opengis.geometry.coordinate.GeometryFactory

createDirectPosition

public org.opengis.geometry.DirectPosition createDirectPosition(double[] coordinates)
Specified by:
createDirectPosition in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createDirectPosition(double[])

createEnvelope

public org.opengis.geometry.Envelope createEnvelope(org.opengis.geometry.DirectPosition lowerCorner,
                                                    org.opengis.geometry.DirectPosition upperCorner)
Specified by:
createEnvelope in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createEnvelope(org.opengis.geometry.coordinate.DirectPosition, org.opengis.geometry.coordinate.DirectPosition)

createLineSegment

public org.opengis.geometry.coordinate.LineSegment createLineSegment(org.opengis.geometry.coordinate.Position startPoint,
                                                                     org.opengis.geometry.coordinate.Position endPoint)
Specified by:
createLineSegment in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createLineSegment(org.opengis.geometry.coordinate.Position, org.opengis.geometry.coordinate.Position)

createLineString

public org.opengis.geometry.coordinate.LineString createLineString(java.util.List points)
Specified by:
createLineString in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createLineString(java.util.List)

createGeodesic

public org.opengis.geometry.coordinate.Geodesic createGeodesic(org.opengis.geometry.coordinate.Position startPoint,
                                                               org.opengis.geometry.coordinate.Position endPoint)
Specified by:
createGeodesic in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createGeodesic(org.opengis.geometry.coordinate.Position, org.opengis.geometry.coordinate.Position)

createGeodesicString

public org.opengis.geometry.coordinate.GeodesicString createGeodesicString(java.util.List points)
Specified by:
createGeodesicString in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createGeodesicString(java.util.List)

createArc

public org.opengis.geometry.coordinate.Arc createArc(org.opengis.geometry.coordinate.Position startPoint,
                                                     org.opengis.geometry.coordinate.Position midPoint,
                                                     org.opengis.geometry.coordinate.Position endPoint)
Specified by:
createArc in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createArc(org.opengis.geometry.coordinate.Position, org.opengis.geometry.coordinate.Position, org.opengis.geometry.coordinate.Position)

createArc

public org.opengis.geometry.coordinate.Arc createArc(org.opengis.geometry.coordinate.Position startPoint,
                                                     org.opengis.geometry.coordinate.Position endPoint,
                                                     double bulge,
                                                     double[] normal)
Specified by:
createArc in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createArc(org.opengis.geometry.coordinate.Position, org.opengis.geometry.coordinate.Position, double, double[])

createArcString

public org.opengis.geometry.coordinate.ArcString createArcString(java.util.List points)
Specified by:
createArcString in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createArcString(java.util.List)

createArcByBulge

public org.opengis.geometry.coordinate.ArcByBulge createArcByBulge(org.opengis.geometry.coordinate.Position startPoint,
                                                                   org.opengis.geometry.coordinate.Position endPoint,
                                                                   double bulge,
                                                                   double[] normal)
Specified by:
createArcByBulge in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createArcByBulge(org.opengis.geometry.coordinate.Position, org.opengis.geometry.coordinate.Position, double, double[])

createArcStringByBulge

public org.opengis.geometry.coordinate.ArcStringByBulge createArcStringByBulge(java.util.List points,
                                                                               double[] bulges,
                                                                               java.util.List normals)
Specified by:
createArcStringByBulge in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createArcStringByBulge(java.util.List, double[], java.util.List)

createBSplineCurve

public org.opengis.geometry.coordinate.BSplineCurve createBSplineCurve(int arg0,
                                                                       org.opengis.geometry.coordinate.PointArray arg1,
                                                                       java.util.List arg2,
                                                                       org.opengis.geometry.coordinate.KnotType arg3)
                                                                throws org.opengis.geometry.MismatchedReferenceSystemException,
                                                                       org.opengis.geometry.MismatchedDimensionException
Specified by:
createBSplineCurve in interface org.opengis.geometry.coordinate.GeometryFactory
Throws:
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
See Also:
org.opengis.geometry.coordinate.Factory#createBSplineCurve(int, org.opengis.geometry.coordinate.PointArray, java.util.List, org.opengis.geometry.coordinate.KnotType)

createPolygon

public org.opengis.geometry.coordinate.Polygon createPolygon(org.opengis.geometry.primitive.SurfaceBoundary boundary)
                                                      throws org.opengis.geometry.MismatchedReferenceSystemException,
                                                             org.opengis.geometry.MismatchedDimensionException
Specified by:
createPolygon in interface org.opengis.geometry.coordinate.GeometryFactory
Throws:
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
See Also:
org.opengis.geometry.coordinate.Factory#createPolygon(org.opengis.geometry.primitive.SurfaceBoundary)

createPolygon

public org.opengis.geometry.coordinate.Polygon createPolygon(org.opengis.geometry.primitive.SurfaceBoundary boundary,
                                                             org.opengis.geometry.primitive.Surface spanningSurface)
                                                      throws org.opengis.geometry.MismatchedReferenceSystemException,
                                                             org.opengis.geometry.MismatchedDimensionException
Specified by:
createPolygon in interface org.opengis.geometry.coordinate.GeometryFactory
Throws:
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
See Also:
org.opengis.geometry.coordinate.Factory#createPolygon(org.opengis.geometry.primitive.SurfaceBoundary, org.opengis.geometry.primitive.Surface)

createTin

public org.opengis.geometry.coordinate.Tin createTin(java.util.Set arg0,
                                                     java.util.Set arg1,
                                                     java.util.Set arg2,
                                                     double arg3)
                                              throws org.opengis.geometry.MismatchedReferenceSystemException,
                                                     org.opengis.geometry.MismatchedDimensionException
Specified by:
createTin in interface org.opengis.geometry.coordinate.GeometryFactory
Throws:
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
See Also:
org.opengis.geometry.coordinate.Factory#createTin(java.util.Set, java.util.Set, java.util.Set, double)

createSurfaceBoundary

public org.opengis.geometry.primitive.SurfaceBoundary createSurfaceBoundary(org.opengis.geometry.primitive.Ring exterior,
                                                                            java.util.List interiors)
                                                                     throws org.opengis.geometry.MismatchedReferenceSystemException
Parameters:
exterior -
interiors -
Returns:
Throws:
org.opengis.geometry.MismatchedReferenceSystemException
See Also:
org.opengis.geometry.coordinate.Factory#createSurfaceBoundary(org.opengis.geometry.primitive.Ring, java.util.List)

createMultiPrimitive

public org.opengis.geometry.aggregate.MultiPrimitive createMultiPrimitive()
Specified by:
createMultiPrimitive in interface org.opengis.geometry.coordinate.GeometryFactory
See Also:
org.opengis.geometry.coordinate.Factory#createMultiPrimitive()

createPolyhedralSurface

public org.opengis.geometry.coordinate.PolyhedralSurface createPolyhedralSurface(java.util.List<org.opengis.geometry.coordinate.Polygon> polygons)
                                                                          throws org.opengis.geometry.MismatchedReferenceSystemException,
                                                                                 org.opengis.geometry.MismatchedDimensionException
Specified by:
createPolyhedralSurface in interface org.opengis.geometry.coordinate.GeometryFactory
Throws:
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
See Also:
org.opengis.geometry.coordinate.Factory#createPolyhedralSurface(java.util.List)

createBSplineSurface

public org.opengis.geometry.coordinate.BSplineSurface createBSplineSurface(java.util.List arg0,
                                                                           int[] arg1,
                                                                           java.util.List[] arg2,
                                                                           org.opengis.geometry.coordinate.KnotType arg3)
                                                                    throws org.opengis.geometry.MismatchedReferenceSystemException,
                                                                           org.opengis.geometry.MismatchedDimensionException
Specified by:
createBSplineSurface in interface org.opengis.geometry.coordinate.GeometryFactory
Throws:
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException


Copyright © 1996-2010 Geotools. All Rights Reserved.