Skip to content

Commit 92691f9

Browse files
committedMay 21, 2019
Add comment for myself
1 parent 4786b3e commit 92691f9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎tests/src/python/test_qgsdistancearea.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,9 @@ def testGeodesicIntersectionAtAntimeridian(self):
715715

716716
# calculation should be ellipsoid dependent!
717717
da.setEllipsoid("Phobos2000")
718+
####
719+
#### THIS FAILS UNDER PROJ 6 -- we need to set the sourceCrs to a Phobos based CRS. (which is...?)
720+
####
718721
lat, fract = da.latitudeGeodesicCrossesAntimeridian(QgsPointXY(-175.15030911497356669, 8.59851183021221033),
719722
QgsPointXY(175.76717768974583578,
720723
8.93749416467257873))
@@ -773,6 +776,9 @@ def testGeodesicLine(self):
773776

774777
# different ellipsoid, should be respected
775778
da.setEllipsoid("Phobos2000")
779+
####
780+
#### THIS FAILS UNDER PROJ 6 -- we need to set the sourceCrs to a Phobos based CRS. (which is...?)
781+
####
776782
g = QgsGeometry.fromMultiPolylineXY(da.geodesicLine(QgsPointXY(121.4, 6.4), QgsPointXY(-121.6, 2.8),
777783
1000000, False))
778784
self.assertEqual(g.asWkt(5),
@@ -850,6 +856,9 @@ def testSplitGeometryAtAntimeridian(self):
850856

851857
# different ellipsoid - should change intersection latitude
852858
da.setEllipsoid("Phobos2000")
859+
####
860+
#### THIS FAILS UNDER PROJ 6 -- we need to set the sourceCrs to a Phobos based CRS. (which is...?)
861+
####
853862
g = da.splitGeometryAtAntimeridian(QgsGeometry.fromWkt('LineString(179 10, -179 -20)'))
854863
self.assertEqual(g.asWkt(3), 'MultiLineString ((179 10, 180 -5.459),(-180 -5.459, -179 -20))')
855864

0 commit comments

Comments
 (0)
Please sign in to comment.