Package org.geotools.geometry.jts
Class CurvedGeometryFactory
- Object
-
- GeometryFactory
-
- CurvedGeometryFactory
-
- All Implemented Interfaces:
Serializable
public class CurvedGeometryFactory extends GeometryFactory
AGeometryFactorywith extra methods to generateCurvedGeometryinstances- Author:
- Andrea Aime - GeoSolutions
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CurvedGeometryFactory(double tolerance)CurvedGeometryFactory(GeometryFactory delegate, double tolerance)
-
Method Summary
-
Methods inherited from class GeometryFactory
createEmpty, createGeometryCollection, createLinearRing, createLineString, createMultiLineString, createMultiPoint, createMultiPointFromCoords, createMultiPolygon, createPoint, createPointFromInternalCoord, createPolygon, toGeometryArray, toLinearRingArray, toLineStringArray, toMultiLineStringArray, toMultiPointArray, toMultiPolygonArray, toPointArray, toPolygonArray
-
-
-
-
Constructor Detail
-
CurvedGeometryFactory
public CurvedGeometryFactory(double tolerance)
-
CurvedGeometryFactory
public CurvedGeometryFactory(GeometryFactory delegate, double tolerance)
-
-
Method Detail
-
createCircularString
public LineString createCircularString(int dimension, double... controlPoints)
Creates aCircularString- Parameters:
dimension- Number of dimensions in the control point array. For the time being, any value other than 2 will cause a IllegalArgumentException
-
createCurvedGeometry
public LineString createCurvedGeometry(int dimension, double... controlPoints)
Creates aCircularStringor aCircularRingdepending on whether the points are forming a closed ring, or not- Parameters:
dimension- Number of dimensions in the control point array. For the time being, any value other than 2 will cause a IllegalArgumentException
-
createCircularString
public LineString createCircularString(CoordinateSequence cs)
Creates aCircularString
-
createCurvedGeometry
public LineString createCurvedGeometry(CoordinateSequence cs)
Creates aCircularStringor aCircularRingdepending on whether the points are forming a closed ring, or not
-
createCurvedGeometry
public LineString createCurvedGeometry(LineString... components)
Creates a compound curve with the given components
-
createCurvedGeometry
public LineString createCurvedGeometry(List<LineString> components)
Creates a compound curve with the given components
-
createCurvePolygon
public Polygon createCurvePolygon(LinearRing shell, LinearRing... holes)
Explicitly creates aCurvePolygon
-
createMultiSurface
public MultiPolygon createMultiSurface(List<Polygon> polygons)
Explicitly creates aMultiSurface
-
createMultiCurve
public MultiCurve createMultiCurve(List<LineString> components)
Explicitly creates aMultiCurve
-
getTolerance
public double getTolerance()
Returns the linearization tolerance used to create the curved geometries
-
toGeometry
public Geometry toGeometry(Envelope envelope)
- Overrides:
toGeometryin classGeometryFactory
-
getPrecisionModel
public PrecisionModel getPrecisionModel()
- Overrides:
getPrecisionModelin classGeometryFactory
-
createPoint
public Point createPoint(Coordinate coordinate)
- Overrides:
createPointin classGeometryFactory
-
createPoint
public Point createPoint(CoordinateSequence coordinates)
- Overrides:
createPointin classGeometryFactory
-
createMultiLineString
public MultiLineString createMultiLineString(LineString[] lineStrings)
- Overrides:
createMultiLineStringin classGeometryFactory
-
createGeometryCollection
public GeometryCollection createGeometryCollection(Geometry[] geometries)
- Overrides:
createGeometryCollectionin classGeometryFactory
-
createMultiPolygon
public MultiPolygon createMultiPolygon(Polygon[] polygons)
- Overrides:
createMultiPolygonin classGeometryFactory
-
createLinearRing
public LinearRing createLinearRing(Coordinate[] coordinates)
- Overrides:
createLinearRingin classGeometryFactory
-
createLinearRing
public LinearRing createLinearRing(CoordinateSequence coordinates)
- Overrides:
createLinearRingin classGeometryFactory
-
createMultiPoint
public MultiPoint createMultiPoint(Point[] point)
- Overrides:
createMultiPointin classGeometryFactory
-
createMultiPoint
public MultiPoint createMultiPoint(Coordinate[] coordinates)
- Overrides:
createMultiPointin classGeometryFactory
-
createMultiPoint
public MultiPoint createMultiPoint(CoordinateSequence coordinates)
- Overrides:
createMultiPointin classGeometryFactory
-
createPolygon
public Polygon createPolygon(LinearRing shell, LinearRing[] holes)
- Overrides:
createPolygonin classGeometryFactory
-
createPolygon
public Polygon createPolygon(CoordinateSequence coordinates)
- Overrides:
createPolygonin classGeometryFactory
-
createPolygon
public Polygon createPolygon(Coordinate[] coordinates)
- Overrides:
createPolygonin classGeometryFactory
-
createPolygon
public Polygon createPolygon(LinearRing shell)
- Overrides:
createPolygonin classGeometryFactory
-
buildGeometry
public Geometry buildGeometry(Collection geomList)
- Overrides:
buildGeometryin classGeometryFactory
-
createLineString
public LineString createLineString(Coordinate[] coordinates)
- Overrides:
createLineStringin classGeometryFactory
-
createLineString
public LineString createLineString(CoordinateSequence coordinates)
- Overrides:
createLineStringin classGeometryFactory
-
createGeometry
public Geometry createGeometry(Geometry g)
- Overrides:
createGeometryin classGeometryFactory
-
getSRID
public int getSRID()
- Overrides:
getSRIDin classGeometryFactory
-
getCoordinateSequenceFactory
public CoordinateSequenceFactory getCoordinateSequenceFactory()
- Overrides:
getCoordinateSequenceFactoryin classGeometryFactory
-
hasCurves
public boolean hasCurves(Geometry g)
Returns true if the geometry is a curved geometry, or contains curved geometries
-
-