Overlaying geometries #50
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status quo
A user is not notified, that a geometry might intersect with other geometries from the system.
Feature
We need to add a warning on the detail view as well as on the overview view for entries where the stored geometry overlays (partially) another, already existing geometry.
Calculation
When an entry is being initially saved or edited and saved, the given geometry should be test-intersected with every other geometry on the database.
Visualization
If there is a conflict with another geometry, the user should see a warning on the top of the detail view, stating that the following objects geometry have already been found where this geometry has now been drawn: x1, x2, x3 and so on.
Storing
To keep track of these conflicts and avoid re-calculating everytime a detail view is opened, the conflict should be stored on the database using a proper model, such as
GeometryConflictwhich holds the following attributes:conflicting_geometry- the foreign key pointing on the new/edited geometryexisting_geometry- the foreign key pointing on the geometry, which has already been there beforeEach time the
conflicting_geometryorexisting_geometryis being edited, the conflict will be re-evaluated. If the geometries still are in conflict, the entry will be kept. If the conflict seems to be resolved, the entry can be deleted.Merged in #52