summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-06-12 10:51:43 +0200
committerGitHub <noreply@github.com>2019-06-12 10:51:43 +0200
commitb616f65855e5658a0272506ded1274516daa908d (patch)
tree520f148121881abedc10b9ce86965ee0d3a6c81e /tests
parent198a0adef2fd794189cad7cfb80db7c14b8e28c3 (diff)
Added missing support for PointOnSurface function on MariaDB.
Diffstat (limited to 'tests')
-rw-r--r--tests/gis_tests/geoapp/test_functions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py
index 7610a522eb..356f211c86 100644
--- a/tests/gis_tests/geoapp/test_functions.py
+++ b/tests/gis_tests/geoapp/test_functions.py
@@ -370,6 +370,11 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
'New Zealand': fromstr('POINT (174.616364 -36.100861)', srid=4326),
'Texas': fromstr('POINT (-103.002434 36.500397)', srid=4326),
}
+ elif mysql:
+ ref = {
+ 'New Zealand': fromstr('POINT (169.030131 -46.678612)', srid=4326),
+ 'Texas': fromstr('POINT (-97.383730 25.840117)', srid=4326),
+ }
else:
# Using GEOSGeometry to compute the reference point on surface values
# -- since PostGIS also uses GEOS these should be the same.