SuperMap. GetFeaturesBySQLParameters API

SuperMap. GetFeaturesBySQLParameters

數據服務中數據集SQL查詢參數類。

new SuperMap.GetFeaturesBySQLParameters(options)

common/iServer/GetFeaturesBySQLParameters.js, line 6

Name

Type

Description

options

Object

 

可選參數。如:

queryParameter - {SuperMap.FilterParameter} 查詢過濾條件參數。

datasetNames - {Array} 數據集集合中的數據集名稱列表。

returnContent - {boolean} 是否直接返回查詢結果。

fromIndex - {integer} 查詢結果的最小索引號。

toIndex - {integer} 查詢結果的最大索引號。

Extends

Members

datasetNameArray.<string>

數據集集合中的數據集名稱列表。

fromIndex integer

查詢結果的最小索引號。默認值是0,如果該值大於查詢結果的最大索引號,則查詢結果爲空。

maxFeatures integer

進行SQL查詢時,用於設置服務端返回查詢結果條目數量,默認爲1000。

returnContent boolean

是否立即返回新創建資源的表述還是返回新資源的URI。 如果爲 true,則直接返回新創建資源,即查詢結果的表述。 如果爲 false,則返回的是查詢結果資源的 URI。默認爲 true。

returnCountOnly boolean

只返回查詢結果的總數,默認爲false。

toIndex integer

查詢結果的最大索引號。默認值是19,如果該值大於查詢結果的最大索引號,則以查詢結果的最大索引號爲終止索引號。

Methods

inherited destroy()

common/iServer/GetFeaturesParametersBase.js, line 59

釋放資源,將引用資源的屬性置空。

getFeatureMode - {string}()

common/iServer/GetFeaturesBySQLParameters.js, line 22

數據集查詢模式。

toJsonParameters(params){string}

common/iServer/GetFeaturesBySQLParameters.js, line 53

將SuperMap.GetFeaturesBySQLParameters對象轉換爲JSON字符串。

Name

Type

Description

params

SuperMap.GetFeaturesBySQLParameters

數據集SQL查詢參數對象。

Returns:

Type

Description

string

轉化後的JSON字符串。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章