public interface GeometryFactory
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Point> |
coordsToPoints(CoordinateReferenceSystem crs,
double[][] coords)
Create a list of points from a 2-dimensional array of coordinates.
|
java.util.List<Point> |
coordsToPoints(double[][] coords)
Create a list of points from a 2-dimensional array of coordinates, in the geographic coordinate system (lon, lat)
|
Point[] |
coordsToPointsArray(CoordinateReferenceSystem crs,
double[][] coords)
Create an array of points from a 2-dimensional array of coordinates.
|
Point[] |
coordsToPointsArray(double[][] coords)
Create an array of points from a 2-dimensional array of coordinates in the geographic coordinate system (lon, lat)
|
BBox |
getBoundingBox(Point lowerLeft,
Point topRight)
Create a bounding box
|
Line |
getLine(Point firstVertex,
Point secondVertex)
Create a line segment given its two end points.
|
LinearRing |
getLinearRing(java.util.List<Point> vertices)
Create a linear ring given a list of vertices
|
LinearRing |
getLinearRing(Point firstVertex,
Point... restOfVertices)
Create a linear ring given its vertices.
|
LineString |
getLineString(java.util.List<Point> vertices)
Create a line string given a list of vertices.
|
LineString |
getLineString(Point firstVertex,
Point... restOfVertices)
Create a line string given its vertices.
|
MultiGeometry |
getMultiGeometry(Geometry... geometries)
Create multi-geometry object of mixed geometry type - each member
can be of a different Geometry type
|
MultiGeometry |
getMultiGeometry(java.lang.Iterable<Geometry> geometries)
Create multi-geometry object of mixed geometry type - each member
can be of a different Geometry type
|
MultiLinearRing |
getMultiLinearRing(java.lang.Iterable<LinearRing> linearRings)
Create a multi-linear ring
|
MultiLinearRing |
getMultiLinearRing(LinearRing... linearRings)
Create a multi-linear ring
|
MultiLineString |
getMultiLineString(java.lang.Iterable<LineString> lineStrings)
Create a multi-line string
|
MultiLineString |
getMultiLineString(LineString... lineStrings)
Create a multi-line string
|
MultiPoint |
getMultiPoint(java.lang.Iterable<Point> points)
Creates a MultiPoint geometry
|
MultiPoint |
getMultiPoint(Point... points)
Creates a MultiPoint geometry
|
MultiPolygon |
getMultiPolygon(java.lang.Iterable<Polygon> polygons)
Creates a MultiPolygon geometry
|
MultiPolygon |
getMultiPolygon(Polygon... polygons)
Creates a MultiPolygon geometry
|
Point |
getPoint(CoordinateReferenceSystem crs,
double... coordinates)
Create a point in the specified coordinate reference system
|
Point |
getPoint(CoordinateReferenceSystem crs,
double coord1,
double coord2)
Create a point in the specified 2-dimensional coordinate reference system
|
Point |
getPoint(CoordinateReferenceSystem crs,
double coord1,
double coord2,
double coord3)
Create a point in the specified 3-dimensional coordinate reference system
|
Point |
getPoint(double longitude,
double latitude)
Create a point in geographic coordinate system (longitude, latitude)
|
Polygon |
getPolygon(LinearRing exteriorBoundary)
Create a polygon given its exterior boundary
|
Polygon |
getPolygon(LinearRing exteriorBoundary,
boolean allowNonSimplicity)
Create a polygon given its exterior boundary with option create a non-simple polygon
|
Polygon |
getPolygon(LinearRing exteriorBoundary,
java.lang.Iterable<LinearRing> interiorBoundaries)
Create a polygon given its exterior boundary and a collection of holes
|
Polygon |
getPolygon(LinearRing exteriorBoundary,
java.lang.Iterable<LinearRing> interiorBoundaries,
boolean allowNonSimplicity) |
Polygon |
getPolygon(LinearRing exteriorBoundary,
LinearRing... restOfInteriorBoundaries)
Create a polygon given its exterior boundary and a collection of holes
|
Polygon |
getPolygon(java.util.List<Point> vertices)
Create a polygon given a list of its exterior boundary vertices.
|
Polygon |
getPolygon(java.util.List<Point> vertices,
boolean allowNonSimplicity)
Create a polygon given a list of its exterior boundary vertices, with option to create a non-simple polygon.
|
Polygon |
getPolygon(Point firstVertex,
Point... restOfVertices)
Create a polygon given its exterior boundary vertices.
|
Surface |
getPolygonalRepresentation(BBox bBOx)
Create a polygonal representation of the bounding box
|
Vector |
getVector(double... coords)
Create a vector given its coordinates.
|
Polygon getPolygon(LinearRing exteriorBoundary)
exteriorBoundary - of the requested polygonPolygon getPolygon(LinearRing exteriorBoundary, boolean allowNonSimplicity)
exteriorBoundary - of the requested polygonallowNonSimplicity - if true then do not enforce simplicity of the polygonPolygon getPolygon(Point firstVertex, Point... restOfVertices)
firstVertex - restOfVertices - Polygon getPolygon(java.util.List<Point> vertices)
vertices - Polygon getPolygon(java.util.List<Point> vertices, boolean allowNonSimplicity)
vertices - allowNonSimplicity - if true then do not enforce simplicity of the polygonPolygon getPolygon(LinearRing exteriorBoundary, LinearRing... restOfInteriorBoundaries)
exteriorBoundary - of the requested polygoninteriorBoundary - - a hole in the polygonrestOfInteriorBoundaries - are rest of holes inside the requested polygonPolygon getPolygon(LinearRing exteriorBoundary, java.lang.Iterable<LinearRing> interiorBoundaries)
exteriorBoundary - of the requested polygoninteriorBoundaries - are holes inside the requested polygonPolygon getPolygon(LinearRing exteriorBoundary, java.lang.Iterable<LinearRing> interiorBoundaries, boolean allowNonSimplicity)
LineString getLineString(Point firstVertex, Point... restOfVertices)
firstVertex - restOfVertices - LineString getLineString(java.util.List<Point> vertices)
vertices - Line getLine(Point firstVertex, Point secondVertex)
firstVertex - restOfVertices - Vector getVector(double... coords)
coordinates - LinearRing getLinearRing(Point firstVertex, Point... restOfVertices)
firstVertex - restOfVertices. - The last vertex doesn't have to close the ring and be equal to the first oneLinearRing getLinearRing(java.util.List<Point> vertices)
vertices - of the ring. The last vertex doesn't have to close the ring and be equal to the first onePoint getPoint(CoordinateReferenceSystem crs, double coord1, double coord2)
crs - the required coordinate reference systemcoord1 - - first coordinatecoord2 - - second coordinatePoint getPoint(CoordinateReferenceSystem crs, double coord1, double coord2, double coord3)
crs - the required coordinate reference systemcoord1 - - first coordinatecoord2 - - second coordinatecoord3 - - third coordinatePoint getPoint(CoordinateReferenceSystem crs, double... coordinates)
crs - the required coordinate reference systemcoordinates - coordinatesPoint getPoint(double longitude, double latitude)
longitude - latitude - MultiGeometry getMultiGeometry(java.lang.Iterable<Geometry> geometries)
geometries - MultiGeometry getMultiGeometry(Geometry... geometries)
geometries - MultiPoint getMultiPoint(Point... points)
points - MultiPoint getMultiPoint(java.lang.Iterable<Point> points)
points - MultiPolygon getMultiPolygon(Polygon... polygons)
polygons - MultiPolygon getMultiPolygon(java.lang.Iterable<Polygon> polygons)
polygons - MultiLinearRing getMultiLinearRing(LinearRing... linearRings)
linearRings - MultiLinearRing getMultiLinearRing(java.lang.Iterable<LinearRing> linearRings)
linearRings - MultiLineString getMultiLineString(LineString... lineStrings)
lineStrings - MultiLineString getMultiLineString(java.lang.Iterable<LineString> lineStrings)
lineStrings - BBox getBoundingBox(Point lowerLeft, Point topRight)
lowerLeft - topRight - Surface getPolygonalRepresentation(BBox bBOx)
bBOx - java.util.List<Point> coordsToPoints(CoordinateReferenceSystem crs, double[][] coords)
crs - coordinate reference systemcoords - 2-dimensional array of coordinates. An coords[i] element is an array of coordinates for the i-th pointjava.util.List<Point> coordsToPoints(double[][] coords)
coords - 2-dimensional array of coordinates. An coords[i] element is an array of coordinates for the i-th pointPoint[] coordsToPointsArray(CoordinateReferenceSystem crs, double[][] coords)
crs - coordinate reference systemcoords - 2-dimensional array of coordinates. An coords[i] element is an array of coordinates for the i-th pointPoint[] coordsToPointsArray(double[][] coords)
crs - coordinate reference systemcoords - 2-dimensional array of coordinates. An coords[i] element is an array of coordinates for the i-th point© Copyright IBM 2017