## Problem Geometries like ["ADMINEXPRESS-COG.LATEST:3Adepartement - Vendée"](https://data.geopf.fr/wfs?service=WFS&request=GetFeature&typeName=ADMINEXPRESS-COG.LATEST%3Adepartement&outputFormat=application%2Fjson&count=5&startIndex=0&cql_filter=code_insee%20LIKE%20%2785%27) are not adapted for AI usage. ## Proposal Ensure that `gpf_wfs_get_feature_by_id` doesn't returns suchs geometries by : - [ ] Returning an error ("geometry is not adapted for LLM usage (too many points : ...)") - [ ] Returning a simplified version of the geometry ([TopologyPreservingSimplifier ](https://github.com/bjornharrtell/jsts/blob/34166d7e96f2b1f3a099a20c9408741a9a7cacec/src/org/locationtech/jts/simplify/TopologyPreservingSimplifier.js#L8) + coordinate truncating) ## Notes - @MZellou what is the source for "admin units" in APITOPO? - @esgn We might ask GPF diffusion if they have very simplified version (like https://france-geojson.gregoiredavid.fr/ , built with Mapshaper) - Found an equivalent algo of [Mapshaper](https://github.com/mbloch/mapshaper#mapshaper) in PostGIS : [ST_CoverageSimplify](https://postgis.net/docs/ST_CoverageSimplify.html)
Problem
Geometries like "ADMINEXPRESS-COG.LATEST:3Adepartement - Vendée" are not adapted for AI usage.
Proposal
Ensure that
gpf_wfs_get_feature_by_iddoesn't returns suchs geometries by :Notes