WMS - 过滤器单层

WMS - Filter single layer

我正在尝试对 geoserver 进行 WMS 调用,这将创建一个包含 2 层 foo 和 bar 的图像(foo 是一个图层组);但是应根据 featureid 过滤栏。

当我只加载一个图层(例如 bar)时 - 我可以使用过滤方法 &featureid=bar.1 但是当您尝试加载多个图层(例如 foo 和 bar)时,同样的方法不起作用。

单层过滤器

http://localhost:8080/geoserver/foobar/wms?service=WMS&version=1.1.0&request=GetMap&layers=bar&featureid=bar.1&styles=&bbox=349335.379999999,248145.919999682,349354.569999999,248170.619999681&width=768&height=735&srs=EPSG:27700&format=text%2Fhtml%3B%20subtype%3Dopenlayers#toggle

当我运行:

http://localhost:8080/geoserver/foobar/wms?service=WMS&version=1.1.0&request=GetMap&layers=foo,bar&featureid=bar.1&styles=&bbox=349335.379999999,248145.919999682,349354.569999999,248170.619999681&width=768&height=735&srs=EPSG:27700&format=text%2Fhtml%3B%20subtype%3Dopenlayers#toggle

我收到一条错误消息,指出两个图层都需要过滤。关于如何加载多层但只加载过滤器 1 的任何想法?

干杯

确认是BUG,建议您开工单:https://osgeo-org.atlassian.net/projects/GEOS/summary