#27103: GDAL driver ensure_registered should check counts separately
----------------------------+--------------------
     Reporter:  dracos      |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  GIS         |    Version:  1.10
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  1
Easy pickings:  0           |      UI/UX:  0
----------------------------+--------------------
 It is possible for external code to register some of the drivers, and then
 Django code will die because it expects them all to have been registered.
 For example, on a standard Debian box (wheezy or jessie), the following
 code works fine:

 from django.contrib.gis.gdal import DataSource
 ds = DataSource('/home/matthew/data.shp')

 whilst the following code dies saying the file could not be loaded:

 from osgeo import gdal
 from django.contrib.gis.gdal import DataSource
 ds = DataSource('/home/matthew/data.shp')

 This is because the osgeo import has registered the raster drivers, but
 not the data source ones, and yet Django's ensure_registered will only try
 and register both if the overall count is zero.

--
Ticket URL: <https://code.djangoproject.com/ticket/27103>
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/049.56c967be6f610876bfe8f24d3d137207%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to