summaryrefslogtreecommitdiff
path: root/tests/gis_tests/geoapp/test_functions.py
AgeCommit message (Collapse)Author
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-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-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-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.
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-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-01-13Removed redundant database vendor helpers in gis_tests/utils.py.Tim Graham
2021-01-13Added SpatialFeatures.empty_intersection_returns_none.Tim Graham
2020-12-14Relaxed MemSize test for CockroachDB.Tim Graham
2020-11-11Added SpatialFeatures.unsupported_geojson_options.Tim Graham
2020-07-14Refs #30446 -- Defined output_field of BoundingCircle() GIS database function.Simon Charette
This prevented the default behavior of BaseExpression._resolve_output_field from error'ing out when such functions accepted both expressions from mixed types (e.g. BoundingCircle(Polygon, num_seg=12)).
2020-01-21Fixed #31195 -- Relaxed GeometryDistance test for PROJ 5.2+.Sergey Fedoseev
2020-01-20Fixed #31142 -- Fixed MakeValid.output_field when geometry type is changed.Sergey Fedoseev
Regression in 2ef4b4795e29be8c33a6de9cc0c05b59025d13a5.
2019-11-22Fixed #30996 -- Added AsWKB and AsWKT GIS functions.Sergey Fedoseev
2019-11-18Fixed #30994 -- Added Oracle support for AsGeoJSON GIS function.Sergey Fedoseev
2019-10-18Added gis_tests.utils.mariadb hook.Mariusz Felisiak
2019-06-12Simplified GISFunctionsTests.test_point_on_surface().Mariusz Felisiak
2019-06-12Added missing support for PointOnSurface function on MariaDB.Mariusz Felisiak
2019-06-12Removed obsolete comment from GISFunctionsTests.test_asgeojson().Mariusz Felisiak
2019-06-12Fixed GISFunctionsTests.test_asgeojson() crash on MariaDB 10.2+.Mariusz Felisiak
2019-03-20Fixed #28738 -- Added the GeometryDistance function.Francisco Couzo
2019-03-03Reverted "Fixed relative paths imports per isort 4.3.5."Mariusz Felisiak
This reverts commit 463fe11bc8b2d068e447c5df677e7a31c2af7e03 due to restore of relative paths sorting from isort < 4.3.5 in isort 4.3.10.
2019-02-25Fixed relative paths imports per isort 4.3.5.Mariusz Felisiak
2019-01-17Refs #28841 -- Removed ForceRHR function per deprecation timeline.Tim Graham
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-06-20Made test for GIS Envelope function more strict.Sergey Fedoseev
2017-12-27Fixed #28841 -- Added ForcePolygonCW GIS function and deprecated ForceRHR.Sergey Fedoseev
2017-10-06Fixed #28665 -- Change some database exceptions to NotImplementedError per ↵Simon Charette
PEP 249.
2017-09-11Fixed #28353 -- Fixed some GIS functions when queryset is evaluated more ↵Sergey Fedoseev
than once. Reverted test for refs #27603 in favor of using FuncTestMixin.
2017-09-09Fixed capitalization of "Spherical Mercator."Sergey Fedoseev
2017-08-24Fixed #28518 -- Improved performance of loading geometries from DB.Sergey Fedoseev