﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27103	GDAL driver ensure_registered should check counts separately	Matthew Somerville	nobody	"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."	Bug	closed	GIS	1.10	Normal	fixed			Accepted	1	0	1	0	0	0
