Commit Graph

108 Commits

Author SHA1 Message Date
Mariusz Felisiak cf903c4c0b
[2.2.x] Reverted "Fixed relative paths imports per isort 4.3.5."
This reverts commit 463fe11bc8 due to
restore of relative paths sorting from isort < 4.3.5 in isort 4.3.10.
Backport of b435f82939 from master
2019-03-03 19:35:37 +01:00
Mariusz Felisiak 370a145996
[2.2.x] Fixed relative paths imports per isort 4.3.5.
Backport of 463fe11bc8 from master
2019-02-25 19:50:12 +01:00
Mariusz Felisiak 1508e71c5b Relaxed assertions to fix GIS test failures on Oracle 18c. 2019-01-14 18:32:42 -05:00
Tim Graham 0004daa536
Used 4 space hanging indent for dictionaries.
Thanks Mariusz Felisiak for auditing.
2019-01-02 18:18:19 -05:00
Tim Graham 043bd70942 Updated test URL patterns to use path() and re_path(). 2018-12-31 10:47:32 -05:00
Simon Charette 84e7a9f4a7 Switched setUp() to setUpTestData() where possible in Django's tests. 2018-11-27 09:35:17 -05:00
Tom f98e1c01ea Refs -- Fixed test_isvalid_lookup on MySQL 8+. 2018-07-06 08:59:27 -04:00
Sergey Fedoseev a799dc51b9 Fixed -- Added SpatiaLite support for covers and coveredby lookups. 2018-06-21 09:25:31 -04:00
Sergey Fedoseev d8d21d3891 Made test for GIS Envelope function more strict. 2018-06-20 16:48:50 +05:00
Mariusz Felisiak d0ad03cded Refs -- Fixed GeoExpressionsTests.test_multiple_annotation() on MySQL 5.7+.
Failure introduced in b6e48f514e.
2018-05-31 10:38:42 -04:00
Mariusz Felisiak b002a032f9
Fixed -- Fixed a regression where a queryset that annotates with geometry objects crashes.
Made GEOSGeometryBase hashable.
Regression in 19b2dfd1bf.

Thanks Tim Graham for the review.
2018-01-27 11:12:11 +01:00
Sergey Fedoseev aefe624c62 Fixed -- Added ForcePolygonCW GIS function and deprecated ForceRHR. 2017-12-27 19:26:14 -05:00
Sergey Fedoseev da71e4bb08 Fixed -- Reallowed filtering a queryset with GeometryField=None.
Regression in 58da81a5a3.
2017-12-12 17:12:04 -10:00
Sergey Fedoseev 69922d303d Refs -- Fixed GeoModelTest.test_raw_sql_query.
The test was a false positive.
2017-11-04 10:08:26 -04:00
Simon Charette 9d93dff333 Fixed -- Change some database exceptions to NotImplementedError per PEP 249. 2017-10-06 12:47:08 -04:00
Sergey Fedoseev 3905cfa1a5 Fixed -- Fixed some GIS functions when queryset is evaluated more than once.
Reverted test for refs  in favor of using FuncTestMixin.
2017-09-11 11:56:39 -04:00
Sergey Fedoseev 63d2472b10 Fixed capitalization of "Spherical Mercator." 2017-09-09 09:35:30 -04:00
Sergey Fedoseev 1a85b07bdd Fixed -- Improved performance of loading geometries from DB. 2017-08-24 14:08:35 -04:00
Fabian Schindler da0fb5b1ec Fixed -- Excluded null geometries in SpatiaLite geometry lookups. 2017-08-24 08:30:11 -04:00
Sergey Fedoseev 6ebe3a95ea Fixed -- Added support for complex geometry expressions in GIS lookups. 2017-07-27 08:06:08 -04:00
Sergey Fedoseev 306b961a4d Fixed -- Made NumPoints GIS function return None for non-LINESTRING geometries on MySQL. 2017-07-11 08:21:11 -04:00
Sergey Fedoseev 44a7b98abb Fixed -- Made MySQL backend raise exception if spatial transformation is needed for query. 2017-06-26 15:10:55 -04:00
Jon Dufresne 2c69824e5a Refs -- Removed unnecessary lists, generators, and tuple calls. 2017-06-01 19:08:59 -04:00
Mariusz Felisiak 037d6540ec Fixed gis_tests.geoapp test with incorrect geodetic coordinates.
The latitude coordinates exceed -90, 90 bounds and caused a test failure
on Oracle 12.2.

