public final class GeoJsonUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GeoJsonUtils.GeoJsonTarget
Converter output target that writes a GeoJson.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
ewkbToGeoJson(byte[] ewkb,
int dimensionSystem)
Converts EWKB with known dimension system to GeoJson.
|
static byte[] |
geoJsonToEwkb(byte[] json,
int srid)
Converts EWKB with known dimension system to GeoJson.
|
public static byte[] ewkbToGeoJson(byte[] ewkb,
int dimensionSystem)
ewkb - geometry object in EWKB formatdimensionSystem - dimension system of the specified object, may be the same or
smaller than its real dimension system. M dimension system is
not supported.DbException - on unsupported dimension systempublic static byte[] geoJsonToEwkb(byte[] json,
int srid)
json - geometry object in GeoJson formatsrid - the SRID of geometryDbException - on unsupported dimension systemCopyright © 2022. All rights reserved.