Skip to content

gpf_wfs_get_features - ensure that it doesn't returns huge geometries (4Mo) in cql_filter #151

Description

@mborne

Problem

When a reference to huge geometries is involved in spatial filter, the generated CQL_FILTER is huge.

Example

  • typename: 'BDTOPO_V3:zone_d_activite_ou_d_interet' (or any other one)
  • 'spatial_intersects_feature':
    • typename="ADMINEXPRESS-COG.LATEST:departement"
    • feature_id='departement.55' (Vendée, ~4Mo)

Actions

Ensure that gpf_wfs_get_features doesn't use suchs geometries to produce cql_filter by :

  • Returning an error (like : "Filtering geometry is not adapted for LLM usage (too many points : ...)") - BUG-FIX
  • Using a simplified version of the geometry (TopologyPreservingSimplifier + coordinate truncating) - ENHANCEMENT

Note

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions