refactor: merge distanceToCountry + distanceToWater → distanceToFeature() #74
Labels
No labels
blocked
bug
design
documentation
duplicate
enhancement
future
good first issue
help wanted
invalid
question
refactoring
tracker
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jelmer/topoquiz#74
Loading…
Reference in a new issue
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?
Probleem
distanceToCountry()endistanceToWater()doen hetzelfde: afstand van een punt tot een polygoon/lijn berekenen viapointInPolygon+pointToSegmentDist-loop. Alleen de featureData-variabele verschilt.Oplossing
Eén helper:
Impact
Risico
Laag. Klik-op-kaart tests voor set 57 (wateren) en set 71 (landen) zijn de regressiecheck.
Afhankelijkheid
Doe na #67 (polygonTypes-register) — dan kan de helper ook
featureDataophalen via het register.Zie REFACTORING.md voorstel #10
Geïmplementeerd in refactor-commit
96e1a18.