FeatureEditor - Restrict editing by geojson area URL

53 views
Skip to first unread message
Assigned to tobia....@geosolutionsgroup.com by lorenzo...@geosolutionsgroup.com

gaetan....@gmail.com

unread,
Mar 11, 2024, 12:30:54 PM3/11/24
to mapstore-developers
Hi,

In georchestra, we can assign a geographical area to a user.

This area can be read by authenticated user with this service :

So, we would like to change the featureEditor plugin to allow to limit edition by a geojson area.

Technically, and to stay simple, we thing to insert a new FeatureEditor plugin config param that could be name "areaUrl".

This area URL will be called when the FeatureEditor will be activate on edit mode (first time only if possible).

Next, on each action, Turf.js (already install in mapstore2) will check that the action is carried out within the geographical perimeter.

What do you think of this development ? What advices would you offer to ease contribution ?

Thanks.

Gaetan B

tobia.dipisa

unread,
Jun 25, 2024, 4:24:18 AM6/25/24
to mapstore-developers
Dear Gaetan,

That's for sure an interesting addition. Thank you so much. Just a couple of things from my side:

- There should be a way to provide also the area in a raw format e.g. wkt and/or geojson
- Sooner or later, maybe not now within the first PR (to be discussed), this should be managed from UI 

Considering all the other threads in the ML aimed at supporting additional editing capabilities, in my opinion the direction we should start taking is to make all of them available (only by the admin maybe?) from the UI within a dedicated section (including things already existing). At least at a certain point that's for sure something that will need to be considered. Also here and if you can, let's maybe discuss further in a call before you raise a PR.

Best Regards,
      Tobia Di Pisa

gaetan....@gmail.com

unread,
Jun 25, 2024, 8:33:16 AM6/25/24
to mapstore-developers
Thanks for the feedback and time spent,

There should be a way to provide also the area in a raw format e.g. wkt and/or geojson

I've been thinking about that. But don't you think that geometry would take too much space in the configuration file ?

Like thumbUrl (for basemap preview), we needs to publish a file first and complete thumbURL prop next. So, I thought this was a classic mapstore operation.
 
- Sooner or later, maybe not now within the first PR (to be discussed), this should be managed from UI 

I thought it would be an evolution for the future (not requested in primary need). To be exchanged, of course.


Also here and if you can, let's maybe discuss further in a call before you raise a PR.

For sur ! Keep in touch by e-mail.

Regards,
Gaëtan B

harry cr7

unread,
Jun 25, 2024, 4:12:36 PM6/25/24
to mapstore-...@googlegroups.com
Hello
I think it is a good idea but from my understanding geoserver already does that job to restrict  geographical area to a user.  If he has the right the edit the data from Géoserver , he will only edit the part that he has access to 
It is what we call in french "Domaine de compétence"

Best Regard!

--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/4ba2c4ce-a2a3-4ab6-94e9-01c383d6198cn%40googlegroups.com.

Tobia Di Pisa

unread,
Jun 26, 2024, 3:35:24 AM6/26/24
to mapstore-...@googlegroups.com
Hi,

yes it is possible to do this if GeoFence is installed, of course, and that's the solution we usually adopt. But it is also true that in this case, simply following OGC specs, it is not possible to know the exact reason why a certain user is not allowed to perform a certain operation: a general notification is visualized by MS. Using GeoFence in combination with a feature like this on the MS side could  improve the current support. Something to discuss and review anyway.

Regards,
     Tobia Di Pisa



--


==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==
Dott. Ing. Tobia Di Pisa
Technical Lead / Project Manager


GeoSolutions Group
phone: +39 0584 962313

mobile: +39 340 1781783
fax:      +39 0584 1660272

https://www.geosolutionsgroup.com/
http://twitter.com/geosolutions_it
-------------------------------------------------------


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Reply all
Reply to author
Forward
0 new messages