diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-06-12 10:51:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-12 10:51:43 +0200 |
| commit | b616f65855e5658a0272506ded1274516daa908d (patch) | |
| tree | 520f148121881abedc10b9ce86965ee0d3a6c81e /tests | |
| parent | 198a0adef2fd794189cad7cfb80db7c14b8e28c3 (diff) | |
Added missing support for PointOnSurface function on MariaDB.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/geoapp/test_functions.py | 5 |
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. |
