1
0
mirror of https://github.com/django/django.git synced 2025-03-23 07:40:44 +00:00

57 Commits

Author SHA1 Message Date
Mariusz Felisiak
83a36ac49a
Removed unnecessary trailing commas and spaces in various code. 2017-12-28 21:07:29 +01:00
Sergey Fedoseev
93cdd07e8f Used bytes.hex() and bytes.fromhex() to simplify. 2017-11-23 08:52:23 -05:00
Niall Dalton
4fe6588da3 Fixed -- Added color interpretation method to GDALBand. 2017-09-21 09:42:38 -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
197b1878105504b5ac7e399e1f52a6093c88baa3.
2017-09-03 21:19:37 -04:00
Claude Paroz
546412e673 Fixed -- Converted GDAL Feature.fields to strings 2017-08-15 19:31:22 +02: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
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
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
Tim Graham
2dc3280254 Fixed -- Prevented hiding GDAL exceptions when it's not installed. 2017-05-04 20:45:18 -04:00
Tim Graham
7aba69145d Refs -- Removed django.test.mock Python 2 compatibility shim. 2017-01-20 08:17:20 -05:00
Tim Graham
4e729feaa6 Refs -- 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 -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01: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
d7b9aaa366 Refs -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
Sergey Fedoseev
a413ef2155 Refs -- Fixed OGRGeometry('POINT EMPTY').geos crash. 2016-12-08 10:24:05 -05:00
Tim Graham
b5f0b3478d Fixed -- Added aliases for Python 3's assertion names in SimpleTestCase. 2016-12-07 17:42:31 -05:00
Nicolas Noé
a269018e86 Fixed -- Fixed test failure with recent GDAL versions 2016-11-19 16:41:18 +01:00
Ramin Farajpour Cami
967be82443 Fixed E305 flake8 warnings. 2016-11-14 12:30:46 -05:00
Claude Paroz
8c7778884b Dropped support for GDAL 1.7 and 1.8 2016-11-12 17:28:03 +01:00
Daniel Wiesmann
2dc07da497 Fixed -- Added shape, size, and offset controls to GDALRaster constructor.
Thanks Tim Graham for the review.
2016-11-11 07:09:38 -05:00
za
321e94fa41 Refs -- Removed "Tests that", "Ensures that", etc. from test docstrings. 2016-11-10 21:30:21 -05:00
Tim Graham
8119b679eb Refs -- Fixed "invalid escape sequence" warnings in Python 3.6.
http://bugs.python.org/issue27364
2016-09-17 15:44:06 -04:00
Matthew Somerville
fb951fb0c5 Fixed -- Registered vcapi/rcapi GDAL prototypes based on their own drivers. 2016-08-23 17:30:11 -04:00
Tim Graham
c9ae09addf Replaced use of TestCase.fail() with assertRaises().
Also removed try/except/fail antipattern that hides exceptions.
2016-06-28 11:21:26 -04:00
Tim Graham
9f66302797 Removed a test workaround for some old GDAL 1.7.x versions. 2016-06-23 16:24:18 -04:00
Sergey Fedoseev
5ce660cd65 Fixed -- Added OGRGeometry.from_gml() and GEOSGeometry.from_gml(). 2016-06-21 15:46:27 -04:00
Sergey Fedoseev
6928ad184e Fixed -- Fixed crashes in SpatialReference with non-ASCII characters. 2016-06-11 21:03:22 -04:00
Claude Paroz
72ff70fba5 Made GDAL proj test less fragile
The WGS84 proj string can differ depending on installed libs.
Refs .
2016-05-07 19:45:50 +02:00
Tim Graham
a3265af808 Refs -- Skipped a raster test as needed. 2016-04-16 16:24:32 -04:00
Opa-
461f74ab19 Fixed -- Fixed size tuple order when using numpy reshape on a GDALBand. 2016-04-12 10:12:19 -04:00
Tim Graham
92053acbb9 Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
Daniel Wiesmann
870dd1d38b Fixed -- Allowed setting GDALBand data with partial values. 2016-03-29 11:08:36 -04:00
Daniel Wiesmann
f1db8c36e9 Fixed -- Allowed deleting nodata value on GDALBands. 2016-03-29 08:06:31 -04:00
Hasan
3d0dcd7f5a Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
Sergey Fedoseev
a6c803a2e3 Fixed -- Made predicates of OGRGeometry return bool instead of int. 2015-12-14 11:30:36 -05:00
Daniel Wiesmann
0e7d59df3e Refs -- Relaxed GDALRaster statistics test to use assertAlmostEqual.
Some versions of GDAL give slightly different results.
2015-12-04 07:35:50 -05:00
Daniel Wiesmann
8f5904560a Fixed -- Made GDALBand min and max properties use GDALComputeRasterStatistics.
Thanks Sergey Fedoseev and Tim Graham for the review.
2015-11-25 13:40:39 -05:00
Daniel Wiesmann
48548d1a47 Refs -- Added the srid property to GDALRaster
Geometry objects have an srid property, so this addition makes the raster api
more similar to the geometries api.
2015-10-28 15:27:19 +01:00
Sergey Fedoseev
0dbe897ab5 Fixed -- Allowed setting OGRGeometry srid/srs attributes to None. 2015-10-21 18:54:28 -04:00
Daniel Wiesmann
5d8985005e Fixed -- Changed datatype mapping for GDALRasters 2015-10-09 15:35:00 +02:00
Claude Paroz
0cc39e50e1 Pushed GDAL skip condition inside test
As GDAL_VERSION is conditionnaly imported, it cannot be referenced
in skipIf decorator.
2015-06-26 14:57:45 +02:00
Daniel Wiesmann
b647ccfa67 Refs -- Added skip flag to raster transform test for GDAL<1.8.1.
Thanks to Simon Charette for the report.
2015-06-26 14:30:54 +02:00
Daniel Wiesmann
c078021555 Refs -- Added GDALRaster Warp and transform methods
Thanks to Tim Graham for the review.
2015-06-24 18:31:22 +02:00
Claude Paroz
ffdf507ec0 Added GDAL 2.0 support 2015-06-20 14:40:50 +02:00