com.supermap.web.iServerJava6R.dataServices
public class GetFeaturesByGeometryParameters
继承 GetFeaturesByGeometryParameters Inheritance GetFeaturesParametersBase Inheritance Object

数据集几何查询参数类.

几何查询就是查询与指定几何对象符合一定空间关系的矢量要素。该类主要用于设置对数据集进行几何查询的参数,包括几何对象、空间关系、要查询的数据集集合等。



公共属性
  属性 定义方
    attributeFilter : String
几何查询属性过滤条件,相当于 SQL 语句中的 WHERE 子句.
GetFeaturesByGeometryParameters
  Inherited datasetNames : Array
数据集名称数组,必设参数。对于数据集 SQL 查询(GetFeaturesBySQLService),若在查询参数类 GetFeaturesBySQLParameters 中设置了 datasetNames 属性,GetFeaturesBySQLParameters.filerParameters 中的 name 属性无效...
GetFeaturesParametersBase
    fields : Array
设置结果返回字段.
GetFeaturesByGeometryParameters
  Inherited fromIndex : int
获取或设置返回对象的起始索引值。默认值为 0,表示从第一个对象开始返回.
GetFeaturesParametersBase
    geometry : Geometry
用于几何查询的几何对象,必设参数。
GetFeaturesByGeometryParameters
    spatialQueryMode : String
空间查询模式常量,必设参数。
GetFeaturesByGeometryParameters
  Inherited toIndex : int
获取或设置返回对象的终止索引值。默认值为 19,表示终止索引指向数组的第 20 个对象,当该值为 -1 时,表示返回全部对象...
GetFeaturesParametersBase
公共方法
  方法 定义方
   
初始化 GetFeaturesByGeometryParameters 类的新实例。
GetFeaturesByGeometryParameters
属性详细信息
attributeFilter 属性
attributeFilter:String

几何查询属性过滤条件,相当于 SQL 语句中的 WHERE 子句.

其格式为:WHERE <条件表达式>,attributeFilter 就是其中的“条件表达式”。该字段的用法为 attributeFilter = "过滤条件"。
例如,要查询字段 fieldValue 小于100的记录,设置 attributeFilter = "fieldValue < 100";要查询字段 name 的值为“酒店”的记录,设置 attributeFilter = "name like '%酒店%'",等等。
用户在设置该字段时,仅需要输入“条件表达式”即可,如:fieldValue < 100。
若不设置该属性则返回与指定几何对象符合某种空间关系的所有要素。


Implementation
    public function get attributeFilter():String
    public function set attributeFilter(value:String):void
fields 属性  
fields:Array

设置结果返回字段.

当指定了返回结果字段后,则 GetFeaturesResult 中的 features 的属性字段只包含所指定的字段。不设置即返回全部字段。


Implementation
    public function get fields():Array
    public function set fields(value:Array):void

另请参见

geometry 属性  
geometry:Geometry

用于几何查询的几何对象,必设参数。


Implementation
    public function get geometry():Geometry
    public function set geometry(value:Geometry):void
spatialQueryMode 属性  
spatialQueryMode:String

空间查询模式常量,必设参数。


Implementation
    public function get spatialQueryMode():String
    public function set spatialQueryMode(value:String):void

另请参见

构造函数详细信息
GetFeaturesByGeometryParameters () 构造函数
public function GetFeaturesByGeometryParameters()

初始化 GetFeaturesByGeometryParameters 类的新实例。