-
Notifications
You must be signed in to change notification settings - Fork 7
Optimieze Siteplan transform #2073
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
base: main
Are you sure you want to change the base?
Conversation
| private Coordinate getGeoNodeCoordinate(final GEO_Knoten node) { | ||
| final GeoKanteGeometrySessionData sessionData = getSessionData(node); | ||
| return sessionData.getGeoNodeCoordinates() | ||
| .computeIfAbsent(node, GeoKnotenExtensions::getCoordinate); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
store coordinate of GEO_Knoten instead of find the coordinate each call
| this.length = length; | ||
| this.geometry = geometry; | ||
| this.geoKnoten = geoKnoten; | ||
| this.geoCRS = geoCRS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
storage CRS direct in GEOKanteMetaData instead of find by each call
| BigDecimal.valueOf(2), ToolboxConstants.ROUNDING_TO_PLACE, | ||
| RoundingMode.HALF_UP) ?: BigDecimal.ZERO, BigDecimal.ZERO, | ||
| ENUMWirkrichtung.ENUM_WIRKRICHTUNG_IN) | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
calculate Center coordinate only by exist error
| ) { | ||
| return knoten.container.GEOPunkt.filter [ | ||
| IDGEOKnoten !== null && IDGEOKnoten?.wert == knoten.identitaet.wert | ||
| ].toList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need transform to list each call
Test Results130 tests ±0 130 ✅ ±0 21s ⏱️ ±0s Results for commit 19a3318. ± Comparison against base commit 5889295. This pull request removes 9 and adds 9 tests. Note that renamed tests count towards both. |
No description provided.