Skip to content

Commit

Permalink
Revert "Add log to see if different UTM test case is already covered."
Browse files Browse the repository at this point in the history
This reverts commit d8691bc.
  • Loading branch information
EmileSonneveld committed Aug 9, 2024
1 parent e98879c commit 4896876
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1268,12 +1268,6 @@ class FileLayerProvider private(openSearch: OpenSearchClient, openSearchCollecti
*/
val featureIsUTM = feature.crs.get.proj4jCrs.getProjection.getName == "utm"
val targetIsUTM = targetExtent.crs.proj4jCrs.getProjection.getName == "utm"
if (featureIsUTM && targetIsUTM) {
if (feature.crs.get != targetExtent.crs) {
// Check logs if this test-case is already covered. TODO: Remove this log before merge
logger.info(s"Special case: Feature and target extent are both in UTM, but have different CRSes: ${feature.crs.get} and ${targetExtent.crs}.")
}
}
val commonCrs = if (!targetIsUTM) targetExtent.crs
else if (!featureIsUTM) feature.crs.get
else targetExtent.crs // Avoid conversion imprecision by intersecting directly in the target CRS
Expand Down

0 comments on commit 4896876

Please sign in to comment.