[Gdal-dev] tigerpoly.py GetLayerByName

Simpson asimpson at i-55.com
Thu Mar 10 12:14:09 EST 2005


Greetings,

I am trying to run tigerpoly.py but keep getting:

 ./tigerpoly.py TGR06001.RT1 test.shp
Traceback (most recent call last):
  File "./tigerpoly.py", line 97, in ?
    poly_layer = ds.GetLayerByName( 'Polygon' )
AttributeError: DataSource instance has no attribute 'GetLayerByName'

Having not a clue about python, is this a data issue?


Using gdal-1.2.6b3 on Linux 2.4.20-20.8 

Thanks,
Drew.




More information about the Gdal-dev mailing list