Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task - Generate simplified geometry on-the-fly for returned objets - study #143

Open
nick-rv opened this issue Nov 28, 2022 · 2 comments
Open
Assignees
Labels
enhancement New feature or request lod Level Of Detail simplify Geometry simplification TASK USER-STORY
Milestone

Comments

@nick-rv
Copy link
Collaborator

nick-rv commented Nov 28, 2022

  • a geometry simplification capability has to be planned for the returned objects in order to reduce response size

  • are concerned the responses with one feature or several features:

    • GET on a feature : /collections/{id}/items/{fid}
    • GET on a collection : /collections/{id}/items
    • GET on a collection with filter(s) ? : /collections/{id}/items
  • An URL parameter representing the simplification level (Level Of Detail) needs to be implemented :

    • -> name : max-allowable-offset according to Geometry Simplification extension opengeospatial/ogcapi-features#654
    • -> The value is in the units of the response coordinate reference system. (degree for 4326 SRID or meter for 2154 for example)
    • target function at postGIS level: geometry ST_Simplify(geometry geomA, float tolerance, boolean preserveCollapsed);
  • Are excluded from this functionality all POINT and MULTIPOINT features

  • Are concerned all the LINE / MULTILINE and POLYGON / MULTIPOLYGON features

OGC Feature discussions :
https://github.com/opengeospatial/ogcapi-features/projects/13?card_filter_query=label%3A%22part+n%3A+geometry+simplification%22
opengeospatial/ogcapi-features#654

@nick-rv nick-rv added enhancement New feature or request TASK USER-STORY simplify Geometry simplification labels Nov 28, 2022
@nick-rv nick-rv added this to the XP_FLUX milestone Nov 28, 2022
@nick-rv nick-rv self-assigned this Nov 28, 2022
@benoitdm-oslandia benoitdm-oslandia modified the milestones: XP_FLUX, 04_SPRINT Nov 30, 2022
@benoitdm-oslandia
Copy link
Owner

Please check Postgis doc

@benoitdm-oslandia benoitdm-oslandia modified the milestone: 04_SPRINT Dec 5, 2022
@benoitdm-oslandia benoitdm-oslandia moved this from 📋 Backlog to 🏗 In progress in OGC API - Features - Part 4 Dec 5, 2022
@nick-rv nick-rv added the lod Level Of Detail label Dec 7, 2022
@nick-rv nick-rv mentioned this issue Dec 8, 2022
2 tasks
@nick-rv nick-rv changed the title Task - implementation of the geometry simplification for returned objets Task - Generate simplified geometry on-the-fly for returned objets Dec 8, 2022
@benoitdm-oslandia benoitdm-oslandia changed the title Task - Generate simplified geometry on-the-fly for returned objets Task - Generate simplified geometry on-the-fly for returned objets - study Jan 30, 2023
@nick-rv
Copy link
Collaborator Author

nick-rv commented Feb 17, 2023

It seems interesting to mention that The orb package is currently used by pg_featureserv.
And it seems interesting to mention that this component provides a simplification function like postgis does : https://github.com/paulmach/orb/tree/master/simplify#dp
In the case we face performance issues or overload on the database, this could represent a solution.

@benoitdm-oslandia benoitdm-oslandia moved this from 🏗 In progress to ✅ Done in OGC API - Features - Part 4 Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lod Level Of Detail simplify Geometry simplification TASK USER-STORY
Projects
Status: Done
Development

No branches or pull requests

2 participants