#7705: GDAL datasource bug
--------------------------------------+-------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: jbronn
Status: new | Milestone:
Component: GIS | Version: gis
Resolution: | Keywords: gdal datasource
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Changes (by jbronn):
* keywords: => gdal datasource
* owner: nobody => jbronn
* component: Uncategorized => GIS
Old 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
New 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
--
Ticket URL: <http://code.djangoproject.com/ticket/7705#comment:2>
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
-~----------~----~----~----~------~----~------~--~---