summaryrefslogtreecommitdiff
path: root/tests/gis_tests/geoapp
AgeCommit message (Collapse)Author
2026-02-10Added various missing test skips observed on MongoDB.Tim Graham
2025-12-28Added some skips to GIS tests.Tim Graham
Also replaced some DatabaseFeatures.supports_<foo>_lookup attributes with @skipUnlessGISLookup.
2025-12-09Added tests for MultiPointField, MultiLineStringField, and ↵Tim Graham
GeometryCollectionField.
2025-11-25Fixed #35783 -- Added NumDimensions GIS database function and ↵David Smith
__num_dimensions lookup.
2025-10-15Skipped GISFunctionsTests.test_geometry_type() test for MultiPoint on ↵Mariusz Felisiak
MariaDB and GEOS 3.12+. GEOSWKTWriter_write() behavior was changed in GEOS 3.12+ to include parentheses for sub-members (https://github.com/libgeos/geos/pull/903). MariaDB doesn't accept WKT representations with additional parentheses for MultiPoint. This is an accepted bug (MDEV-36166) in MariaDB that should be fixed in the future: - https://jira.mariadb.org/browse/MDEV-36166
2025-10-15Moved object creation to subTest() in GISFunctionsTests.test_geometry_type() ↵Mariusz Felisiak
test.
2025-09-22Refs #33783 -- Added IsEmpty GIS database function and __isempty lookup on ↵David Smith
SpatiaLite.
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-07-23Refs #36500 -- Shortened some long docstrings and comments.Mike Edmunds
Manually reformatted some long docstrings and comments that would be damaged by the to-be-applied autofixer script, in cases where editorial judgment seemed necessary for style or wording changes.
2025-07-23Removed double spaces after periods and within phrases.Sarah Boyce
2025-07-23Refs #36009 -- Adjusted ↵David Smith
gis_tests.geoapp.tests.GeoLookupTest.test_relate_lookup for bug in PostGIS. ST_Relate() with PostGIS 3.5 and GEOS 3.13 gives a different result when a series of calls are made vs. single call of the same function. The fix for this is expected to be released in PostGIS 3.5.4 and 3.6.0. https://lists.osgeo.org/pipermail/postgis-devel/2025-July/030581.html https://trac.osgeo.org/postgis/ticket/5938
2025-07-20Fixed #28696 -- Added GeometryType GIS database function and __geom_type lookup.Ahmed Ibrahim
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2025-06-05Added validation to BaseSpatialFeatures.has_<Func>_function.Tim Graham
2025-02-23Fixed #35705 -- Added Rotate GIS database function to rotate geometries.enprava
2024-12-11Fixed #35989 -- Removed crs from GeoJSON serializer.Jeremy Thompson
Specification of coordinate reference systems (crs) was removed from the GeoJSON spec in 2016. https://datatracker.ietf.org/doc/html/rfc7946#appendix-B.1
2024-10-24Refs #35803 -- Added more tests for __coveredby and __covers GIS lookups.Mariusz Felisiak
Co-authored-by: David Smith <smithdc@gmail.com>
2024-03-18Refs #31014 -- Added srid argument to FromWKB/FromWKT() GIS functions.Claude Paroz
2024-03-10Applied BoundingCircle test to only one country.Claude Paroz
Looks like testing the second Country is much more computing-intensive and brings nothing to the test.
2024-01-05Fixed #35086 -- Added support for BoundedCircle on Spatialite 5.1+.David Smith
Spatialite 5.1 added support for BoundingCircle (GEOSMinimumBoundingCircle). GEOS 3.7 is required which is lower than Django's currently supported minmum of 3.8. https://groups.google.com/g/spatialite-users/c/hAJ2SgitN4M https://www.gaia-gis.it/gaia-sins/spatialite-sql-5.1.0.html
2023-10-11Refs #34882 -- Fixed GISFunctionsTests.test_asgeojson_option_0() test on Oracle.Mariusz Felisiak
This uses an example with the same precision for all databases. Follow up to 96e7a752b6c44a84e18d82d37524c1df64b32e12.
2023-10-06Fixed #34882 -- Fixed no options in AsGeoJSON() for geometries in ↵Denis Rouzaud
non-default CRS.
2023-10-04Fixed #34759 -- Confirmed support for SpatiaLite 5.1.pieterck
Thanks The Epic Dev for helping with tests.
2023-08-22Removed unnecessary trailing commas in tests.konsti
2023-08-04Fixed #34686 -- Added support for GEOS 3.12.Olivier Tabone
2023-03-02Fixed #34374 -- Fixed GIS tests on Windows.Heath Henley
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
2023-01-20Fixed #34266 -- Added ClosestPoint GIS database functions.Niccolò Mineo
2023-01-10Refs #31014 -- Added FromWKB and FromWKT GIS database functions.Mariusz Felisiak
Co-authored-by: Ondřej Böhm <ondrej.bohm@firma.seznam.cz> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2023-01-03Fixed #33783 -- Added IsEmpty GIS database function and __isempty lookup on ↵Claude Paroz
PostGIS.
2023-01-03Fixed #23842 -- Fixed flaky GeoQuerySetTest.test_make_line() test.Mariusz Felisiak
2022-10-08Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner
assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
2022-07-08Fixed #33718 -- Dropped support for MySQL 5.7.Mariusz Felisiak
2022-06-21Fixed #33794 -- Fixed string-casting of GIS queries on PostgreSQL.Claude Paroz
Regression in 64c3f049ea3bcb1c82f35ae09f1dd5349a826a5c.
2022-06-14Fixed #33772 -- Added QuerySet.first()/last() error message on unordered ↵Pablo Pissi
queryset with aggregation.
2022-06-01Fixed #33742 -- Added id to GeoJSON serializer.Samir Shah
2022-02-22Removed redundant QuerySet.all() calls in docs and tests.Nick Pope
Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-02-03Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak
In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
2021-05-14Fixed #32721 -- Fixed migrations crash when adding namespaced spatial ↵snowman2
indexes on PostGIS.
2021-04-08Fixed #32575 -- Added support for SpatiaLite 5.Claude Paroz
2021-04-07Fixed #32544 -- Confirmed support for GDAL 3.2 and GEOS 3.9.Claude Paroz
2021-03-23Refs #32353, Refs #32352 -- Fixed GIS tests with PROJ 7.X.Mariusz Felisiak
Different PROJ versions use different transformations, all are correct as having a 1 meter accuracy. These are differences in PROJ versions that cannot and should not be handled in Django itself. Thanks Jani Tiainen and David Smith for reports. See: https://github.com/OSGeo/gdal/issues/3377
2021-03-02Refs #21429 -- Added SimpleTestCase.assertNoLogs() on Python < 3.10.François Freitag
2021-01-13Removed redundant database vendor helpers in gis_tests/utils.py.Tim Graham
2021-01-13Added SpatialFeatures.empty_intersection_returns_none.Tim Graham
2021-01-02Replaced DatabaseFeatures.supports_left_right_lookups with skipUnlessGISLookup.Tim Graham
2020-12-14Relaxed MemSize test for CockroachDB.Tim Graham
2020-12-10Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵Hasan Ramezani
failures. Co-authored-by: Tim Graham <timograham@gmail.com>
2020-11-30Added SpatialFeatures.supports_tolerance_parameter.Tim Graham