首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >跨层过滤扩展(超过2个过滤器查询)无法工作。

跨层过滤扩展(超过2个过滤器查询)无法工作。
EN

Stack Overflow用户
提问于 2016-03-03 11:26:48
回答 1查看 775关注 0票数 0

我有一个如下的查询

代码语言:javascript
复制
http://localhost:8080/geoserver/wfs/?service=wfs&version=1.1.0&outputFormat=json&request=getfeature&typename=tiger:poly_landmarks,tiger:poi&cql_filter=INTERSECTS(the_geom, querySingle('tiger:poly_landmarks', 'the_geom','LAND=83','CFCC=H11'))

它提供了三个特征

代码语言:javascript
复制
    {
"type": "FeatureCollection"
"totalFeatures": 3
"features": [3]
0:  {
"type": "Feature"
"id": "poly_landmarks.3"
...More

但是,如果我在querySingle 'LANAME=East河‘中再添加一个过滤器,如下所示

代码语言:javascript
复制
http://localhost:8080/geoserver/wfs/?service=wfs&version=1.1.0&outputFormat=json&request=getfeature&typename=tiger:poly_landmarks,tiger:poi&cql_filter=INTERSECTS(the_geom, querySingle('tiger:poly_landmarks', 'the_geom','LAND=83','CFCC=H11','LANAME=East River'))

说错话

代码语言:javascript
复制
<ows:ExceptionReport version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>Could not parse CQL filter list. Function not found. Parsing : INTERSECTS(the_geom, querySingle('tiger:poly_landmarks', 'the_geom','LAND=83','CFCC=H11','LANAME=East River')).</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-03 14:01:19

对于文档,querySingle似乎只使用3个参数,这样您的方式就行不通了。我怀疑(即我还没有在这个上下文中测试这一点)您可以通过使用CQL滤波器构建一个更复杂的AND。所以我会尝试

代码语言:javascript
复制
 querySingle('tiger:poly_landmarks', 'the_geom','LAND=83 AND CFCC=H11 AND LANAME=East River'))
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35770912

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档