#24724: GeoDjango with Django 1.8 - 'GDALAllRegister' Attribute Error
-------------------------------------+-------------------------------------
Reporter: dimitri-justeau | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: 1.8
Severity: Release blocker | Resolution:
Keywords: geodjango gdal | Triage Stage: Accepted
windows rasters |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by timgraham):
After applying that patch, I have the following test failures on my
Windows system. Some of them may have preceded the work on rasters, but
the raster failures are a bit troubling as far as confirming this patch is
correct. Do you have any expertise to help resolve them? GDAL version is
1.11.2.
{{{
======================================================================
ERROR: test03a_layers (gis_tests.gdal_tests.test_ds.DataSourceTest)
Testing Data Source Layers.
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\Users\Tim\code\django\tests\gis_tests\gdal_tests\test_ds.py",
line 12
5, in test03a_layers
self.assertRaises(OGRIndexError, layer.__getitem__, 50000)
File "C:\Python27\Lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "c:\users\tim\code\django\django\contrib\gis\gdal\layer.py", line
51, in
__getitem__
return self._make_feature(index)
File "c:\users\tim\code\django\django\contrib\gis\gdal\layer.py", line
84, in
_make_feature
return Feature(capi.get_feature(self.ptr, feat_id), self)
WindowsError: [Error -1073741795] Windows Error 0xC000001D
======================================================================
ERROR: test07b_closepolygons (gis_tests.gdal_tests.test_geom.OGRGeomTest)
Testing closing Polygon objects.
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\Users\Tim\code\django\tests\gis_tests\gdal_tests\test_geom.py",
line
250, in test07b_closepolygons
poly.centroid
File "c:\users\tim\code\django\django\contrib\gis\gdal\geometries.py",
line 62
7, in centroid
capi.get_centroid(self.ptr, p.ptr)
WindowsError: [Error -1073741795] Windows Error 0xC000001D
======================================================================
ERROR: test_band_data_setters
(gis_tests.gdal_tests.test_raster.GDALBandTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"c:\Users\Tim\code\django\tests\gis_tests\gdal_tests\test_raster.py", lin
e 194, in test_band_data_setters
'srid': 4326,
File
"c:\users\tim\code\django\django\contrib\gis\gdal\raster\source.py", line
105, in __init__
None
TypeError: this function takes 6 arguments (7 given)
======================================================================
ERROR: test_file_based_raster_creation
(gis_tests.gdal_tests.test_raster.GDALRas
terTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"c:\Users\Tim\code\django\tests\gis_tests\gdal_tests\test_raster.py", lin
e 142, in test_file_based_raster_creation
'nodata_value': self.rs.bands[0].nodata_value
File
"c:\users\tim\code\django\django\contrib\gis\gdal\raster\source.py", line
105, in __init__
None
TypeError: this function takes 6 arguments (7 given)
======================================================================
ERROR: test_geotransform_and_friends
(gis_tests.gdal_tests.test_raster.GDALRaste
rTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"c:\Users\Tim\code\django\tests\gis_tests\gdal_tests\test_raster.py", lin
e 100, in test_geotransform_and_friends
rsmem = GDALRaster(JSON_RASTER)
File
"c:\users\tim\code\django\django\contrib\gis\gdal\raster\source.py", line
105, in __init__
None
TypeError: this function takes 6 arguments (7 given)
======================================================================
ERROR: test_custom_srid (gis_tests.geos_tests.test_geos.GEOSTest)
Test with a srid unknown from GDAL
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\Users\Tim\code\django\tests\gis_tests\geos_tests\test_geos.py",
line
647, in test_custom_srid
self.assertIsInstance(pnt.ogr, gdal.OGRGeometry)
File "c:\users\tim\code\django\django\contrib\gis\geos\geometry.py",
line 462,
in ogr
return gdal.OGRGeometry(self.wkb, self.srid)
File "c:\users\tim\code\django\django\contrib\gis\gdal\geometries.py",
line 11
7, in __init__
self.srs = srs
File "c:\users\tim\code\django\django\contrib\gis\gdal\geometries.py",
line 27
1, in _set_srs
sr = SpatialReference(srs)
File "c:\users\tim\code\django\django\contrib\gis\gdal\srs.py", line 95,
in __
init__
self.import_epsg(srs_input)
File "c:\users\tim\code\django\django\contrib\gis\gdal\srs.py", line
286, in i
mport_epsg
capi.from_epsg(self.ptr, epsg)
WindowsError: exception: access violation writing 0x0000000F
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24724#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/073.e63cb0279af07918e598e1652a9bdd9c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.