public class geom extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AGGREGATE |
static int |
ARC |
static int |
CIRCLE |
static int |
CURVE |
static int |
D2 |
static int |
D2M |
static int |
D3 |
static int |
D3M |
static int |
ELLIPSE |
static int |
ELLIPTICARC |
static int |
GEOMETRY |
static int |
LINE |
static int |
MULTICURVE |
static int |
MULTILINE |
static int |
MULTIPOINT |
static int |
MULTIPOLYGON |
static int |
MULTISOLID |
static int |
MULTISURFACE |
static int |
NULL |
static int |
POINT |
static int |
POLYGON |
static int |
SOLID |
static int |
SPLINE |
static int |
SURFACE |
static int |
UNKNOWN |
Constructor and Description |
---|
geom() |
Modifier and Type | Method and Description |
---|---|
static Envelope |
createEnvelope(Object pointMax,
Object pointMin,
int dimension)
Returns envelope as a minimum bounding box or rectangle.
|
static Geometry |
createGeometry(int type,
int subtype)
Returns a new geometry with a concrete type and subtype or None if can't
create geometry.
|
static Geometry |
createGeometryFromWKT(String WKT)
Create geometry from WKT (Well Known Text)
|
static Geometry |
createLine(int subtype,
Object vertexes)
Returns a new line with a subtype from a list of Points instances or list
of coordinates as tuples/lists like ([x1, y1], [x2, y2], ...., [xn, yn]) are
allowed.
|
static Geometry |
createLine2D(Object vertexes)
Create a Line2D.
|
static Geometry |
createMultiLine(int subtype,
Object lines)
Returns a new multiline with a subtype from a list of Line instances or list
of coordinates.
|
static Geometry |
createMultiPoint(int subtype,
Object points)
Returns a new multipoint with a subtype from a list of Points instancesor list
of coordinates.
|
static Geometry |
createMultiPolygon(int subtype,
Object polygons)
Returns a new multipolygon with a subtype from a list of Polygon instances or list
of coordinates.
|
static Geometry |
createPoint(int subtype,
double... coords)
Returns a new point with a subtype and sets the value for the X, Y, Z and M
coordinates (default 0,0,0,0) or None if can't create point or none coordinates
are established.
|
static Geometry |
createPoint2D(double x,
double y,
int subtype)
Create a Point2D.
|
static Geometry |
createPolygon(int subtype,
Object vertexes)
Returns a new polygon with a subtype from a list of Points instances or list
of tuples/lists like [[x1, y1], [x2, y2], ...., [xn, yn]] are
allowed.
|
static Geometry |
createPolygon2D(Object vertexes)
Create a Polygon2D.
|
public static final int AGGREGATE
public static final int ARC
public static final int CIRCLE
public static final int CURVE
public static final int ELLIPSE
public static final int ELLIPTICARC
public static final int GEOMETRY
public static final int MULTICURVE
public static final int MULTIPOINT
public static final int MULTISOLID
public static final int MULTISURFACE
public static final int NULL
public static final int POINT
public static final int SOLID
public static final int SPLINE
public static final int SURFACE
public static final int POLYGON
public static final int LINE
public static final int MULTILINE
public static final int MULTIPOLYGON
public static final int D2
public static final int D2M
public static final int D3
public static final int D3M
public static final int UNKNOWN
public static Geometry createGeometry(int type, int subtype)
type:
- geometry typesubtype,
- optional: geometry subtypepublic static Geometry createPoint2D(double x, double y, int subtype)
vertexes,
- optional: vertexes of a new linepublic static Geometry createLine2D(Object vertexes)
vertexes,
- optional: vertexes of a new linepublic static Geometry createPolygon2D(Object vertexes)
vertexes,
- optional: vertexes of a new linepublic static Geometry createPoint(int subtype, double... coords)
subtype,
- geometry subtypecoords,
- list of coordinates or pointspublic static Geometry createMultiPoint(int subtype, Object points)
subtype,
- geometry subtypepoints,
- list of coordinates or pointspublic static Geometry createPolygon(int subtype, Object vertexes)
subtype,
- geometry subtypevertexes,
- list of coordinates or pointspublic static Geometry createMultiPolygon(int subtype, Object polygons)
subtype,
- geometry subtypepolygons,
- list of polygons.public static Geometry createLine(int subtype, Object vertexes)
subtype,
- geometry subtypevertexes,
- list of coordinates or pointspublic static Geometry createMultiLine(int subtype, Object lines)
subtype,
- geometry subtypelines,
- list of lines.public static Envelope createEnvelope(Object pointMax, Object pointMin, int dimension)
pointMax,
- optional, None by defaultpointMin,
- optional, None by defaultdimension
-