public final class GeometryUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GeometryUtils.DimensionSystemTarget
Converter output target that determines minimal dimension system for a
geometry.
|
static class |
GeometryUtils.EnvelopeAndDimensionSystemTarget
Converter output target that calculates an envelope and determines the
minimal dimension system.
|
static class |
GeometryUtils.EnvelopeTarget
Converter output target that calculates an envelope.
|
static class |
GeometryUtils.Target
Converter output target.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DIMENSION_SYSTEM_XY
Code of 2D (XY) dimension system.
|
static int |
DIMENSION_SYSTEM_XYM
Code of M (XYM) dimension system.
|
static int |
DIMENSION_SYSTEM_XYZ
Code of Z (XYZ) dimension system.
|
static int |
DIMENSION_SYSTEM_XYZM
Code of ZM (XYZM) dimension system.
|
static int |
GEOMETRY_COLLECTION
GEOMETRYCOLLECTION geometry type.
|
static int |
LINE_STRING
LINESTRING geometry type.
|
static int |
M
Number of M coordinate.
|
static int |
MAX_X
Maximum X coordinate index.
|
static int |
MAX_Y
Maximum Y coordinate index.
|
static int |
MIN_X
Minimum X coordinate index.
|
static int |
MIN_Y
Minimum Y coordinate index.
|
static int |
MULTI_LINE_STRING
MULTILINESTRING geometry type.
|
static int |
MULTI_POINT
MULTIPOINT geometry type.
|
static int |
MULTI_POLYGON
MULTIPOLYGON geometry type.
|
static int |
POINT
POINT geometry type.
|
static int |
POLYGON
POLYGON geometry type.
|
static int |
X
Number of X coordinate.
|
static int |
Y
Number of Y coordinate.
|
static int |
Z
Number of Z coordinate.
|
| Modifier and Type | Method and Description |
|---|---|
static double[] |
getEnvelope(byte[] ewkb)
Calculates an envelope of a specified geometry.
|
static boolean |
intersects(double[] envelope1,
double[] envelope2)
Checks whether two envelopes intersect with each other.
|
static double[] |
union(double[] envelope1,
double[] envelope2)
Returns union of two envelopes.
|
public static final int POINT
public static final int LINE_STRING
public static final int POLYGON
public static final int MULTI_POINT
public static final int MULTI_LINE_STRING
public static final int MULTI_POLYGON
public static final int GEOMETRY_COLLECTION
public static final int X
public static final int Y
public static final int Z
public static final int M
public static final int DIMENSION_SYSTEM_XY
public static final int DIMENSION_SYSTEM_XYZ
public static final int DIMENSION_SYSTEM_XYM
public static final int DIMENSION_SYSTEM_XYZM
DIMENSION_SYSTEM_XYZ and DIMENSION_SYSTEM_XYM using
bitwise OR.public static final int MIN_X
public static final int MAX_X
public static final int MIN_Y
public static final int MAX_Y
public static double[] getEnvelope(byte[] ewkb)
ewkb - EWKB of a geometrypublic static boolean intersects(double[] envelope1,
double[] envelope2)
envelope1 - first envelope, or nullenvelope2 - second envelope, or nullpublic static double[] union(double[] envelope1,
double[] envelope2)
envelope1 - first envelope, or nullenvelope2 - second envelope, or null