public final class EWKBUtils extends Object
This class provides limited support of EWKB. EWKB is based on Well-known Binary Representation (WKB) from OGC 06-103r4 and includes additional PostGIS extensions. This class can read dimension system marks in both OGC WKB and EWKB formats, but always writes them in EWKB format. SRID support from EWKB is implemented. As an addition POINT EMPTY is stored with NaN values as specified in OGC 12-128r15.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
EWKBUtils.EWKBTarget
Converter output target that writes a EWKB.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
EWKB_M
Geometry type mask that indicates presence of dimension M.
|
static int |
EWKB_SRID
Geometry type mask that indicates presence of SRID.
|
static int |
EWKB_Z
Geometry type mask that indicates presence of dimension Z.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
envelope2wkb(double[] envelope)
Converts an envelope to a WKB.
|
static byte[] |
ewkb2ewkb(byte[] ewkb)
Converts any supported EWKB to EWKB representation that is used by this
class.
|
static byte[] |
ewkb2ewkb(byte[] ewkb,
int dimensionSystem)
Converts any supported EWKB to EWKB representation that is used by this
class.
|
static int |
getDimensionSystem(byte[] ewkb)
Reads the dimension system from EWKB.
|
static void |
parseEWKB(byte[] ewkb,
GeometryUtils.Target target)
Parses a EWKB.
|
static int |
type2dimensionSystem(int type)
Converts geometry type with flags to a dimension system.
|
public static final int EWKB_Z
public static final int EWKB_M
public static final int EWKB_SRID
public static byte[] ewkb2ewkb(byte[] ewkb)
ewkb - source EWKBpublic static byte[] ewkb2ewkb(byte[] ewkb,
int dimensionSystem)
ewkb - source EWKBdimensionSystem - dimension systempublic static void parseEWKB(byte[] ewkb,
GeometryUtils.Target target)
ewkb - EWKB representationtarget - output targetpublic static int type2dimensionSystem(int type)
type - geometry type with flagspublic static int getDimensionSystem(byte[] ewkb)
ewkb - EWKBpublic static byte[] envelope2wkb(double[] envelope)
envelope - envelope, or nullCopyright © 2022. All rights reserved.