Thanks Michał Wierzbowski for help preparing the patch.
2017-05-30 08:22:40 -04:00
Tim Graham 2dc3280254 Fixed -- Prevented hiding GDAL exceptions when it's not installed. 2017-05-04 20:45:18 -04:00
Tim Graham 890537253c Made runtests.py run gis_tests only when using a GIS database backend.
This facilitates other changes like refs .
2017-05-04 20:29:19 -04:00
Sergey Fedoseev e7afef13f5 Fixed -- Fixed QuerySet.update() crash when updating a geometry to another one. 2017-04-10 13:26:26 -04:00
Sergey Fedoseev 5e710cf4a5 Fixed -- Added Azimuth GIS function. () 2017-04-02 14:24:06 -04:00
Sergey Fedoseev ede4f6d48c Fixed -- Added LineLocatePoint GIS function. 2017-04-01 15:02:09 -04:00
Sergey Fedoseev 0a13b249e2 Fixed -- Added MySQL support for AsGeoJSON, GeoHash, IsValid functions, and isvalid lookup. 2017-04-01 13:43:53 -04:00
Sergey Fedoseev bde86ce9ae Fixed -- Made GIS DB functions accept geometric expressions, not only values, in all positions. 2017-04-01 09:47:49 -04:00
Sergey Fedoseev 1b1ea63f6a Fixed -- Allowed lookups on Area annotations. 2017-03-23 20:06:16 -04:00
Sergey Fedoseev e9149d3eb0 Fixed -- Fixed AsKML when queryset is evaluated more than once. 2017-03-23 19:09:04 -04:00
Tim Graham 6b4f018b2b Replaced type-specific assertions with assertEqual().
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-03-17 07:51:48 -04:00
Sergey Fedoseev 1bf5e79394 Removed GeoQuerySet leftovers.
Follow up to a0d166306f.
2017-03-16 09:38:02 -04:00
Tim Graham 0de0699d94 Fixed -- Dropped support for Oracle < 12.1. 2017-01-28 08:19:47 -05:00
chillaranand d6eaf7c018 Refs -- Replaced super(ClassName, self) with super(). 2017-01-25 12:23:46 -05:00
Claude Paroz 2b281cc35e Refs -- Removed most of remaining six usage
Thanks Tim Graham for the review.
2017-01-18 21:33:28 +01:00
Claude Paroz 7b2f2e74ad Refs -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18 20:18:46 +01:00
Claude Paroz f3c43ad1fd Refs -- Removed python_2_unicode_compatible decorator usage 2017-01-18 13:44:34 +01:00
Claude Paroz d7b9aaa366 Refs -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
Tim Graham a0d166306f Removed GeoManager and GeoQuerySet per deprecation timeline. 2017-01-17 20:51:56 -05:00
Tim Graham c04207cd38 Replaced some GIS has_X_method skips with supports_X_aggr/has_X_function. 2017-01-03 09:49:00 -05:00
Sergey Fedoseev af5983e4f5 Removed unneeded SpatiaLite workarounds in GIS tests. 2016-12-17 08:31:17 -05:00
Sergey Fedoseev 17a9e0cd07 Used assertJSONEqual() in GISFunctionsTests.test_asgeojson(). 2016-12-17 08:23:47 -05:00
Sergey Fedoseev 5d28fef8f9 Made NumPoints raise TypeError on MySQL when it's used on fields besides LineStringField. 2016-12-16 10:34:02 -05:00
Sergey Fedoseev 38a6df555f Fixed -- Added Oracle support for BoundingCircle GIS function. 2016-12-15 14:16:09 -05:00
Sergey Fedoseev 5a23cc00f5 Fixed -- Added Oracle support for AsGML GIS function. 2016-12-15 14:00:08 -05:00
Sergey Fedoseev d013134ffb Improved testing of num_seg kwarg of BoundingCircle GIS function. 2016-12-15 12:40:04 -05:00
Sergey Fedoseev e36a9d3fd1 Simplified a GIS test by using an SRID available on all backends. 2016-12-15 09:32:12 -05:00