首页 / 浏览问题 / 云GIS / 问题详情
featureResults是否可以通过SQL查询模式获取某一点位的数据
1EXP 2023年08月16日
featureResults的SQL查询模式,有一个以空间几何函数为查询条件的示例,是否可以以点为筛选条件,如果可以attributeFilter如何编写,它的属性又该如何设置

let queryobj = {
"getFeatureMode": "SQL",
"datasetNames": dataSetNames,
"queryParameter":{
"sortClause":null,
"ids":null,
"name":null,
"attributeFilter":"ST_Intersects(basemap_p.smgeometry,st_geomfromgeojson('{\"type\":\"Point\",\"coordinates\":[117.39993002089765,40.0590434404588]}'))",
"groupClause":null,
"linkItems":null,
"joinItems":null,
"fields":null
}
// hasGeometry:false
};
问题关闭原因: 不需要了

1个回答

你好,如果是以点为筛选可以直接用空间查询方式即可,在数据服务的eatureResults可以做查询。

1,865EXP 2023年08月16日

尝试过使用空间查询方式,通过datasources的取了features中资源的一个Point2D X和Point2D Y的坐标作为参数进行传递,返回的featureResult结果为空

...