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

[RFC] Save custom geometries created with the SpatialFilter #476

Closed
efernandezleon opened this issue Oct 5, 2022 · 2 comments
Closed

[RFC] Save custom geometries created with the SpatialFilter #476

efernandezleon opened this issue Oct 5, 2022 · 2 comments

Comments

@efernandezleon
Copy link

Target Use Case

A very common feature requested by customers in PS is the ability to create custom geometries to filter data and then, reuse those geometries later to apply the filters. Right now, the functionality of creating a custom geometry is built thanks to the FeatureSelectionLayer, but the shape is lost once the user removes it. This RFC exposes the need to provide the user the ability to save this shape with a name to be used in the following sessions.

Implementation Proposal

A possible implementation could be to assign a name to the geojson of the drawn shape and store in a remote component through a specific API. This API should provide the CRUD actions to operate with this entities.

Another possible implementation could be store those custom geometries in the local storage of the browser. The cons here is that you won't share these geometries with others users in the app, but the main pro is related to lack of a specific backend for this.

@padawannn
Copy link
Contributor

#480 (comment)

@alasarr
Copy link
Contributor

alasarr commented Oct 22, 2022

For me, this is a duplicate of #482 (comment).

The spatial filter should be treated as any other filter.

I'm closing this issue @efernandezleon, feel free to reopen if needed

@alasarr alasarr closed this as completed Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants