Skip to content

Commit 44b4141

Browse files
Merge pull request #141 from labordep/main
Write an interaction example to create a bounding box creator
2 parents 5a55629 + 77c491e commit 44b4141

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/GeoView/GeoViewProjectionUtils.class.st

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,13 @@ GeoViewProjectionUtils class >> projectedCartesianRadiusFromCenter: anAbsoluteCo
5858

5959
| cartesianCoordinates1 tangentAbsolutePosition cartesianCoordinates2 cartesianRadius |
6060

61-
self flag:'labordep: check projection limits before calculating'.
6261
(aMapProjection isAbsoluteCoordinatesOutsideProjectionLimit: anAbsoluteCoordinates) ifTrue:[
6362
^ nil
6463
].
6564

6665
cartesianCoordinates1 := aMapProjection projLatLonToCart: anAbsoluteCoordinates.
6766

68-
tangentAbsolutePosition := GeodesicApproximativeFormulas new
67+
tangentAbsolutePosition := GeodesicHaversineFormulas new
6968
absoluteCoordinatesFrom: anAbsoluteCoordinates
7069
distanceInMeters: aDistanceInM
7170
azimuthInRadians: (anAzimuthInDegrees degreesToRadians).

0 commit comments

Comments
 (0)