Re: Geodjango layermapping utility

2017-01-23 Thread jbanting
Replacing lines 92-96 in layermapping.py with if isinstance(data[0], six.string_types): self.ds = DataSource(data[0], encoding=encoding) else: self.ds = data self.layer = self.ds[layer] worked for me. -- You received this message because you are subscribed to the Google Groups

Re: Geodjango layermapping utility

2017-01-23 Thread jbanting
It seems like layermapping.py is not seeing the data as an instance of six.string_types and therefore doesn't build a GDAL Datasource from it. Line 92-96 of contrib\gis\utils\layermaping.py if isinstance(data, six.string_types): self.ds = DataSource(data, encoding=encoding) else: self.ds =