Niall Dalton
4fe6588da3
Fixed #28576 -- Added color interpretation method to GDALBand.
2017-09-21 09:42:38 -04:00
Thomas Schorr
52eb5b289e
Fixed #28617 -- 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 #28353 -- Fixed some GIS functions when queryset is evaluated more than once.
...
Reverted test for refs #27603 in favor of using FuncTestMixin.
2017-09-11 11:56:39 -04:00
Sergey Fedoseev
a0b4ecce57
Fixed #28392 -- 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 #28569 -- 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 #28558 -- Simplified code to remove OGRIndexError.
...
The test is a regression for refs #4740 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 #25225 -- Removed test for removed ListMixin._IndexError.
...
Unused since 197b187810
.
2017-09-03 10:44:52 -04:00
Sergey Fedoseev
1a85b07bdd
Fixed #28518 -- Improved performance of loading geometries from DB.
2017-08-24 14:08:35 -04:00
Fabian Schindler
da0fb5b1ec
Fixed #28380 -- Excluded null geometries in SpatiaLite geometry lookups.
2017-08-24 08:30:11 -04:00
Claude Paroz
546412e673
Fixed #28495 -- Converted GDAL Feature.fields to strings
2017-08-15 19:31:22 +02:00
Tim Graham
78c155cf2e
Fixed #28441 -- Fixed GEOS version parsing with a commit hash at the end.
2017-08-02 09:30:30 -04:00
Sergey Fedoseev
6ebe3a95ea
Fixed #28437 -- Added support for complex geometry expressions in GIS lookups.
2017-07-27 08:06:08 -04:00
Sergey Fedoseev
5ccbcc5bf6
Fixed #28433 -- Made GEOSGeometry.__eq__() work correctly with non-canonical EWKT string.
2017-07-26 09:42:02 -04:00
Sergey Fedoseev
f3bada9889
Fixed #28436 -- Added support for distance lookups on MySQL.
2017-07-26 08:50:56 -04:00
Sergey Fedoseev
38af496b98
Fixed #28432 -- 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 #28383 -- Made NumPoints GIS function return None for non-LINESTRING geometries on MySQL.
2017-07-11 08:21:11 -04:00
Sergey Fedoseev
44a7b98abb
Fixed #27964 -- Made MySQL backend raise exception if spatial transformation is needed for query.
2017-06-26 15:10:55 -04:00
Daniel Wiesmann
6f44f714c9
Fixed #28300 -- 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 #27830 -- Used distutils.version.LooseVersion for version parsing.
2017-06-13 10:53:39 -04:00
Daniel Wiesmann
fe5e34a295
Fixed #28288 -- Allowed passing papsz options to GDALRaster initialization.
2017-06-08 12:44:26 -04:00
Claude Paroz
2862760894
Fixed #28257 -- 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 #28232 -- Made raster metadata readable and writable on GDALRaster/Band.
2017-06-07 11:30:35 -04:00
Jon Dufresne
2c69824e5a
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
2017-06-01 19:08:59 -04:00
Adam Johnson
9509268cea
Refs #23804 -- 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 #28249 -- 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 #27804 -- Used subTest() in several tests.
2017-05-24 08:36:34 -04:00
R3turnz
502f03d897
Fixed #28112 -- Added 'time_zone' in GeoIP2.city() dict.
2017-05-22 21:07:14 -04:00
Danilo Bargen
a7975260b5
Fixed #28195 -- 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 #28160 -- 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 #28160 .
2017-05-04 20:29:19 -04:00
Dylan Verheul
75aeebebfe
Fixed #28105 -- Fixed crash in BaseGeometryWidget.get_context() when overriding existing attrs.
2017-04-30 20:19:12 -04:00
Claude Paroz
3f1ba76851
Fixed #28115 -- 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 #28039 -- Fixed crash in BaseGeometryWidget.subwidgets().
2017-04-20 11:36:40 -04:00
Sergey Fedoseev
e7afef13f5
Fixed #26788 -- Fixed QuerySet.update() crash when updating a geometry to another one.
2017-04-10 13:26:26 -04:00
Sergey Fedoseev
fd892f3443
Fixed #28006 -- Allowed using D with lookups on Distance annotations.
2017-04-06 19:27:45 -04:00
Sergey Fedoseev
898e623db0
Fixed #27573 -- Made Distance on geodetic coordinates return a raw value on MySQL.
2017-04-02 17:06:01 -04:00
Sergey Fedoseev
5e710cf4a5
Fixed #11854 -- Added Azimuth GIS function. ( #8286 )
2017-04-02 14:24:06 -04:00
Sergey Fedoseev
24023c6a8f
Fixed #25874 -- Made GEOSGeometry read SRID from GeoJSON input.
2017-04-01 15:35:30 -04:00
Sergey Fedoseev
ede4f6d48c
Fixed #12410 -- Added LineLocatePoint GIS function.
2017-04-01 15:02:09 -04:00
Sergey Fedoseev
0a13b249e2
Fixed #26967 -- Added MySQL support for AsGeoJSON, GeoHash, IsValid functions, and isvalid lookup.
2017-04-01 13:43:53 -04:00
Sergey Fedoseev
bde86ce9ae
Fixed #25605 -- 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 #25873 -- Made GEOSGeometry handle the srid parameter more predictably.
2017-03-30 09:38:26 -04:00
Sergey Fedoseev
4bc355079c
Fixed #27973 -- 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 #27736 -- Used decorators for GIS lookup registration.
2017-03-27 22:20:18 -04:00
Sergey Fedoseev
1b1ea63f6a
Fixed #27962 -- Allowed lookups on Area annotations.
2017-03-23 20:06:16 -04:00
Sergey Fedoseev
e9149d3eb0
Fixed #27603 -- Fixed AsKML when queryset is evaluated more than once.
2017-03-23 19:09:04 -04:00
Sergey Fedoseev
816c5753ac
Fixed #27965 -- Fixed precision comparison in a geoforms test (refs #27939 ).
2017-03-21 09:04:41 -04:00
Tim Graham
93eca976c1
Fixed #27939 -- Updated OpenLayersWidget.map_srid for OpenLayers 3.
...
Regression in 2ebfda38e6
(refs #25004 ).
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
Sergey Fedoseev
6f913c0305
Refs #27788 -- Removed Oracle 11 workarounds in GIS tests.
2017-03-13 19:21:20 -04:00
Tim Graham
ab83d4d8fe
Added multi_db=True to test cases that access the 'other' db connection.
...
Fixed a failure in the context processors tests when running in
reverse on MySQL due to an extra query after refs #27683 .
2017-02-10 08:19:32 -05:00
Vytis Banaitis
8838d4dd49
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
2017-02-01 11:41:56 -05:00
Tim Graham
0de0699d94
Fixed #27788 -- Dropped support for Oracle < 12.1.
2017-01-28 08:19:47 -05:00
chillaranand
d6eaf7c018
Refs #23919 -- Replaced super(ClassName, self) with super().
2017-01-25 12:23:46 -05:00
Claude Paroz
6e55e1d88a
Refs #23919 -- Replaced six.reraise by raise
2017-01-22 20:08:04 +01:00
Tim Graham
7aba69145d
Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.
2017-01-20 08:17:20 -05:00
Tim Graham
4e729feaa6
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
...
These functions do nothing on Python 3.
2017-01-20 08:01:02 -05:00
Simon Charette
cecc079168
Refs #23919 -- Stopped inheriting from object to define new style classes.
2017-01-19 08:39:46 +01:00
Claude Paroz
2b281cc35e
Refs #23919 -- Removed most of remaining six usage
...
Thanks Tim Graham for the review.
2017-01-18 21:33:28 +01:00
Claude Paroz
7b2f2e74ad
Refs #23919 -- 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 #23919 -- Removed python_2_unicode_compatible decorator usage
2017-01-18 13:44:34 +01:00
Claude Paroz
d7b9aaa366
Refs #23919 -- Removed encoding preambles and future imports
2017-01-18 09:55:19 +01:00
Tim Graham
1691782652
Refs #26509 -- Removed contrib.gis.utils.precision_wkt() per deprecation timeline.
2017-01-17 20:52:04 -05:00
Tim Graham
7e63e84572
Refs #25773 -- Removed deprecated geos.MultiPolygon.cascaded_union property.
2017-01-17 20:52:02 -05:00
Tim Graham
997c9f7099
Refs #25665 -- Removed deprecated getter/setter of Point.tuple.
2017-01-17 20:52:02 -05:00
Tim Graham
19d8e64ac3
Refs #25665 -- Removed deprecated getters/setters of Point coordinate properties.
2017-01-17 20:52:02 -05:00
Tim Graham
a0149848f7
Refs #25665 -- Removed GEOSGeometry.get/set_srid() per deprecation timeline.
2017-01-17 20:52:01 -05:00
Tim Graham
56a5760543
Refs #25184 -- Removed contrib.gis.geoip per deprecation timeline.
2017-01-17 20:52:00 -05:00
Tim Graham
a0d166306f
Removed GeoManager and GeoQuerySet per deprecation timeline.
2017-01-17 20:51:56 -05:00
Claude Paroz
946dd5bde2
Refs #25004 -- Fixed test failure introduced by OpenLayers 3 update.
2017-01-03 11:11:00 -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
Claude Paroz
2ebfda38e6
Fixed #25004 -- Updated OpenLayers-based widget to OpenLayers 3
...
Thanks Tim Graham for the review.
2017-01-02 19:45:52 +01: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
b01ceae843
Fixed #25938 -- Factored out CPointerBase base class for GEOSBase/GDALBase.
2016-12-15 16:59:08 -05:00
Sergey Fedoseev
4884472447
Fixed #27576 -- Made get_srid_info() fallback to GDAL if SpatialRefSys is unavailable.
2016-12-15 16:36:18 -05:00
Sergey Fedoseev
986c7d522a
Fixed #27497 -- Improved support of geodetic coordinates on SpatiaLite.
...
Area function, Distance function, and distance lookups now work with
geodetic coordinates on SpatiaLite.
2016-12-15 15:31:07 -05:00
Sergey Fedoseev
38a6df555f
Fixed #27602 -- Added Oracle support for BoundingCircle GIS function.
2016-12-15 14:16:09 -05:00
Sergey Fedoseev
5a23cc00f5
Fixed #27607 -- 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
Sergey Fedoseev
9b79281e31
Fixed #27472 -- Fixed GEOSGeometry('POINT EMPTY').transform crash.
2016-12-08 10:24:05 -05:00