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 aCircularStringCreates aCircularStringcreateCurvedGeometry(int dimension, double... controlPoints) Creates aCircularStringor aCircularRingdepending on whether the points are forming a closed ring, or notcreateCurvedGeometry(List<LineString> components) Creates a compound curve with the given componentsCreates aCircularStringor aCircularRingdepending 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 aCurvePolygoncreateGeometryCollection(Geometry[] geometries) createLinearRing(Coordinate[] coordinates) createLinearRing(CoordinateSequence coordinates) createLineString(Coordinate[] coordinates) createLineString(CoordinateSequence coordinates) createMultiCurve(List<LineString> components) Explicitly creates aMultiCurvecreateMultiLineString(LineString[] lineStrings) createMultiPoint(Coordinate[] coordinates) createMultiPoint(CoordinateSequence coordinates) createMultiPoint(Point[] point) createMultiPolygon(Polygon[] polygons) createMultiSurface(List<Polygon> polygons) Explicitly creates aMultiSurfacecreatePoint(Coordinate coordinate) createPoint(CoordinateSequence coordinates) createPolygon(Coordinate[] coordinates) createPolygon(CoordinateSequence coordinates) createPolygon(LinearRing shell) createPolygon(LinearRing shell, LinearRing[] holes) booleanintgetSRID()doubleReturns the linearization tolerance used to create the curved geometriesbooleanReturns true if the geometry is a curved geometry, or contains curved geometriesinthashCode()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 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
Creates aCircularString -
createCurvedGeometry
Creates aCircularStringor aCircularRingdepending 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:
toGeometryin classGeometryFactory
-
getPrecisionModel
- Overrides:
getPrecisionModelin classGeometryFactory
-
createPoint
- Overrides:
createPointin classGeometryFactory
-
createPoint
- Overrides:
createPointin classGeometryFactory
-
createMultiLineString
- Overrides:
createMultiLineStringin classGeometryFactory
-
createGeometryCollection
- Overrides:
createGeometryCollectionin classGeometryFactory
-
createMultiPolygon
- Overrides:
createMultiPolygonin classGeometryFactory
-
createLinearRing
- Overrides:
createLinearRingin classGeometryFactory
-
createLinearRing
- Overrides:
createLinearRingin classGeometryFactory
-
createMultiPoint
- Overrides:
createMultiPointin classGeometryFactory
-
createMultiPoint
- Overrides:
createMultiPointin classGeometryFactory
-
createMultiPoint
- Overrides:
createMultiPointin classGeometryFactory
-
createPolygon
- Overrides:
createPolygonin classGeometryFactory
-
createPolygon
- Overrides:
createPolygonin classGeometryFactory
-
createPolygon
- Overrides:
createPolygonin classGeometryFactory
-
createPolygon
- Overrides:
createPolygonin classGeometryFactory
-
buildGeometry
- Overrides:
buildGeometryin classGeometryFactory
-
createLineString
- Overrides:
createLineStringin classGeometryFactory
-
createLineString
- Overrides:
createLineStringin classGeometryFactory
-
createGeometry
- Overrides:
createGeometryin classGeometryFactory
-
getSRID
public int getSRID()- Overrides:
getSRIDin classGeometryFactory
-
getCoordinateSequenceFactory
- Overrides:
getCoordinateSequenceFactoryin classGeometryFactory
-
hasCurves
Returns true if the geometry is a curved geometry, or contains curved geometries
-