Skip to content

Allow usage of same area of interest in Query layer #11461

@offtherailz

Description

@offtherailz

Description

The layer filter query layers section should allow to use same area of interest of the filter. An optional checkbox allow to use or not use it.

Image

Acceptance criteria

  • When the user selects the details in query layer so the filter appears, also the row above should be shown
  • The tooltips says "use the same area of interest of the layer", checked by default
  • The fitler translates in a cql filter with the geometry passed in teh usual function.
  • If the area of filter is not activated, the new tool should be disabled or not visible at all.

Other useful information

E.g.

This panel setup includes an attribute filter on layer, a spatial filter and a query layer filter

Image

The resulting filter is this


("LAND_KM" > '100000') AND (INTERSECTS("the_geom",SRID=3857;Polygon((-8927384.792083556 5548520.42219657, -8927384.792083556 4516391.229261836, -7836551.961425807 4516391.229261836, -7836551.961425807 5548520.42219657, -8927384.792083556 5548520.42219657)))) AND (INTERSECTS(the_geom,collectGeometries(queryCollection('gs:ny_landmarks', 'the_geom','("LANAME"=''American Museum of Natural His'')'))))

You can notice that `queryCollection has a 3rd argument that is a filter

("LANAME"=''American Museum of Natural His'')

With the new tool, when the tool is active, the filter should contain also the spatial filter already drawn, so something like

("LANAME"=''American Museum of Natural His'') AND (INTERSECTS("the_geom",SRID=3857;Polygon((-8927384.792083556 5548520.42219657, -8927384.792083556 4516391.229261836, -7836551.961425807 4516391.229261836, -7836551.961425807 5548520.42219657, -8927384.792083556 5548520.42219657))))

With the new tool, the

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions