#7705: GDAL datasource bug
-----------------------------+----------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  Uncategorized    |     Version:  SVN       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 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

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7705>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to