Hi all,
I'm interested in running one query which would return a list of ids or
attributes that I could look up quickly against another layer.
The cross-layer filtering[1] is getting me close, but not quite there,
and I wanted to ask for any suggestions that I'm missing.
To look up a one-off, I can do something like this with 'querySingle'
idAttribute = querySingle('layer', 'idAttribute', /filter/)
Unfortunately, trying to do the same with 'queryCollection' does not
work. One would want something like...
idAttribute = queryCollection('layer', 'idAttribute', /filter/) or
in(idAttribute, queryCollection('layer', 'idAttribute', /filter/)) to work.
I tried 'inArray', but that didn't quite do what I wanted.
First, am I missing an obvious solution?
Second, assuming that I'm not and need to write some code... How do the
querySingle/queryCollection filters get evaluated? Are they being
evaluated by the GT SimplifyingFilterVisitor? If so, could I gin up an
'inCollection' function which would evaluate inCollection(attribute,
evaluatedQueryCollection) in an InFilter object?
Thanks in advance,
Jim
1.
https://docs.geoserver.org/stable/en/user/extensions/querylayer/index.html
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users