public class Geometries extends Object
Geometrys
This Factory allows generically creating Geometries
| Constructor and Description |
|---|
Geometries() |
| Modifier and Type | Method and Description |
|---|---|
static <P extends Position> |
mkEmptyGeometry(GeometryType gtype,
CoordinateReferenceSystem<P> crs)
Creates an Empty geometry for the specified
GeometryType |
static <P extends Position> |
mkEmptyGeometryCollection(CoordinateReferenceSystem<P> crs)
Creates an empty
GeometryCollection for a coordinate reference system |
static <P extends Position> |
mkEmptyLineString(CoordinateReferenceSystem<P> crs)
Creates an empty
LineString for a coordinate reference system |
static <P extends Position> |
mkEmptyMultiLineString(CoordinateReferenceSystem<P> crs)
Creates an empty
MultiLineString for a coordinate reference system |
static <P extends Position> |
mkEmptyMultiPoint(CoordinateReferenceSystem<P> crs)
Creates an empty
MultiPoint for a coordinate reference system |
static <P extends Position> |
mkEmptyMultiPolygon(CoordinateReferenceSystem<P> crs)
Creates an empty
MultiPolygon for a coordinate reference system |
static <P extends Position> |
mkEmptyPoint(CoordinateReferenceSystem<P> crs)
Creates an empty
Point for a coordinate reference system |
static <P extends Position> |
mkEmptyPolygon(CoordinateReferenceSystem<P> crs)
Creates an empty
Polygon for a coordinate reference system |
static <Q extends Position> |
mkGeometry(Class<?> geometryClass,
CoordinateReferenceSystem<Q> crs) |
static <P extends Position> |
mkGeometry(Class<?> geometryClass,
Geometry<P>... parts) |
static <P extends Position> |
mkGeometry(Class<?> geometryClass,
List<Geometry<P>> parts) |
static <P extends Position> |
mkGeometry(Class<?> geometryClass,
PositionSequence<P> positions,
CoordinateReferenceSystem<P> crs) |
static <P extends Position> |
mkGeometryCollection(Geometry<P>... geometries) |
static <P extends Position> |
mkGeometryCollection(List<Geometry<P>> geometries) |
static <P extends Position> |
mkLinearRing(PositionSequence<P> seq,
CoordinateReferenceSystem<P> crs)
Creates a
LinearRing from a PositionSequence and coordinate reference system |
static <P extends Position> |
mkLineString(PositionSequence<P> seq,
CoordinateReferenceSystem<P> crs)
Creates a
LineString from a PositionSequence and coordinate reference system |
static <P extends Position> |
mkMultiLineString(LineString<P>... linestrings) |
static <P extends Position> |
mkMultiLineString(List<LineString<P>> lineStrings) |
static <P extends Position> |
mkMultiPoint(List<Point<P>> points) |
static <P extends Position> |
mkMultiPoint(Point<P>... points) |
static <P extends Position> |
mkMultiPoint(PositionSequence<P> positions,
CoordinateReferenceSystem<P> crs) |
static <P extends Position> |
mkMultiPolygon(List<Polygon<P>> polygons) |
static <P extends Position> |
mkMultiPolygon(Polygon<P>... polygons) |
static <P extends Position> |
mkPoint(P pos,
CoordinateReferenceSystem<P> crs)
Creates a
Point from a Position and coordinate reference system |
static <P extends Position> |
mkPolygon(LinearRing<P>... rings) |
static <P extends Position> |
mkPolygon(List<LinearRing<P>> rings) |
public static <P extends Position> Point<P> mkEmptyPoint(CoordinateReferenceSystem<P> crs)
Point for a coordinate reference systemP - the type of Positioncrs - the coordinate reference system for the created PointPoint with the specified coordinate reference systempublic static <P extends Position> LineString<P> mkEmptyLineString(CoordinateReferenceSystem<P> crs)
LineString for a coordinate reference systemP - the type of Positioncrs - the coordinate reference system for the created LineStringLineString with the specified coordinate reference systempublic static <P extends Position> Polygon<P> mkEmptyPolygon(CoordinateReferenceSystem<P> crs)
Polygon for a coordinate reference systemP - the type of Positioncrs - the coordinate reference system for the created PolygonPolygon with the specified coordinate reference systempublic static <P extends Position> MultiPoint<P> mkEmptyMultiPoint(CoordinateReferenceSystem<P> crs)
MultiPoint for a coordinate reference systemP - the type of Positioncrs - the coordinate reference system for the created MultiPointMultiPoint with the specified coordinate reference systempublic static <P extends Position> MultiLineString<P> mkEmptyMultiLineString(CoordinateReferenceSystem<P> crs)
MultiLineString for a coordinate reference systemP - the type of Positioncrs - the coordinate reference system for the created MultiLineStringMultiLineString with the specified coordinate reference systempublic static <P extends Position> MultiPolygon<P> mkEmptyMultiPolygon(CoordinateReferenceSystem<P> crs)
MultiPolygon for a coordinate reference systemP - the type of Positioncrs - the coordinate reference system for the created MultiPolygonMultiPolygon with the specified coordinate reference systempublic static <P extends Position> GeometryCollection<P> mkEmptyGeometryCollection(CoordinateReferenceSystem<P> crs)
GeometryCollection for a coordinate reference systemP - the type of Positioncrs - the coordinate reference system for the created GeometryCollectionGeometryCollection with the specified coordinate reference systempublic static <P extends Position> Geometry<P> mkEmptyGeometry(GeometryType gtype, CoordinateReferenceSystem<P> crs)
GeometryTypeP - the type of Positiongtype - the type to createcrs - the coordinate reference systempublic static <P extends Position> Point<P> mkPoint(P pos, CoordinateReferenceSystem<P> crs)
Point from a Position and coordinate reference systemP - the type of Positionpos - the position for the created Pointcrs - the coordinate reference system for the created PointPoint with the specified position and coordinate reference systempublic static <P extends Position> LineString<P> mkLineString(PositionSequence<P> seq, CoordinateReferenceSystem<P> crs)
LineString from a PositionSequence and coordinate reference systemP - the type of Positionseq - the PositionSequence for the created LineStringcrs - the coordinate reference system for the created LineStringLineString with the specified positions and coordinate reference systempublic static <P extends Position> LinearRing<P> mkLinearRing(PositionSequence<P> seq, CoordinateReferenceSystem<P> crs)
LinearRing from a PositionSequence and coordinate reference systemP - the type of Positionseq - the PositionSequence for the created LinearRingcrs - the coordinate reference system for the created LinearRingLinearRing with the specified positions and coordinate reference systempublic static <P extends Position> Polygon<P> mkPolygon(LinearRing<P>... rings)
public static <P extends Position> Polygon<P> mkPolygon(List<LinearRing<P>> rings)
public static <P extends Position> GeometryCollection<P> mkGeometryCollection(Geometry<P>... geometries)
public static <P extends Position> GeometryCollection<P> mkGeometryCollection(List<Geometry<P>> geometries)
public static <P extends Position> MultiPoint<P> mkMultiPoint(Point<P>... points)
public static <P extends Position> MultiPoint<P> mkMultiPoint(List<Point<P>> points)
public static <P extends Position> MultiPoint<P> mkMultiPoint(PositionSequence<P> positions, CoordinateReferenceSystem<P> crs)
public static <P extends Position> MultiLineString<P> mkMultiLineString(List<LineString<P>> lineStrings)
public static <P extends Position> MultiLineString<P> mkMultiLineString(LineString<P>... linestrings)
public static <P extends Position> MultiPolygon<P> mkMultiPolygon(Polygon<P>... polygons)
public static <P extends Position> MultiPolygon<P> mkMultiPolygon(List<Polygon<P>> polygons)
public static <P extends Position> Geometry<P> mkGeometry(Class<?> geometryClass, PositionSequence<P> positions, CoordinateReferenceSystem<P> crs)
public static <P extends Position> Geometry<P> mkGeometry(Class<?> geometryClass, Geometry<P>... parts)
public static <Q extends Position> Geometry<Q> mkGeometry(Class<?> geometryClass, CoordinateReferenceSystem<Q> crs)
Copyright © 2021 geolatte.org. All rights reserved.