|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.geometry.iso.coordinate.GeometryFactoryImpl
public class GeometryFactoryImpl
convenience methods to create objects of the coordinate geometry package using only java native types as parameters
Constructor Summary | |
---|---|
GeometryFactoryImpl()
FactorySPI entry point |
|
GeometryFactoryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
org.opengis.geometry.PositionFactory pf)
|
|
GeometryFactoryImpl(Hints hints)
Just the defaults, use GeometryFactoryFinder for the rest |
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<org.opengis.geometry.coordinate.Position> points)
|
org.opengis.geometry.coordinate.ArcStringByBulge |
createArcStringByBulge(java.util.List<org.opengis.geometry.coordinate.Position> points,
double[] bulges,
java.util.List<double[]> normals)
|
org.opengis.geometry.coordinate.BSplineCurve |
createBSplineCurve(int degree,
org.opengis.geometry.coordinate.PointArray points,
java.util.List<org.opengis.geometry.coordinate.Knot> knots,
org.opengis.geometry.coordinate.KnotType knotSpec)
|
org.opengis.geometry.coordinate.BSplineSurface |
createBSplineSurface(java.util.List<org.opengis.geometry.coordinate.PointArray> points,
int[] degree,
java.util.List<org.opengis.geometry.coordinate.Knot>[] knots,
org.opengis.geometry.coordinate.KnotType knotSpec)
|
org.opengis.geometry.DirectPosition |
createDirectPosition()
|
org.opengis.geometry.DirectPosition |
createDirectPosition(org.opengis.geometry.DirectPosition dp)
|
org.opengis.geometry.DirectPosition |
createDirectPosition(double[] coord)
|
java.util.Collection<org.opengis.geometry.DirectPosition> |
createDirectPositions(java.util.Collection<double[]> coordList,
java.util.Collection<org.opengis.geometry.DirectPosition> directPositions)
|
org.opengis.geometry.Envelope |
createEnvelope(org.opengis.geometry.DirectPosition lowerCorner,
org.opengis.geometry.DirectPosition upperCorner)
|
EnvelopeImpl |
createEnvelope(double[] c)
Creates an Envelope with the given coordinates. |
EnvelopeImpl |
createEnvelope(org.opengis.geometry.Envelope env)
Creates a new Envelope equal to the given envelope |
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<org.opengis.geometry.coordinate.Position> points)
|
LineSegmentImpl |
createLineSegment(double[] fromPosition,
double[] toPosition,
double startPar)
Creates a line segment between fromPosition and toPosition. |
org.opengis.geometry.coordinate.LineSegment |
createLineSegment(org.opengis.geometry.coordinate.Position startPoint,
org.opengis.geometry.coordinate.Position endPoint)
|
LineSegmentImpl |
createLineSegment(org.opengis.geometry.coordinate.Position p0,
org.opengis.geometry.coordinate.Position p1,
double startPar)
Creates a LineSegment with a given value as startParam |
LineStringImpl |
createLineString(java.util.List<org.opengis.geometry.coordinate.Position> positions)
|
LineStringImpl |
createLineString(java.util.List<org.opengis.geometry.coordinate.Position> positions,
double startPar)
Creates LineString from Array of DirectPosition2D |
LineStringImpl |
createLineString(PointArrayImpl pointArray,
double startPar)
|
java.util.Collection<LineStringImpl> |
createLineStrings(java.util.Collection<java.util.List<double[]>> coordLists,
java.util.List<LineStringImpl> lineStrings)
|
org.opengis.geometry.aggregate.MultiPrimitive |
createMultiPrimitive()
|
PointArrayImpl |
createPointArray(java.util.List<org.opengis.geometry.coordinate.Position> positions)
Creates a new PointArray |
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 spanSurface)
|
org.opengis.geometry.coordinate.PolyhedralSurface |
createPolyhedralSurface(java.util.List<org.opengis.geometry.coordinate.Polygon> tiles)
|
org.opengis.geometry.coordinate.Position |
createPosition(org.opengis.geometry.DirectPosition dp)
|
PositionImpl |
createPosition(double[] coord)
Creates a Position with the given ordinates coord. |
java.util.List<org.opengis.geometry.coordinate.Position> |
createPositions(java.util.Collection<double[]> coordList,
java.util.List<org.opengis.geometry.coordinate.Position> positions)
|
org.opengis.geometry.coordinate.Tin |
createTin(java.util.Set<org.opengis.geometry.coordinate.Position> post,
java.util.Set<org.opengis.geometry.coordinate.LineString> stopLines,
java.util.Set<org.opengis.geometry.coordinate.LineString> breakLines,
double maxLength)
|
TriangleImpl |
createTriangle(org.opengis.geometry.coordinate.TriangulatedSurface ts,
org.opengis.geometry.DirectPosition p1,
org.opengis.geometry.DirectPosition p2,
org.opengis.geometry.DirectPosition p3)
Creates a Triangle from three DirectPositions Builds the Surface Boundary for the Triangle |
java.util.ArrayList<org.opengis.geometry.coordinate.Triangle> |
createTriangles(java.util.ArrayList<double[][]> triangles)
|
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem()
|
int |
getDimension()
Returns the Coordinate Dimension of the used Coordinate System (Sanjay) |
java.util.Map |
getImplementationHints()
Report back to FactoryRegistry about our configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryFactoryImpl()
public GeometryFactoryImpl(Hints hints)
public GeometryFactoryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs, org.opengis.geometry.PositionFactory pf)
crs
- Method Detail |
---|
public java.util.Map getImplementationHints()
FactoryRegistry will check to make sure that there are no duplicates created (so there will be only a "single" PositionFactory created with this configuration).
getImplementationHints
in interface Factory
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
getCoordinateReferenceSystem
in interface org.opengis.geometry.coordinate.GeometryFactory
public int getDimension()
public org.opengis.geometry.DirectPosition createDirectPosition()
createDirectPosition
in interface org.opengis.geometry.coordinate.GeometryFactory
public org.opengis.geometry.DirectPosition createDirectPosition(double[] coord)
createDirectPosition
in interface org.opengis.geometry.coordinate.GeometryFactory
public org.opengis.geometry.Envelope createEnvelope(org.opengis.geometry.DirectPosition lowerCorner, org.opengis.geometry.DirectPosition upperCorner) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createEnvelope
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.LineSegment createLineSegment(org.opengis.geometry.coordinate.Position startPoint, org.opengis.geometry.coordinate.Position endPoint) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createLineSegment
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.Polygon createPolygon(org.opengis.geometry.primitive.SurfaceBoundary boundary) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createPolygon
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.Polygon createPolygon(org.opengis.geometry.primitive.SurfaceBoundary boundary, org.opengis.geometry.primitive.Surface spanSurface) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createPolygon
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.aggregate.MultiPrimitive createMultiPrimitive()
createMultiPrimitive
in interface org.opengis.geometry.coordinate.GeometryFactory
public org.opengis.geometry.DirectPosition createDirectPosition(org.opengis.geometry.DirectPosition dp)
dp
-
public java.util.Collection<org.opengis.geometry.DirectPosition> createDirectPositions(java.util.Collection<double[]> coordList, java.util.Collection<org.opengis.geometry.DirectPosition> directPositions)
coordList
- directPositions
-
public PositionImpl createPosition(double[] coord)
coord
- is the array of ordinates of the position
public org.opengis.geometry.coordinate.Position createPosition(org.opengis.geometry.DirectPosition dp)
public PointArrayImpl createPointArray(java.util.List<org.opengis.geometry.coordinate.Position> positions)
positions
-
public EnvelopeImpl createEnvelope(double[] c)
Coordinate
- c of a point p. The created envelope will have this coordinate as lower and upper corner
public EnvelopeImpl createEnvelope(org.opengis.geometry.Envelope env)
env
-
public java.util.List<org.opengis.geometry.coordinate.Position> createPositions(java.util.Collection<double[]> coordList, java.util.List<org.opengis.geometry.coordinate.Position> positions)
coordList
- positions
-
public LineSegmentImpl createLineSegment(double[] fromPosition, double[] toPosition, double startPar)
fromPosition
- toPosition
- startPar
-
org.opengis.geometry.MismatchedDimensionException
java.lang.IllegalArgumentException
public LineSegmentImpl createLineSegment(org.opengis.geometry.coordinate.Position p0, org.opengis.geometry.coordinate.Position p1, double startPar)
p0
- p1
- startPar
-
public LineStringImpl createLineString(PointArrayImpl pointArray, double startPar)
pointArray
- startPar
-
public LineStringImpl createLineString(java.util.List<org.opengis.geometry.coordinate.Position> positions, double startPar)
positions
- startPar
-
public java.util.Collection<LineStringImpl> createLineStrings(java.util.Collection<java.util.List<double[]>> coordLists, java.util.List<LineStringImpl> lineStrings)
coordLists
- lineStrings
-
public LineStringImpl createLineString(java.util.List<org.opengis.geometry.coordinate.Position> positions) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createLineString
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public TriangleImpl createTriangle(org.opengis.geometry.coordinate.TriangulatedSurface ts, org.opengis.geometry.DirectPosition p1, org.opengis.geometry.DirectPosition p2, org.opengis.geometry.DirectPosition p3)
ts
- p1
- p2
- p3
-
public java.util.ArrayList<org.opengis.geometry.coordinate.Triangle> createTriangles(java.util.ArrayList<double[][]> triangles)
triangles
-
public org.opengis.geometry.coordinate.ArcString createArcString(java.util.List<org.opengis.geometry.coordinate.Position> points) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createArcString
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.ArcStringByBulge createArcStringByBulge(java.util.List<org.opengis.geometry.coordinate.Position> points, double[] bulges, java.util.List<double[]> normals) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createArcStringByBulge
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.BSplineCurve createBSplineCurve(int degree, org.opengis.geometry.coordinate.PointArray points, java.util.List<org.opengis.geometry.coordinate.Knot> knots, org.opengis.geometry.coordinate.KnotType knotSpec) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createBSplineCurve
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.BSplineSurface createBSplineSurface(java.util.List<org.opengis.geometry.coordinate.PointArray> points, int[] degree, java.util.List<org.opengis.geometry.coordinate.Knot>[] knots, org.opengis.geometry.coordinate.KnotType knotSpec) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createBSplineSurface
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.GeodesicString createGeodesicString(java.util.List<org.opengis.geometry.coordinate.Position> points) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createGeodesicString
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.PolyhedralSurface createPolyhedralSurface(java.util.List<org.opengis.geometry.coordinate.Polygon> tiles) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createPolyhedralSurface
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.Tin createTin(java.util.Set<org.opengis.geometry.coordinate.Position> post, java.util.Set<org.opengis.geometry.coordinate.LineString> stopLines, java.util.Set<org.opengis.geometry.coordinate.LineString> breakLines, double maxLength) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createTin
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
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) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createArc
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.Arc createArc(org.opengis.geometry.coordinate.Position startPoint, org.opengis.geometry.coordinate.Position endPoint, double bulge, double[] normal) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createArc
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.ArcByBulge createArcByBulge(org.opengis.geometry.coordinate.Position startPoint, org.opengis.geometry.coordinate.Position endPoint, double bulge, double[] normal) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createArcByBulge
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.Geodesic createGeodesic(org.opengis.geometry.coordinate.Position startPoint, org.opengis.geometry.coordinate.Position endPoint) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createGeodesic
in interface org.opengis.geometry.coordinate.GeometryFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |