Skip to content

Instantly share code, notes, and snippets.

@kylefelipe
Last active October 20, 2021 18:28
Show Gist options
  • Save kylefelipe/06321d5e32b5f6d0d1f41525db40afbc to your computer and use it in GitHub Desktop.
Save kylefelipe/06321d5e32b5f6d0d1f41525db40afbc to your computer and use it in GitHub Desktop.
GeoServer - extension issue - gs-querylayer

This is a issue using cross-layer filter provided by querylayer extension

Layers

LayerA - intersection_geom -> GEOMETRY, layer geometry;
LayerB - cd_bioma -> INTEGER, biome code; geom -> GEOMETRY, layer geometry;

CQL_Filter

intersects(intersection_geom, querySingle(layerB, 'geom', 'cd_bioma=1'))

ISSUE

Im trying to filter LayerA using LayerB geometry, but GS shows the message as follows:

code="internalError"Rendering process failed. Layers: LayerA  
PropertyDescriptor is null - did you request a property that does not exist?  

RESULT

The result shuld be polygons from LayerA that intersects with LayerB

VERSION

GS version: 2.20.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment