public class CurvedGeometryFactory
extends GeometryFactory
GeometryFactory
with extra methods to generate CurvedGeometry
instancesConstructor and Description |
---|
CurvedGeometryFactory(double tolerance) |
CurvedGeometryFactory(GeometryFactory delegate,
double tolerance) |
Modifier and Type | Method and Description |
---|---|
Geometry |
buildGeometry(Collection geomList) |
LineString |
createCircularString(CoordinateSequence cs)
Creates a
CircularString |
LineString |
createCircularString(int dimension,
double... controlPoints)
Creates a
CircularString |
LineString |
createCurvedGeometry(CoordinateSequence cs)
Creates a
CircularString or a CircularRing depending on whether the points
are forming a closed ring, or not |
LineString |
createCurvedGeometry(int dimension,
double... controlPoints)
Creates a
CircularString or a CircularRing depending on whether the points
are forming a closed ring, or not |
LineString |
createCurvedGeometry(LineString... components)
Creates a compound curve with the given components
|
LineString |
createCurvedGeometry(List<LineString> components)
Creates a compound curve with the given components
|
Polygon |
createCurvePolygon(LinearRing shell,
LinearRing[] holes)
Explicitly creates a
CurvePolygon |
Geometry |
createGeometry(Geometry g) |
GeometryCollection |
createGeometryCollection(Geometry[] geometries) |
LinearRing |
createLinearRing(Coordinate[] coordinates) |
LinearRing |
createLinearRing(CoordinateSequence coordinates) |
LineString |
createLineString(Coordinate[] coordinates) |
LineString |
createLineString(CoordinateSequence coordinates) |
MultiCurve |
createMultiCurve(List<LineString> components)
Explicitly creates a
MultiCurve |
MultiLineString |
createMultiLineString(LineString[] lineStrings) |
MultiPoint |
createMultiPoint(Coordinate[] coordinates) |
MultiPoint |
createMultiPoint(CoordinateSequence coordinates) |
MultiPoint |
createMultiPoint(Point[] point) |
MultiPolygon |
createMultiPolygon(Polygon[] polygons) |
MultiPolygon |
createMultiSurface(List<Polygon> polygons)
Explicitly creates a
MultiSurface |
Point |
createPoint(Coordinate coordinate) |
Point |
createPoint(CoordinateSequence coordinates) |
Polygon |
createPolygon(Coordinate[] coordinates) |
Polygon |
createPolygon(CoordinateSequence coordinates) |
Polygon |
createPolygon(LinearRing shell) |
Polygon |
createPolygon(LinearRing shell,
LinearRing[] holes) |
boolean |
equals(Object obj) |
CoordinateSequenceFactory |
getCoordinateSequenceFactory() |
PrecisionModel |
getPrecisionModel() |
int |
getSRID() |
double |
getTolerance()
Returns the linearization tolerance used to create the curved geometries
|
boolean |
hasCurves(Geometry g)
Returns true if the geometry is a curved geometry, or contains curved geometries
|
int |
hashCode() |
Geometry |
toGeometry(Envelope envelope) |
String |
toString() |
createGeometryCollection, createLinearRing, createLineString, createMultiLineString, createMultiPoint, createMultiPointFromCoords, createMultiPolygon, createPoint, createPointFromInternalCoord, createPolygon, toGeometryArray, toLinearRingArray, toLineStringArray, toMultiLineStringArray, toMultiPointArray, toMultiPolygonArray, toPointArray, toPolygonArray
public CurvedGeometryFactory(double tolerance)
public CurvedGeometryFactory(GeometryFactory delegate, double tolerance)
public LineString createCircularString(int dimension, double... controlPoints)
CircularString
dimension
- Number of dimensions in the control point array. For the time being, any
value other than 2 will cause a IllegalArgumentExceptionpublic LineString createCurvedGeometry(int dimension, double... controlPoints)
CircularString
or a CircularRing
depending on whether the points
are forming a closed ring, or notdimension
- Number of dimensions in the control point array. For the time being, any
value other than 2 will cause a IllegalArgumentExceptionpublic LineString createCircularString(CoordinateSequence cs)
CircularString
public LineString createCurvedGeometry(CoordinateSequence cs)
CircularString
or a CircularRing
depending on whether the points
are forming a closed ring, or notpublic LineString createCurvedGeometry(LineString... components)
public LineString createCurvedGeometry(List<LineString> components)
public Polygon createCurvePolygon(LinearRing shell, LinearRing[] holes)
CurvePolygon
shell
- holes
- public MultiPolygon createMultiSurface(List<Polygon> polygons)
MultiSurface
polygons
- public MultiCurve createMultiCurve(List<LineString> components)
MultiCurve
components
- public double getTolerance()
public Geometry toGeometry(Envelope envelope)
toGeometry
in class GeometryFactory
public PrecisionModel getPrecisionModel()
getPrecisionModel
in class GeometryFactory
public Point createPoint(Coordinate coordinate)
createPoint
in class GeometryFactory
public Point createPoint(CoordinateSequence coordinates)
createPoint
in class GeometryFactory
public MultiLineString createMultiLineString(LineString[] lineStrings)
createMultiLineString
in class GeometryFactory
public GeometryCollection createGeometryCollection(Geometry[] geometries)
createGeometryCollection
in class GeometryFactory
public MultiPolygon createMultiPolygon(Polygon[] polygons)
createMultiPolygon
in class GeometryFactory
public LinearRing createLinearRing(Coordinate[] coordinates)
createLinearRing
in class GeometryFactory
public LinearRing createLinearRing(CoordinateSequence coordinates)
createLinearRing
in class GeometryFactory
public MultiPoint createMultiPoint(Point[] point)
createMultiPoint
in class GeometryFactory
public MultiPoint createMultiPoint(Coordinate[] coordinates)
createMultiPoint
in class GeometryFactory
public MultiPoint createMultiPoint(CoordinateSequence coordinates)
createMultiPoint
in class GeometryFactory
public Polygon createPolygon(LinearRing shell, LinearRing[] holes)
createPolygon
in class GeometryFactory
public Polygon createPolygon(CoordinateSequence coordinates)
createPolygon
in class GeometryFactory
public Polygon createPolygon(Coordinate[] coordinates)
createPolygon
in class GeometryFactory
public Polygon createPolygon(LinearRing shell)
createPolygon
in class GeometryFactory
public Geometry buildGeometry(Collection geomList)
buildGeometry
in class GeometryFactory
public LineString createLineString(Coordinate[] coordinates)
createLineString
in class GeometryFactory
public LineString createLineString(CoordinateSequence coordinates)
createLineString
in class GeometryFactory
public Geometry createGeometry(Geometry g)
createGeometry
in class GeometryFactory
public int getSRID()
getSRID
in class GeometryFactory
public CoordinateSequenceFactory getCoordinateSequenceFactory()
getCoordinateSequenceFactory
in class GeometryFactory
public boolean hasCurves(Geometry g)
g
- Copyright © 1996–2019 Geotools. All rights reserved.