public interface IGeometry
| Modifier and Type | Method and Description |
|---|---|
IGeometry |
buffer(double distance)
缓冲
|
void |
changeDimension(CoordinateType coordinateType)
修改几何维度
|
IGeometry |
clone()
克隆几何对象
|
boolean |
contains(IGeometry otherGeo)
是否包含
|
boolean |
crosses(IGeometry otherGeo)
是否Crosses
|
IGeometry |
difference(IGeometry otherGeo)
求异
|
boolean |
disjoint(IGeometry otherGeo)
是否Disjoint
|
boolean |
equals(IGeometry otherGeo)
是否Equals
|
double |
getArea()
获取几何图形面积
|
Coordinate |
getCentroid()
获取几何质心
不一定位于几何上
|
CoordinateType |
getCoordinateType()
获取坐标类型
|
IEnvelope |
getEnvelope()
获取外接矩形
|
double |
getLenth()
获取几何图形长度
|
Object |
getObject() |
Coordinate |
getPointOnSurface()
获取一个保证位于几何上的点
|
GeometryType |
getType()
获取几何类型
|
IGeometry |
intersection(IGeometry otherGeo)
求叠加部分
|
boolean |
intersects(IGeometry otherGeo)
是否相交
|
boolean |
isEmpty()
是否为空
|
boolean |
isValid()
几何是否有效
|
IGeometry |
makeValid()
修复几何
|
boolean |
overlaps(IGeometry otherGeo)
是否Overlaps
|
boolean |
project(ISpatialReferenceSystem srcSystem,
ISpatialReferenceSystem tarSystem)
转换几何体的空间参考
|
IGeometry |
projectToCopy(ISpatialReferenceSystem srcSystem,
ISpatialReferenceSystem tarSystem)
转换几何体的空间参考
|
IGeometry |
simplify(double dTolerance)
简化几何
|
byte[] |
toEWkb(int srid)
转成ewkb
|
String |
toEWkt(int srid)
转成wkt
|
String |
toJson()
转成geojson
|
boolean |
touches(IGeometry otherGeo)
是否Touches
|
byte[] |
toWkb()
转成wkb
|
String |
toWkt()
转成wkt
|
IGeometry |
union(IGeometry otherGeo)
合并
|
boolean |
within(IGeometry otherGeo)
是否Within
|
Object getObject()
GeometryType getType()
CoordinateType getCoordinateType()
void changeDimension(CoordinateType coordinateType)
coordinateType - IEnvelope getEnvelope()
String toWkt()
String toEWkt(int srid)
srid - byte[] toWkb()
byte[] toEWkb(int srid)
srid - String toJson()
boolean isEmpty()
IGeometry clone()
boolean isValid()
IGeometry makeValid()
IGeometry simplify(double dTolerance)
dTolerance - double getArea()
double getLenth()
Coordinate getCentroid()
Coordinate getPointOnSurface()
IGeometry buffer(double distance)
distance - IGeometry projectToCopy(ISpatialReferenceSystem srcSystem, ISpatialReferenceSystem tarSystem)
srcSystem - tarSystem - boolean project(ISpatialReferenceSystem srcSystem, ISpatialReferenceSystem tarSystem)
srcSystem - tarSystem - boolean contains(IGeometry otherGeo)
otherGeo - boolean intersects(IGeometry otherGeo)
otherGeo - boolean crosses(IGeometry otherGeo)
otherGeo - boolean disjoint(IGeometry otherGeo)
otherGeo - boolean equals(IGeometry otherGeo)
otherGeo - boolean overlaps(IGeometry otherGeo)
otherGeo - boolean touches(IGeometry otherGeo)
otherGeo - boolean within(IGeometry otherGeo)
otherGeo - Copyright © 2025. All rights reserved.