new GetFeaturesBySQLParameters(options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.GetFeaturesBySQLParameters(options);
  
  // 弃用的写法
  new SuperMap.GetFeaturesBySQLParameters(options);
</script>
// ES6 Import
import { GetFeaturesBySQLParameters } from '@supermap/iclient-leaflet';
new GetFeaturesBySQLParameters(options);
        
        
        | Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            
            Object | 
                
                 参数。 
  | 
        
Extends
Members
- 
    
aggregationsMetricsAggParameter GeoHashGridAggParameter
 - 
    
    
聚合查询参数,该参数仅支持数据来源 Elasticsearch 服务的Supermap iServer的rest数据服务。
 - 
    
datasetNameArray.<string>
 - 
    
    
数据集集合中的数据集名称列表。
 - 
    
fromIndexnumber
 - 
    
    
查询结果的最小索引号。如果该值大于查询结果的最大索引号,则查询结果为空。
 - 
    
getFeatureModestring
 - 
    
    
数据集查询模式。
 - 
    
hasGeometrynumber
 - 
    
    
返回结果是否包含Geometry。
- Default Value: true
 
 
maxFeaturesnumber
进行 SQL 查询时,用于设置服务端返回查询结果条目数量。
- Default Value: 1000
 
queryParameterFilterParameter
查询过滤条件参数类。
returnContentboolean
是否立即返回新创建资源的表述还是返回新资源的 URI。 如果为 true,则直接返回新创建资源,即查询结果的表述。 如果为 false,则返回的是查询结果资源的 URI。
- Default Value: true
 
returnCountOnlyboolean
只返回查询结果的总数。
targetEpsgCodestring
动态投影的目标坐标系对应的 EPSG Code,使用时需设置 returnContent 参数为 true。
targetPrjObject
动态投影的目标坐标系。使用时需设置 returnContent 参数为 true。如:prjCoordSys={"epsgCode":3857}。当同时设置 targetEpsgCode 参数时,此参数不生效。
toIndexnumber
查询结果的最大索引号。如果该值大于查询结果的最大索引号,则以查询结果的最大索引号为终止索引号。
- Default Value: 19
 
Methods
- 
    
inherited destroy()
common/iServer/GetFeaturesBySQLParameters.js, line 44 - 
    
    
释放资源,将引用资源的属性置空。
 - 
    
toJsonParameters(params){string}
common/iServer/GetFeaturesBySQLParameters.js, line 58 - 
    
    
将 GetFeaturesBySQLParameters 对象转换为 JSON 字符串。
Name Type Description paramsGetFeaturesBySQLParameters 数据集 SQL 查询参数对象。
Returns:
Type Description string 转化后的 JSON 字符串。