Opened 16 years ago
Last modified 16 years ago
#7705 closed
GDAL datasource bug — at Initial Version
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | GIS | Version: | gis |
Severity: | Keywords: | gdal datasource | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When I did this:
from django.contrib.gis.gdal import DataSource
ds = DataSource(fn)
for layer in ds:
for item in layer:
print item.geom, item.fields
I got that:
File "../basescript.py", line 24, in importInteractiveLayer
print item.geom, item.fields
File "/usr/lib/python2.5/site-packages/django/contrib/gis/gdal/feature.py", line 87, in fields
for i in xrange(self.num_fields)]
NameError: global name 'get_field_name' is not defined
I'm using gdal 1.5.1 and geodjango revision 7870