3
El objeto 'NoneType' no tiene atributo
Soy nuevo en la programación geoespacial de Python. ejecuté el siguiente script y obtuve el mensaje de error correspondiente >>> import osgeo >>> import osgeo.ogr >>> shapefile = osgeo.ogr.Open("tl_2009_us_state.shp") >>> numLayers = shapefile.GetLayerCount() Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> numLayers = shapefile.GetLayerCount() AttributeError: 'NoneType' object …