public class CurvedGeometryFactory
extends GeometryFactory
GeometryFactory with extra methods to generate CurvedGeometry instances| Constructor 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, toPolygonArraypublic CurvedGeometryFactory(double tolerance)
public CurvedGeometryFactory(GeometryFactory delegate,
double tolerance)
public LineString createCircularString(int dimension,
double... controlPoints)
CircularStringdimension - 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)
CircularStringpublic 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)
CurvePolygonshell - holes - public MultiPolygon createMultiSurface(List<Polygon> polygons)
MultiSurfacepolygons - public MultiCurve createMultiCurve(List<LineString> components)
MultiCurvecomponents - public double getTolerance()
public Geometry toGeometry(Envelope envelope)
toGeometry in class GeometryFactorypublic PrecisionModel getPrecisionModel()
getPrecisionModel in class GeometryFactorypublic Point createPoint(Coordinate coordinate)
createPoint in class GeometryFactorypublic Point createPoint(CoordinateSequence coordinates)
createPoint in class GeometryFactorypublic MultiLineString createMultiLineString(LineString[] lineStrings)
createMultiLineString in class GeometryFactorypublic GeometryCollection createGeometryCollection(Geometry[] geometries)
createGeometryCollection in class GeometryFactorypublic MultiPolygon createMultiPolygon(Polygon[] polygons)
createMultiPolygon in class GeometryFactorypublic LinearRing createLinearRing(Coordinate[] coordinates)
createLinearRing in class GeometryFactorypublic LinearRing createLinearRing(CoordinateSequence coordinates)
createLinearRing in class GeometryFactorypublic MultiPoint createMultiPoint(Point[] point)
createMultiPoint in class GeometryFactorypublic MultiPoint createMultiPoint(Coordinate[] coordinates)
createMultiPoint in class GeometryFactorypublic MultiPoint createMultiPoint(CoordinateSequence coordinates)
createMultiPoint in class GeometryFactorypublic Polygon createPolygon(LinearRing shell,
LinearRing[] holes)
createPolygon in class GeometryFactorypublic Polygon createPolygon(CoordinateSequence coordinates)
createPolygon in class GeometryFactorypublic Polygon createPolygon(Coordinate[] coordinates)
createPolygon in class GeometryFactorypublic Polygon createPolygon(LinearRing shell)
createPolygon in class GeometryFactorypublic Geometry buildGeometry(Collection geomList)
buildGeometry in class GeometryFactorypublic LineString createLineString(Coordinate[] coordinates)
createLineString in class GeometryFactorypublic LineString createLineString(CoordinateSequence coordinates)
createLineString in class GeometryFactorypublic Geometry createGeometry(Geometry g)
createGeometry in class GeometryFactorypublic int getSRID()
getSRID in class GeometryFactorypublic CoordinateSequenceFactory getCoordinateSequenceFactory()
getCoordinateSequenceFactory in class GeometryFactorypublic boolean hasCurves(Geometry g)
g - Copyright © 1996–2019 Geotools. All rights reserved.