Small geometry processing #487

Closed
opened 2025-10-12 11:45:56 +02:00 by mpeltriaux · 4 comments
Owner

Status quo

If one of the geometries inside the GeomForm has <1m² area, it is detected as an error and the form is returned to the user holding the error message.

However, there are cases where extremely small geometry artefacts are present on the geometry, for example when the geometry is the result of some CAD cutting, where incredible small snippets are created, which result in the triggering of exactly that warning.

Improvement

There are three ways to deal with this:

  1. The user has to cleanse their geometry by themself (easiest way) and we do not change the way Konova works
  2. Konova should 'bloat' up these little geometries, until they are larger than 1m² (e.g. 1.5m²) and therefore become valid
    1. This approach supports user who would not understand that their hand drawn geometries are just way too small and what to do now (e.g. the drawing is supposed to be a tree or some other little thing)
    2. BUT this changes the geometry automatically! That might create 'wrong' geometries (from a user perspective), since they differ from what the user imported/drawed to the map
  3. Konova should still warn about too small geometries (somewhere in the range 1.0-0.75m²) but should remove everything that is even smaller than that. So we simply decide that all of these mini-mini-geometries are errors which should be cleansed from the geometry
    1. Same pros and cons as on approach 2

Whatever approach is used: there should be an information message for the user after the form has been processed and the geometry is saved. Something like "Ihre Geometrie wurde automatisch von KSP angepasst um Kleinstfehler zu entfernen. Bitte überprüfen Sie das Ergebnis".

@tnette @mmueller
Asking for fachliche Entscheidung on this. 😃

# Status quo If one of the geometries inside the GeomForm has <1m² area, it is detected as an error and the form is returned to the user holding the error message. However, there are cases where extremely small geometry artefacts are present on the geometry, for example when the geometry is the result of some CAD cutting, where incredible small snippets are created, which result in the triggering of exactly that warning. # Improvement There are three ways to deal with this: 1. The user has to cleanse their geometry by themself (easiest way) and we do not change the way Konova works 1. Konova should 'bloat' up these little geometries, until they are larger than 1m² (e.g. 1.5m²) and therefore become valid 1. This approach supports user who would not understand that their hand drawn geometries are just way too small and what to do now (e.g. the drawing is supposed to be a tree or some other little thing) 1. *BUT* this changes the geometry automatically! That might create 'wrong' geometries (from a user perspective), since they differ from what the user imported/drawed to the map 1. Konova should still warn about too small geometries (somewhere in the range 1.0-0.75m²) but should remove everything that is even smaller than that. So we simply decide that all of these mini-mini-geometries are errors which should be cleansed from the geometry 1. Same pros and cons as on approach 2 Whatever approach is used: there should be an information message for the user after the form has been processed and the geometry is saved. Something like "Ihre Geometrie wurde automatisch von KSP angepasst um Kleinstfehler zu entfernen. Bitte überprüfen Sie das Ergebnis". @tnette @mmueller Asking for fachliche Entscheidung on this. 😃
mpeltriaux added the
enhancement
label 2025-10-12 11:45:56 +02:00
mpeltriaux self-assigned this 2025-10-12 11:45:56 +02:00
Owner

Entscheidung für Variante 3:
a) automatisierte Bereinigung der Geometrie durch Löschung aller Flächen < 1m² (Soweit technisch möglich. Lässt sich der Datensatz automatisiert nicht bereinigen, dann weiterhin "Ablehnung")
b) Anzeige des vorgeschlagenen Hinweises an Anwender über "Bereinigung" der Geometrien (Beseitigung der Kleinstflächen) und Bitte um Überprüfung der resultierenden Geometrien.
=> hier kann es sich i.d.R. nur um fehlerhafte Digitalisierungen oder unsaubere Datenformat-Konvertierungen (bspw. Vektor aus Auto-CAD Umwandlung) handeln. Für den Fall fachlich gewollter derart kleiner Objekte steht alternativ das Punktobjekt zur Verfügung.

Ich bitte um Umsetzung.

Entscheidung für Variante 3: a) automatisierte Bereinigung der Geometrie durch Löschung aller Flächen < 1m² (Soweit technisch möglich. Lässt sich der Datensatz automatisiert nicht bereinigen, dann weiterhin "Ablehnung") b) Anzeige des vorgeschlagenen Hinweises an Anwender über "Bereinigung" der Geometrien (Beseitigung der Kleinstflächen) und Bitte um Überprüfung der resultierenden Geometrien. => hier kann es sich i.d.R. nur um fehlerhafte Digitalisierungen oder unsaubere Datenformat-Konvertierungen (bspw. Vektor aus Auto-CAD Umwandlung) handeln. Für den Fall fachlich gewollter derart kleiner Objekte steht alternativ das Punktobjekt zur Verfügung. Ich bitte um Umsetzung.
Author
Owner

Alles klar, wird gemacht sobald ich die Kapazität dafür habe 👍

Für den Fall fachlich gewollter derart kleiner Objekte steht alternativ das Punktobjekt zur Verfügung.

Achtung: Punkte und Linien werden von Konova nicht akzeptiert, da wir Flächen haben wollen. Mithilfe des Puffertools lässt sich aber natürlich ein Punkt einfach zu einer Fläche "aufpuffern".

Alles klar, wird gemacht sobald ich die Kapazität dafür habe 👍 > Für den Fall fachlich gewollter derart kleiner Objekte steht alternativ das Punktobjekt zur Verfügung. Achtung: Punkte und Linien werden von Konova nicht akzeptiert, da wir Flächen haben wollen. Mithilfe des Puffertools lässt sich aber natürlich ein Punkt einfach zu einer Fläche "aufpuffern".
mpeltriaux added reference 487_Small_geometry_processing 2025-10-15 09:01:28 +02:00
Author
Owner

Wurde in #488 gemerged und als konova:1.13 auf test01 zur Abnahme deployt.

Wurde in #488 gemerged und als [konova:1.13](https://git.naturschutz.rlp.de/IT-Naturschutz/konova/releases/tag/1.13) auf test01 zur Abnahme deployt.
Author
Owner

Mittlerweile auf gov01 produktiv.

Mittlerweile auf gov01 produktiv.
Sign in to join this conversation.
No description provided.