public class GeometryFunc extends Object
| Constructor and Description |
|---|
GeometryFunc() |
| Modifier and Type | Method and Description |
|---|---|
static void |
convertWkbType(int wkbType,
RefObject<GeometryType> refGeometryType,
RefObject<CoordinateType> refCoordinateType)
wkb几何类型转换
|
static IEnvelope |
createEnvelope(double xmin,
double ymin,
double xmax,
double ymax)
创建矩形
|
static IGeometry |
createGeometry(byte[] wkb)
根据wkb创建几何图形
|
static IGeometry |
createGeometry(String wkt)
根据wkt创建几何图形
|
static IGeometry |
createGeometryByObject(Object geometryObj)
根据几何对象创建
|
static IGeometry |
createGeometryFromHex(String hexStr)
根据16进制字符串创建几何图形
|
static IGeometry |
createGeometryFromJson(String geojson)
根据geojson创建几何图形
|
static IGeometry |
forceToLineString(IGeometry geom_in)
强制转换成线段
|
static IGeometry |
forceToMultiLineString(IGeometry geom_in)
强制转换成多线段
|
static IGeometry |
forceToMultiPolygon(IGeometry geom_in)
强制转换成多多边形
|
static IGeometry |
forceToPolygon(IGeometry geom_in)
强制转换成多边形
|
static IGeometry |
mergeGeometrys(List<IGeometry> geometryList)
多个同类型的几何合并成一个几何,但是内部不融合
|
static byte[] |
toEWkb(byte[] srcWkb,
int srid)
wkb转转成ewkb
|
public static IEnvelope createEnvelope(double xmin, double ymin, double xmax, double ymax)
xmin - xmax - ymin - ymax - public static IGeometry createGeometry(byte[] wkb)
wkb - public static IGeometry createGeometry(String wkt)
wkt - public static IGeometry createGeometryFromHex(String hexStr)
hexStr - public static IGeometry createGeometryFromJson(String geojson)
geojson - public static IGeometry createGeometryByObject(Object geometryObj)
geometryObj - public static void convertWkbType(int wkbType,
RefObject<GeometryType> refGeometryType,
RefObject<CoordinateType> refCoordinateType)
wkbType - refGeometryType - refCoordinateType - public static IGeometry mergeGeometrys(List<IGeometry> geometryList)
geometryList - public static IGeometry forceToPolygon(IGeometry geom_in)
geom_in - public static IGeometry forceToLineString(IGeometry geom_in)
geom_in - public static IGeometry forceToMultiPolygon(IGeometry geom_in)
geom_in - public static IGeometry forceToMultiLineString(IGeometry geom_in)
geom_in - public static byte[] toEWkb(byte[] srcWkb,
int srid)
srcWkb - srid - Copyright © 2025. All rights reserved.