包 | com.supermap.web.ogc.wfs |
类 | public class SpatialRect |
继承 | SpatialRect ![]() ![]() ![]() |
该类用于定义 GetWFSFeature 类的过滤查询条件,目的是为了查找指定范围内的要素,不包含相交。当空间关系类型(type 属性)设为 SpatialType.BBOX 时使用此类。范例代码如下:
var spatial:SpatialRect = new SpatialRect();
spatial.type = SpatialType.BBOX;
spatial.propertyName = "the_geom";
spatial.value = new Rectangle2D(-80,-40,-10,40);
另请参见
属性 | 定义方 | ||
---|---|---|---|
![]() |
propertyName : String
存储要素几何信息的字段名称,相等于 WFSFeatureDescription.spatialProperty 属性值。
|
Spatial | |
![]() |
type : String
空间运算类型,由 SpatialType 枚举类定义。
|
Spatial | |
value : Rectangle2D
指定的查询范围。
|
SpatialRect |
方法 | 定义方 | ||
---|---|---|---|
实例化 SpatialRect 对象。
|
SpatialRect | ||
![]() |
Spatial | ||
![]() |
GetPointsStr(ps:Array):String
|
Spatial | |
![]() |
GetSinglePointStr(p:Point2D):String
|
Spatial |
value | 属性 |
value:Rectangle2D
指定的查询范围。
public function get value():Rectangle2D
public function set value(value:Rectangle2D):void
SpatialRect | () | 构造函数 |
public function SpatialRect()
实例化 SpatialRect 对象。