|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.geometry.iso.primitive.PrimitiveFactoryImpl
public class PrimitiveFactoryImpl
Constructor Summary | |
---|---|
PrimitiveFactoryImpl()
FactorySPI entry point |
|
PrimitiveFactoryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
org.opengis.geometry.PositionFactory positionFactory)
|
|
PrimitiveFactoryImpl(Hints hints)
Just the defaults, use GeometryFactoryFinder for the rest |
Method Summary | |
---|---|
CurveImpl |
createCurve(java.util.List<org.opengis.geometry.primitive.CurveSegment> segments)
|
CurveBoundaryImpl |
createCurveBoundary(org.opengis.geometry.DirectPosition dp0,
org.opengis.geometry.DirectPosition dp1)
Creates a CurveBoundary |
CurveBoundaryImpl |
createCurveBoundary(org.opengis.geometry.primitive.Point p0,
org.opengis.geometry.primitive.Point p1)
Creates a CurveBoundary |
org.opengis.geometry.primitive.Curve |
createCurveByDirectPositions(java.util.List<org.opengis.geometry.DirectPosition> aDirectPositions)
Creates a Curve conforming to the given DirectPositions Tested by Sanjay - |
CurveImpl |
createCurveByPositions(java.util.List<org.opengis.geometry.coordinate.Position> aPositions)
Creates a curve bu Positions |
PointImpl |
createPoint(DirectPositionImpl dp)
Creates a Point by copying the coordinates of a given DirectPosition |
PointImpl |
createPoint(double[] coord)
|
PointImpl |
createPoint(org.opengis.geometry.coordinate.Position position)
|
java.util.List<org.opengis.geometry.coordinate.Position> |
createPositions(java.util.List<org.opengis.geometry.DirectPosition> aDirectPositions)
Converts a List of DirectPosition objects to a List of Position objects |
PrimitiveImpl |
createPrimitive(org.opengis.geometry.Envelope bounds)
|
org.opengis.geometry.primitive.Ring |
createRing(java.util.List<org.opengis.geometry.primitive.OrientableCurve> orientableCurves)
|
org.opengis.geometry.primitive.Ring |
createRingByDirectPositions(java.util.List<org.opengis.geometry.DirectPosition> directPositions)
Creates a Ring conforming to the given DirectPositions. |
org.opengis.geometry.primitive.Ring |
createRingByPositions(java.util.List<org.opengis.geometry.coordinate.Position> aPositions)
Creates a Ring conforming to the given Positions |
SolidImpl |
createSolid(org.opengis.geometry.primitive.SolidBoundary boundary)
|
SurfaceImpl |
createSurface(java.util.List<org.opengis.geometry.primitive.SurfacePatch> surfacePatches)
|
SurfaceImpl |
createSurface(org.opengis.geometry.primitive.SurfaceBoundary boundary)
|
SurfaceBoundaryImpl |
createSurfaceBoundary(org.opengis.geometry.primitive.Ring exterior,
java.util.List<org.opengis.geometry.primitive.Ring> interiors)
|
SurfaceImpl |
createSurfaceByDirectPositions(java.util.List<org.opengis.geometry.DirectPosition> positions)
Creates a simple surface without holes by a list of DirectPositions |
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem()
|
int |
getDimension()
Returns the Coordinate Dimension of the used Coordinate System (Sanjay) |
java.util.Map |
getImplementationHints()
These are the hints we used |
org.opengis.geometry.PositionFactory |
getPositionFactory()
|
org.opengis.geometry.primitive.Ring |
processBoundsToRing(org.opengis.geometry.Envelope bounds,
org.opengis.geometry.coordinate.LineSegment segment,
int D)
This is pass #2 ... |
org.opengis.geometry.coordinate.LineSegment |
processBoundsToSegment(org.opengis.geometry.Envelope bounds)
This is the first and easy step ... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveFactoryImpl()
public PrimitiveFactoryImpl(Hints hints)
public PrimitiveFactoryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs, org.opengis.geometry.PositionFactory positionFactory)
crs
- Method Detail |
---|
public java.util.Map getImplementationHints()
getImplementationHints
in interface Factory
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
getCoordinateReferenceSystem
in interface org.opengis.geometry.primitive.PrimitiveFactory
public org.opengis.geometry.PositionFactory getPositionFactory()
public int getDimension()
public PointImpl createPoint(double[] coord)
createPoint
in interface org.opengis.geometry.primitive.PrimitiveFactory
public PointImpl createPoint(DirectPositionImpl dp)
dp
- DirectPosition, will be copied
public PointImpl createPoint(org.opengis.geometry.coordinate.Position position) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createPoint
in interface org.opengis.geometry.primitive.PrimitiveFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public CurveBoundaryImpl createCurveBoundary(org.opengis.geometry.DirectPosition dp0, org.opengis.geometry.DirectPosition dp1)
dp0
- dp1
-
public CurveBoundaryImpl createCurveBoundary(org.opengis.geometry.primitive.Point p0, org.opengis.geometry.primitive.Point p1)
p0
- p1
-
public CurveImpl createCurve(java.util.List<org.opengis.geometry.primitive.CurveSegment> segments)
createCurve
in interface org.opengis.geometry.primitive.PrimitiveFactory
public org.opengis.geometry.primitive.Ring createRing(java.util.List<org.opengis.geometry.primitive.OrientableCurve> orientableCurves) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createRing
in interface org.opengis.geometry.primitive.PrimitiveFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public SurfaceBoundaryImpl createSurfaceBoundary(org.opengis.geometry.primitive.Ring exterior, java.util.List<org.opengis.geometry.primitive.Ring> interiors) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createSurfaceBoundary
in interface org.opengis.geometry.primitive.PrimitiveFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public SurfaceImpl createSurface(java.util.List<org.opengis.geometry.primitive.SurfacePatch> surfacePatches) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createSurface
in interface org.opengis.geometry.primitive.PrimitiveFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public SurfaceImpl createSurface(org.opengis.geometry.primitive.SurfaceBoundary boundary) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createSurface
in interface org.opengis.geometry.primitive.PrimitiveFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public SolidImpl createSolid(org.opengis.geometry.primitive.SolidBoundary boundary) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createSolid
in interface org.opengis.geometry.primitive.PrimitiveFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public PrimitiveImpl createPrimitive(org.opengis.geometry.Envelope bounds) throws org.opengis.geometry.MismatchedReferenceSystemException, org.opengis.geometry.MismatchedDimensionException
createPrimitive
in interface org.opengis.geometry.primitive.PrimitiveFactory
org.opengis.geometry.MismatchedReferenceSystemException
org.opengis.geometry.MismatchedDimensionException
public org.opengis.geometry.coordinate.LineSegment processBoundsToSegment(org.opengis.geometry.Envelope bounds)
bounds
- dimension
- public org.opengis.geometry.primitive.Ring processBoundsToRing(org.opengis.geometry.Envelope bounds, org.opengis.geometry.coordinate.LineSegment segment, int D)
public org.opengis.geometry.primitive.Ring createRingByDirectPositions(java.util.List<org.opengis.geometry.DirectPosition> directPositions)
directPositions
-
public org.opengis.geometry.primitive.Ring createRingByPositions(java.util.List<org.opengis.geometry.coordinate.Position> aPositions)
aPositions
-
public org.opengis.geometry.primitive.Curve createCurveByDirectPositions(java.util.List<org.opengis.geometry.DirectPosition> aDirectPositions)
directPositions
-
public java.util.List<org.opengis.geometry.coordinate.Position> createPositions(java.util.List<org.opengis.geometry.DirectPosition> aDirectPositions)
aDirectPositions
- List of DirectPosition objects
public CurveImpl createCurveByPositions(java.util.List<org.opengis.geometry.coordinate.Position> aPositions)
aPositions
-
public SurfaceImpl createSurfaceByDirectPositions(java.util.List<org.opengis.geometry.DirectPosition> positions)
positions
- List of positions, the last positions must be equal to the
first position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |