Commit Graph

369 Commits

Author SHA1 Message Date
Sergey Fedoseev c5e450ac95 Fixed -- Confirmed support for PROJ 5.x. 2018-09-17 12:03:30 -04:00
Melvyn Sopacua e7a56eb4f0 Fixed -- Fixed LayerMapping crash with null geometry and unique. 2018-07-27 16:38:28 -04:00
Claude Paroz c28bf990d7 Refs -- Fixed GIS tests on MariaDB 2018-07-13 18:27:30 +02:00
Sergey Fedoseev 3411c5551a Refs -- Fixed crash during pickling of empty GEOS point. 2018-07-09 11:02:12 -04:00
Mushtaq Ali 66b6b68923 Fixed -- Fixed CPointerBase.__del__() ImportError crash. 2018-07-06 11:26:14 -04: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
Tim Graham 9e4f26bb40
Fixed -- Confirmed support for GDAL 2.3. 2018-06-12 13:34:58 -04:00
Tim Graham 860903b261
Dropped support for GDAL 1.9 and 1.10. 2018-06-11 08:33:09 -04:00
Claude Paroz 86988dd890 Refs -- Relaxed WGS 84 check regex
With GDAL 2.3, the exact string changed again.
2018-06-09 09:19:08 +02:00
Tim Graham 666be7b994 Fixed -- Fixed ogrinspect test_time_field failure on SpatiaLite. 2018-06-01 22:55:22 -04:00
Tim Graham 55f4eee75d
Fixed -- Fixed ogrinspect test failures with GDAL 2.2. 2018-06-01 22:31:46 -04: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
Tim Graham 3dffcb5579
Relaxed a GDAL raster test.
The exact metadata depends on the GDAL version.
2018-05-29 21:39:31 -04:00
Stefan R. Filipek a5a2ceeb45 Fixed -- Added router.allow_relation() calls for assignments between unsaved model instances. 2018-05-10 20:42:44 -04:00
Claude Paroz 607970f31c Replaced django.test.utils.patch_logger() with assertLogs().
Thanks Tim Graham for the review.
2018-05-07 09:34:00 -04:00
Tim Graham 7a22d9f751
Fixed a test failure with the latest GeoIP2 database. 2018-04-17 21:30:05 -04:00
Claude Paroz 2a2ed0e70a Fixed -- Fixed OpenLayersWidget deserialization ignoring the widget map's SRID.
Regression in 6ecccad711.
2018-04-02 10:20:00 -04:00
Alex Stovbur d171843f57 Fixed -- Added an exception if GeoIP database can't be loaded from the path. 2018-03-05 12:20:30 -05:00
Stanislav Karpov 6d794fb762 Fixed -- Added GEOSGeometry.buffer_with_style(). 2018-02-10 19:45:58 -05:00
Tim Graham fa75b2cb51
Refs -- Removed force_bytes/text() usage in tests. 2018-02-07 14:20:04 -05: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
Дилян Палаузов a38ae914d8 Fixed -- Simplified some boolean constructs and removed trivial continue statements. 2018-01-12 12:44:50 -05:00
Tim Graham 66d74676e2 Fixed a GeoIP2 test failure with the latest GeoIP2 database. 2018-01-10 09:39:41 -05:00
Дилян Палаузов d7b2aa24f7 Fixed -- Simplified code with and/or. 2018-01-03 20:12:23 -05:00
Mariusz Felisiak 83a36ac49a
Removed unnecessary trailing commas and spaces in various code. 2017-12-28 21:07:29 +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 93cdd07e8f Used bytes.hex() and bytes.fromhex() to simplify. 2017-11-23 08:52:23 -05: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
Ryan Verner 9473a8481a Fixed -- Added 'continent_code' and 'continent_name' in GeoIP2.city() dict. 2017-10-25 10:07:37 -04:00
Mads Jensen 45d5d2dcaa Removed unnecessary tuple()/list() calls. 2017-10-21 09:42:25 -04:00
Simon Charette 9d93dff333 Fixed -- Change some database exceptions to NotImplementedError per PEP 249. 2017-10-06 12:47:08 -04:00
Niall Dalton 4fe6588da3 Fixed -- Added color interpretation method to GDALBand. 2017-09-21 09:42:38 -04:00
Thomas Schorr 52eb5b289e Fixed -- Made ogrinspect output pep8 compliant. 2017-09-20 21:03:14 -04:00
Tim Graham f896eb30f6 Removed django.contrib.gis.geometry.backend.
The layer of indirection is unchanged and undocumented
since its introduction in ff60c5f9de.
2017-09-12 09:51:02 -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 a0b4ecce57 Fixed -- Fixed GIS's WKT regex to match large scientific notation numbers.
Thanks Greg Larmore for report and initial patch.
2017-09-11 09:13:02 -04:00
Sergey Fedoseev 63d2472b10 Fixed capitalization of "Spherical Mercator." 2017-09-09 09:35:30 -04:00
Sergey Fedoseev 0ab1dc0a8b Fixed deepcopy of AreaField and DistanceField. 2017-09-08 14:13:50 -04:00
Nick Pope 66657eb01f Improved messages in IndexErrors raised by GDAL objects. 2017-09-04 19:00:32 -04:00
Nick Pope 0d9e1163e8 Fixed -- Corrected get_layer_by_name prototype to skip error checking.
All other get_*_by_name functions have errcheck=False. This makes it
return None for an invalid name instead of raising a GDALException.
2017-09-04 18:56:23 -04:00
Nick Pope 9397d3add4 Fixed -- Simplified code to remove OGRIndexError.
The test is a regression for refs  to show that the original fix of
OGRIndexError is no longer needed.

This is similar to the removal of GEOSIndexError in
197b187810.
2017-09-03 21:19:37 -04:00
Nick Pope 35800acf79 Refs -- Removed test for removed ListMixin._IndexError.
Unused since 197b187810.
2017-09-03 10:44:52 -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
Claude Paroz 546412e673 Fixed -- Converted GDAL Feature.fields to strings 2017-08-15 19:31:22 +02:00
Tim Graham 78c155cf2e Fixed -- Fixed GEOS version parsing with a commit hash at the end. 2017-08-02 09:30:30 -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 5ccbcc5bf6 Fixed -- Made GEOSGeometry.__eq__() work correctly with non-canonical EWKT string. 2017-07-26 09:42:02 -04:00
Sergey Fedoseev f3bada9889 Fixed -- Added support for distance lookups on MySQL. 2017-07-26 08:50:56 -04:00
Sergey Fedoseev 38af496b98 Fixed -- Allowed geometry expressions to be used with distance lookups.
Distance lookups use the Distance function for decreased code redundancy.
2017-07-25 15:49:35 -04:00
Sergey Fedoseev 3b56f2191d Simplified handling of GIS lookup params. 2017-07-20 10:08:55 -04:00
Sergey Fedoseev 9415fcfef6 Tested the case when the lhs of a raster lookup has an index specified and the rhs doesn't. 2017-07-20 09:05:45 -04:00
Sergey Fedoseev 3f7953846e Fixed typo in DistanceLookupBase.process_rhs() error message. 2017-07-19 13:40:56 -04:00
Sergey Fedoseev dc738a0c76 Removed redundant lookup values in RasterFieldTest.test_all_gis_lookups_with_rasters.
These values produce already tested lookups and prevent another one from
being tested.
2017-07-18 15:01:09 -04:00
Sergey Fedoseev 12812f6b2d Fixed RasterFieldTest.test_all_gis_lookups_with_rasters.
It was inadvertently made a no-op in
378cf689d8.
2017-07-18 08:47:59 -04:00
Sergey Fedoseev be8d5bd703 Added test for GEOSCoordSeq.__getitem__(). 2017-07-13 12:46:59 -04:00
Sergey Fedoseev 1a742ea33b Added test for LineString.__iter__(). 2017-07-12 22:13:45 +05: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
Daniel Wiesmann 6f44f714c9 Fixed -- Allowed GDALRasters to use the vsimem filesystem.
Thanks Tim Graham for the review and edits.
2017-06-16 12:09:05 -04:00
chillaranand 08bda82c23 Fixed -- Used distutils.version.LooseVersion for version parsing. 2017-06-13 10:53:39 -04:00
Daniel Wiesmann fe5e34a295 Fixed -- Allowed passing papsz options to GDALRaster initialization. 2017-06-08 12:44:26 -04:00
Claude Paroz 2862760894 Fixed -- Confirmed support for GDAL 2.2
Additionally, a test has been updated to account for small SRS WKT differences.
Thanks Tim Graham for writing the doc part.
2017-06-07 21:26:04 +02:00
Daniel Wiesmann e0b456bee7 Fixed -- Made raster metadata readable and writable on GDALRaster/Band. 2017-06-07 11:30:35 -04:00
Jon Dufresne 2c69824e5a Refs -- Removed unnecessary lists, generators, and tuple calls. 2017-06-01 19:08:59 -04:00
Adam Johnson 9509268cea Refs -- Improved value validation in GDALRaster.geotransform setter. 2017-05-30 09:02:50 -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
Jon Dufresne 21046e7773 Fixed -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
2017-05-27 19:08:46 -04:00
Bruno Alla 6092ea8fa6 Refs -- Used subTest() in several tests. 2017-05-24 08:36:34 -04:00
R3turnz 502f03d897 Fixed -- Added 'time_zone' in GeoIP2.city() dict. 2017-05-22 21:07:14 -04:00
Danilo Bargen a7975260b5 Fixed -- Added OSMWidget.default_zoom attribute. 2017-05-14 14:31:17 -04:00
Tim Graham d3209bf09c Simplified test for OSMWidget.default_lon/lat. 2017-05-14 13:02:09 -04:00
Tim Graham b014de011b Removed obsolete HAS_GEOS variable for test skipping. 2017-05-04 20:45:18 -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
Dylan Verheul 75aeebebfe Fixed -- Fixed crash in BaseGeometryWidget.get_context() when overriding existing attrs. 2017-04-30 20:19:12 -04:00
Claude Paroz 3f1ba76851 Fixed -- Fixed IP address validation in geoip2 module
Regression in 277a4dd4b4.
Thanks Tim Graham for the test.
2017-04-22 20:10:24 +02:00
Tim Graham d2cb7a2bc1 Fixed -- Fixed crash in BaseGeometryWidget.subwidgets(). 2017-04-20 11:36:40 -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 fd892f3443 Fixed -- Allowed using D with lookups on Distance annotations. 2017-04-06 19:27:45 -04:00
Sergey Fedoseev 898e623db0 Fixed -- Made Distance on geodetic coordinates return a raw value on MySQL. 2017-04-02 17:06:01 -04:00
Sergey Fedoseev 5e710cf4a5 Fixed -- Added Azimuth GIS function. () 2017-04-02 14:24:06 -04:00
Sergey Fedoseev 24023c6a8f Fixed -- Made GEOSGeometry read SRID from GeoJSON input. 2017-04-01 15:35:30 -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 6ecccad711 Fixed -- Made GEOSGeometry handle the srid parameter more predictably. 2017-03-30 09:38:26 -04:00
Sergey Fedoseev 4bc355079c Fixed -- Fixed GeoJSON representation of LinearRing and custom GEOSGeometry subclasses. 2017-03-29 13:17:31 -04:00
Sergey Fedoseev 9cd6ba991f Made isvalid lookup use IsValid function to decrease code redundancy. 2017-03-29 08:56:58 -04:00
Sergey Fedoseev d47de2e09d Refs -- Used decorators for GIS lookup registration. 2017-03-27 22:20:18 -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
Sergey Fedoseev 816c5753ac Fixed -- Fixed precision comparison in a geoforms test (refs ). 2017-03-21 09:04:41 -04:00
Tim Graham 93eca976c1 Fixed -- Updated OpenLayersWidget.map_srid for OpenLayers 3.
Regression in 2ebfda38e6 (refs ).
2017-03-17 12:03:06 -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
Tim Graham 5bd7ffc313 Updated postgis.net and gaia-gis.it links to https. 2017-03-16 14:01:45 -04:00
Sergey Fedoseev 1bf5e79394 Removed GeoQuerySet leftovers.
Follow up to a0d166306f.
2017-03-16 09:38:02 -04:00