Skip to content

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

Merged
offtherailz merged 1 commit intogeosolutions-it:masterfrom
rowheat02:AOIfilteroncrosslayerquery
Oct 13, 2025
Merged

Allow usage of same area of interest in Query layer #11461#11579
offtherailz merged 1 commit intogeosolutions-it:masterfrom
rowheat02:AOIfilteroncrosslayerquery

Conversation

@rowheat02
Copy link
Copy Markdown
Contributor

Description

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Feature

fixes #11461

What is the current behavior?

#11461
Add area of interest for cross-layer filter too.

What is the new behavior?

  • user can enable and disable area of interest filter to be applied to the cross-layer filter too.
image

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

  • Area of interest filter is enabled by default.
  • Only applied when the Standard area of interest is selected for the layer.
  • User can also disable it

Some generated sample cql:

  • When the Standard Area of interest is selected

      ("isActive" = 'true')
      AND
      INTERSECTS(
        "the_geom",
        SRID=3857;
        POLYGON((
          -9156367.175772902 5112844.0245766295,
          -9156367.175772902 5003486.523671881,
          -9071082.561463717 5003486.523671881,
          -9071082.561463717 5112844.0245766295,
          -9156367.175772902 5112844.0245766295
        ))
      )
      AND
      INTERSECTS(
        the_geom,
        collectGeometries(
          queryCollection(
            'gs:us_states',
            'the_geom',
            "STATE_NAME" = 'Ohio'
            AND
            INTERSECTS(
              "the_geom",
              SRID=3857;
              POLYGON((
                -9156367.175772902 5112844.0245766295,
                -9156367.175772902 5003486.523671881,
                -9071082.561463717 5003486.523671881,
                -9071082.561463717 5112844.0245766295,
                -9156367.175772902 5112844.0245766295
              ))
            )
          )
        )
      )
    
  • When the Standard area of interest is not selected:

      ("isActive" = 'true')
      AND
      INTERSECTS(
        the_geom,
        collectGeometries(
          queryCollection(
            'gs:us_states',
            'the_geom',
            "STATE_NAME" = 'Ohio'
          )
        )
      )
    

@rowheat02 rowheat02 added this to the 2025.02.00 milestone Oct 13, 2025
@rowheat02 rowheat02 requested a review from offtherailz October 13, 2025 06:47
@rowheat02 rowheat02 added the New Feature used for new functionalities label Oct 13, 2025
@offtherailz offtherailz merged commit 0a3f861 into geosolutions-it:master Oct 13, 2025
6 checks passed
@tdipisa tdipisa added enhancement and removed New Feature used for new functionalities labels Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow usage of same area of interest in Query layer

3 participants