Package org.geotools.geometry.jts
Class CurvedGeometryFactory
Object
GeometryFactory
CurvedGeometryFactory
- All Implemented Interfaces:
Serializable
A
GeometryFactory
with extra methods to generate CurvedGeometry
instances- Author:
- Andrea Aime - GeoSolutions
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCurvedGeometryFactory
(double tolerance) CurvedGeometryFactory
(GeometryFactory delegate, double tolerance) -
Method Summary
Modifier and TypeMethodDescriptionbuildGeometry
(Collection geomList) createCircularString
(int dimension, double... controlPoints) Creates aCircularString
Creates aCircularString
createCurvedGeometry
(int dimension, double... controlPoints) Creates aCircularString
or aCircularRing
depending on whether the points are forming a closed ring, or notcreateCurvedGeometry
(List<LineString> components) Creates a compound curve with the given componentsCreates aCircularString
or aCircularRing
depending on whether the points are forming a closed ring, or notcreateCurvedGeometry
(LineString... components) Creates a compound curve with the given componentscreateCurvePolygon
(LinearRing shell, LinearRing... holes) Explicitly creates aCurvePolygon
createGeometryCollection
(Geometry[] geometries) createLinearRing
(Coordinate[] coordinates) createLinearRing
(CoordinateSequence coordinates) createLineString
(Coordinate[] coordinates) createLineString
(CoordinateSequence coordinates) createMultiCurve
(List<LineString> components) Explicitly creates aMultiCurve
createMultiLineString
(LineString[] lineStrings) createMultiPoint
(Coordinate[] coordinates) createMultiPoint
(CoordinateSequence coordinates) createMultiPoint
(Point[] point) createMultiPolygon
(Polygon[] polygons) createMultiSurface
(List<Polygon> polygons) Explicitly creates aMultiSurface
createPoint
(Coordinate coordinate) createPoint
(CoordinateSequence coordinates) createPolygon
(Coordinate[] coordinates) createPolygon
(CoordinateSequence coordinates) createPolygon
(LinearRing shell) createPolygon
(LinearRing shell, LinearRing[] holes) boolean
int
getSRID()
double
Returns the linearization tolerance used to create the curved geometriesboolean
Returns true if the geometry is a curved geometry, or contains curved geometriesint
hashCode()
toGeometry
(Envelope envelope) toString()
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 Details
-
CurvedGeometryFactory
public CurvedGeometryFactory(double tolerance) -
CurvedGeometryFactory
-
-
Method Details
-
createCircularString
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
Creates aCircularString
or aCircularRing
depending 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
Creates aCircularString
-
createCurvedGeometry
Creates aCircularString
or aCircularRing
depending on whether the points are forming a closed ring, or not -
createCurvedGeometry
Creates a compound curve with the given components -
createCurvedGeometry
Creates a compound curve with the given components -
createCurvePolygon
Explicitly creates aCurvePolygon
-
createMultiSurface
Explicitly creates aMultiSurface
-
createMultiCurve
Explicitly creates aMultiCurve
-
hashCode
public int hashCode() -
equals
-
getTolerance
public double getTolerance()Returns the linearization tolerance used to create the curved geometries -
toString
-
toGeometry
- Overrides:
toGeometry
in classGeometryFactory
-
getPrecisionModel
- Overrides:
getPrecisionModel
in classGeometryFactory
-
createPoint
- Overrides:
createPoint
in classGeometryFactory
-
createPoint
- Overrides:
createPoint
in classGeometryFactory
-
createMultiLineString
- Overrides:
createMultiLineString
in classGeometryFactory
-
createGeometryCollection
- Overrides:
createGeometryCollection
in classGeometryFactory
-
createMultiPolygon
- Overrides:
createMultiPolygon
in classGeometryFactory
-
createLinearRing
- Overrides:
createLinearRing
in classGeometryFactory
-
createLinearRing
- Overrides:
createLinearRing
in classGeometryFactory
-
createMultiPoint
- Overrides:
createMultiPoint
in classGeometryFactory
-
createMultiPoint
- Overrides:
createMultiPoint
in classGeometryFactory
-
createMultiPoint
- Overrides:
createMultiPoint
in classGeometryFactory
-
createPolygon
- Overrides:
createPolygon
in classGeometryFactory
-
createPolygon
- Overrides:
createPolygon
in classGeometryFactory
-
createPolygon
- Overrides:
createPolygon
in classGeometryFactory
-
createPolygon
- Overrides:
createPolygon
in classGeometryFactory
-
buildGeometry
- Overrides:
buildGeometry
in classGeometryFactory
-
createLineString
- Overrides:
createLineString
in classGeometryFactory
-
createLineString
- Overrides:
createLineString
in classGeometryFactory
-
createGeometry
- Overrides:
createGeometry
in classGeometryFactory
-
getSRID
public int getSRID()- Overrides:
getSRID
in classGeometryFactory
-
getCoordinateSequenceFactory
- Overrides:
getCoordinateSequenceFactory
in classGeometryFactory
-
hasCurves
Returns true if the geometry is a curved geometry, or contains curved geometries
-