public class GeometryUtilities
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
GeometryUtilities.GeometryPointType |
限定符和类型 | 方法和说明 |
---|---|
static com.supermap.desktop.core.geometry.Abstract.IGeometry |
combination(com.supermap.desktop.core.geometry.Abstract.IGeometry target, com.supermap.mapping.Layer layer)
将指定图层选中的几何对象组合到 geometry 中
|
static com.supermap.data.Rectangle2D |
getBounds(com.supermap.data.Geometry... geometries)
获取对象的总范围
|
static com.supermap.data.Geometry |
getGeometryByDatasetType(com.supermap.data.DatasetType type)
根据类型创建对应的对象
|
static double |
getPerimeter(com.supermap.data.Geometry geometry)
根据对象类型获取周长
|
static int |
getVertexCount(com.supermap.data.Geometry geometry)
获得对象的结点个数
|
static com.supermap.data.Geometry |
intersect(com.supermap.data.Geometry geometry1, com.supermap.data.Geometry geometry2, boolean isDispose)
两个对象求交。
|
static com.supermap.data.Geometry |
intersect(com.supermap.mapping.Layer layer)
将指定图层的选中对象做求交处理
|
static boolean |
is3DGeometry(com.supermap.data.Geometry geometry)
判断是否是3D几何类型
|
static boolean |
isLineGeometry(com.supermap.data.Geometry geometry)
判断是否线特性对象
|
static boolean |
isPointGeometry(com.supermap.data.Geometry geometry)
判断是否点对象
|
static boolean |
isRegionGeometry(com.supermap.data.Geometry geometry)
判断是否面特性对象
|
static boolean |
isSamePoint2Ds(com.supermap.data.Point2Ds point2Ds1, com.supermap.data.Point2Ds point2Ds2)
判断2个point2Ds是否相等,必须节点数量和顺序一直才返回true
|
static boolean |
isSamePoint3Ds(com.supermap.data.Point3Ds point2Ds1, com.supermap.data.Point3Ds point2Ds2) |
static boolean |
isTextGeometry(com.supermap.data.Geometry geometry)
判断是否文本特性对象
|
static <T extends com.supermap.data.Geometry> |
releaseGeometry(T geometry)
销毁对象
|
static com.supermap.data.Point2Ds |
reverse(com.supermap.data.Point2Ds point2Ds)
将指定的 Point2Ds 反序
|
static com.supermap.data.Point3Ds |
reverse(com.supermap.data.Point3Ds point3Ds)
将指定的 Point3Ds 反序
|
static void |
setGeometryStyle(com.supermap.data.Geometry geometry, com.supermap.data.GeoStyle style)
设置几何对象风格
|
static com.supermap.data.Geometry |
union(com.supermap.data.Geometry geometry1, com.supermap.data.Geometry geometry2, boolean isdispose)
两个对象合并。
|
static com.supermap.data.Geometry |
union(com.supermap.mapping.Layer layer)
将指定图层的选中对象做合并处理
|
static com.supermap.data.Geometry |
xor(com.supermap.data.Geometry geometry1, com.supermap.data.Geometry geometry2, boolean isdispose)
两个对象异或。
|
public static boolean isPointGeometry(com.supermap.data.Geometry geometry)
public static boolean isRegionGeometry(com.supermap.data.Geometry geometry)
public static boolean isLineGeometry(com.supermap.data.Geometry geometry)
public static boolean isTextGeometry(com.supermap.data.Geometry geometry)
public static boolean is3DGeometry(com.supermap.data.Geometry geometry)
geometry
- 要判断的几何对象public static void setGeometryStyle(com.supermap.data.Geometry geometry, com.supermap.data.GeoStyle style)
public static boolean isSamePoint2Ds(com.supermap.data.Point2Ds point2Ds1, com.supermap.data.Point2Ds point2Ds2)
public static boolean isSamePoint3Ds(com.supermap.data.Point3Ds point2Ds1, com.supermap.data.Point3Ds point2Ds2)
public static com.supermap.data.Geometry intersect(com.supermap.data.Geometry geometry1, com.supermap.data.Geometry geometry2, boolean isDispose)
public static com.supermap.data.Geometry intersect(com.supermap.mapping.Layer layer)
public static com.supermap.data.Geometry union(com.supermap.data.Geometry geometry1, com.supermap.data.Geometry geometry2, boolean isdispose)
public static com.supermap.data.Geometry union(com.supermap.mapping.Layer layer)
public static com.supermap.data.Geometry xor(com.supermap.data.Geometry geometry1, com.supermap.data.Geometry geometry2, boolean isdispose)
public static com.supermap.desktop.core.geometry.Abstract.IGeometry combination(com.supermap.desktop.core.geometry.Abstract.IGeometry target, com.supermap.mapping.Layer layer)
public static com.supermap.data.Point2Ds reverse(com.supermap.data.Point2Ds point2Ds)
public static com.supermap.data.Point3Ds reverse(com.supermap.data.Point3Ds point3Ds)
public static <T extends com.supermap.data.Geometry> T releaseGeometry(T geometry)
public static com.supermap.data.Geometry getGeometryByDatasetType(com.supermap.data.DatasetType type)
public static com.supermap.data.Rectangle2D getBounds(com.supermap.data.Geometry... geometries)
geometries
- 对象public static double getPerimeter(com.supermap.data.Geometry geometry)
geometry
-public static int getVertexCount(com.supermap.data.Geometry geometry)
geometry
-