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

Fix geometry overlap triggers #402

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Fix geometry overlap triggers #402

merged 2 commits into from
Nov 28, 2024

Conversation

LKajan
Copy link
Contributor

@LKajan LKajan commented Nov 28, 2024

Poistaa päällekkäisyystarkistuksen other_area taulusta ja lisää vastaavan land_use_area tauluun.

Aiemmin other_area -taulussa oli koitettu tehdä triggeriä, joka varmistaisi, että kaksi pääkäyttötarkoituksellista kohdetta ei leikkaisi toistensa kanssa. Pääkäyttötarkoitukselliset kohteet on kuitenkin tarkoitus tallentaa land_use_area tauluun, jossa on vain kaikki pääkäyttötarkoiutkselliset kohteet, jolloin kaavamääräysten lisätietoja ei tarvitse tarkistaa.

Riippuvainen #401:stä. Vaikka kaavakohteelle on testissä asettanut kaavan, niin triggeri asettaa kaavan NULLiksi. Testi ei mene läpi ennen #401:n mergeä.

@LKajan LKajan requested a review from Rikuoja November 28, 2024 09:06
@LKajan LKajan force-pushed the fix-overlap-triggers branch from f2a7236 to 8379efe Compare November 28, 2024 09:18
@LKajan LKajan mentioned this pull request Nov 28, 2024
Copy link
Contributor

@Rikuoja Rikuoja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!

The logic of the trigger didn't work when regulation groups and plan
objects have n2n relation. Plan objects are inserted first before
knowing its regulation groups. Probably equivalent check should be added
to just land_use_area.
@LKajan LKajan force-pushed the fix-overlap-triggers branch from 8379efe to 01fbdf3 Compare November 28, 2024 12:48
@LKajan LKajan merged commit 78a3c26 into main Nov 28, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants