com.supermap.web.iServerJava2
public class ServerGeometry
继承 ServerGeometry Inheritance Object

服务端几何对象类. 该类用于描述几何对象(矢量)的特征数据(坐标点对、 几何对象的类型等)以及相关的处理方法。几何对象通常可用于空间分析、空间关系运算、缓冲区查询分析等。该类所表达的几何对象仅包含空间信息、形状信息等,并不包括属性信息。



公共属性
  属性 定义方
    feature : int
获取或设置服务端几何对象的类型。包括点、线、多边形、文本等常量。
ServerGeometry
    id : int
获取或设置服务端几何对象唯一标识符。
ServerGeometry
    parts : Array
获取或设置描述几何对象中各个子对象所包含的节点数量的数组。.
ServerGeometry
    point2Ds : Array
获取或设置组成几何对象的节点的坐标对数组.
ServerGeometry
公共方法
  方法 定义方
   
初始化 ServerGeometry 类的新实例。
ServerGeometry
   
[static] 将客户端几何对象 Geometry 转换为服务端几何对象 ServerGeometry。
ServerGeometry
   
将服务端线对象转化为客户端的线对象 GeoLine。
ServerGeometry
   
[static] 将服务端几何对象 serverGeometry 转换为客户端的几何对象 Geometry。
ServerGeometry
   
将服务端点对象转换为客户端的点对象 GeoPoint。
ServerGeometry
   
将服务端面对象转化为客户端的面对象 GeoRegion。
ServerGeometry
属性详细信息
feature 属性
feature:int

获取或设置服务端几何对象的类型。包括点、线、多边形、文本等常量。


Implementation
    public function get feature():int
    public function set feature(value:int):void
id 属性  
id:int

获取或设置服务端几何对象唯一标识符。


Implementation
    public function get id():int
    public function set id(value:int):void
parts 属性  
parts:Array

获取或设置描述几何对象中各个子对象所包含的节点数量的数组。.

1.几何对象从结构上可以分为简单几何对象和复杂几何对象。简单几何对象与复杂几何对象的区别:
简单几何对象一般为单一对象,而复杂几何对象由多个简单对象组成或经过一定的空间运算之后产生,如:矩形为简单的区域对象,而中间为空的矩形为复杂的区域对象。
2.通常情况,一个简单几何对象的子对象就是它本身,因此对于简单对象来说该字段为长度为 1 的整型数组,该字段的值就是这个简单对象节点的个数。如果一个几何对象是由几个简单对象组合而成的,例如,一个岛状几何对象由 3 个简单的多边形组成而成,那么这个岛状的几何对象的 Parts 字段值就是一个长度为3的整型数组,数组中每个成员的值分别代表这三个多边形所包含的节点个数。


Implementation
    public function get parts():Array
    public function set parts(value:Array):void
point2Ds 属性  
point2Ds:Array

获取或设置组成几何对象的节点的坐标对数组.

1.几何对象从结构上可以分为简单几何对象和复杂几何对象。简单几何对象与复杂几何对象的区别:简单的几何对象一般为单一对象,而复杂几何对象由多个简单对象组成或经过一定的空间运算之后产生,如:矩形为简单的区域对象,而中空的矩形为复杂的区域对象。


Implementation
    public function get point2Ds():Array
    public function set point2Ds(value:Array):void
构造函数详细信息
ServerGeometry () 构造函数
public function ServerGeometry()

初始化 ServerGeometry 类的新实例。

方法详细描述
fromGeometry () 方法
public static function fromGeometry(geo:Geometry):ServerGeometry

将客户端几何对象 Geometry 转换为服务端几何对象 ServerGeometry。

参数

geo:Geometry

返回
ServerGeometry

另请参见

toGeoLine () 方法  
public function toGeoLine():GeoLine

将服务端线对象转化为客户端的线对象 GeoLine。

返回
GeoLine
toGeometry () 方法  
public static function toGeometry(serverGeometry:ServerGeometry):Geometry

将服务端几何对象 serverGeometry 转换为客户端的几何对象 Geometry。

参数

serverGeometry:ServerGeometry

返回
Geometry

另请参见

toGeoPoint () 方法  
public function toGeoPoint():GeoPoint

将服务端点对象转换为客户端的点对象 GeoPoint。

返回
GeoPoint
toGeoRegion () 方法  
public function toGeoRegion():GeoRegion

将服务端面对象转化为客户端的面对象 GeoRegion。

返回
GeoRegion