com.supermap.web.ogc.wfs
public class SpatialGeometry
继承 SpatialGeometry Inheritance Spatial Inheritance Filter Inheritance Object

空间几何运算.

该类用于定义 GetWFSFeature 类的过滤查询条件,目的是为了查找与目标几何对象符合一定空间关系的要素。其中空间关系类型(type 属性)由 SpatialType 枚举类定义,当空间关系为非 SpatialType.BBOX 时使用此类。以相离关系(SpatialType.DISJOINT)为例,实现代码如下:
var spatial:SpatialGeometry = new SpatialGeometry();
spatial.type = SpatialType.Disjoint;
spatial.propertyName = "the_geom";
spatial.value = new GeoRegion();
spatial.value.addPart([new Point2D(-80,-40), new Point2D(-10,-40), new Point2D(-10,40), new Point2D(-80,40)]);

另请参见

GetWFSFeature.filters
SpatialType.BBOX
Spatial.type


公共属性
  属性 定义方
    distance : Number
查询距离。
SpatialGeometry
  Inherited propertyName : String
存储要素几何信息的字段名称,相等于 WFSFeatureDescription.spatialProperty 属性值。
Spatial
  Inherited type : String
空间运算类型,由 SpatialType 枚举类定义。
Spatial
    value : Geometry
参与空间运算的目标几何对象。
SpatialGeometry
公共方法
  方法 定义方
   
实例化 SpatialGeometry 对象。
SpatialGeometry
  Inherited
Spatial
  Inherited
GetPointsStr(ps:Array):String
Spatial
  Inherited
Spatial
属性详细信息
distance 属性
distance:Number

查询距离。


Implementation
    public function get distance():Number
    public function set distance(value:Number):void
value 属性  
value:Geometry

参与空间运算的目标几何对象。


Implementation
    public function get value():Geometry
    public function set value(value:Geometry):void
构造函数详细信息
SpatialGeometry () 构造函数
public function SpatialGeometry()

实例化 SpatialGeometry 对象。