[GRASS-windows] Errore durante l'esecuzione di codice Python:

claudia.santese at cooperativaimpronte.it claudia.santese at cooperativaimpronte.it
Fri Sep 24 12:56:10 EDT 2010


Ciao a tutti,
ultimamente ho sempre problemi con Python mentre utilizzo Qgis.
Vi posto uno dei tanti errori mentre utilizzo il plugin ogr2Layer.
Sapete dirmi dov'è il problema?
Vi ringrazio!

Claudia

Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
  File "C:\Users\Claudia/.qgis/python/plugins\OGR2Layers\ogr2Layers.py",
line 217, in WriteKML
    if (vect_OGR2Layers.createOGR(layer,self.dlg.ui,mydir,self.iface)):
  File
"C:\Users\Claudia/.qgis/python/plugins\OGR2Layers\vect_OGR2Layers.py", line
83, in createOGR
   
ogr2ogr.Ogr2Ogr(str(mysource),mydestpath,outputepsg,myproj4,outputFormat)
  File "C:\Users\Claudia/.qgis/python/plugins\OGR2Layers\ogr2ogr.py", line
42, in Ogr2Ogr
    inGeomType = inFeature.GetGeometryRef().GetGeometryType()
AttributeError: 'NoneType' object has no attribute 'GetGeometryRef'

Versione Python:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]


Versione di QGIS:
1.5.0-Tethys Tethys, 13923M

Percorso Python: ['C:\\Users\\Claudia\\.qgis\\python\\plugins\\GeoCoding',
'C:\\Users\\Claudia\\.qgis\\python\\plugins\\elevation',
'C:/OSGeo4W/apps/qgis/./python', 'C:\\Users\\Claudia/.qgis/python',
'C:\\Users\\Claudia/.qgis/python/plugins',
'C:/OSGeo4W/apps/qgis/./python/plugins',
'C:\\OSGeo4W\\apps\\gdal-16\\pymod', 'C:\\',
'C:\\OSGeo4W\\bin\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs',
'C:\\OSGeo4W\\apps\\Python25\\lib',
'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\\bin',
'C:\\OSGeo4W\\apps\\Python25',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
u'C:/Users/Claudia/.qgis//python/plugins',
'C:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools',
'C:/Users/Claudia/Desktop']


More information about the grass-windows mailing list