#1 Wed 18 June 2014 10:10
- amandine.pons
- Participant actif
- Lieu: Rodez
- Date d'inscription: 18 Jan 2011
- Messages: 147
QGIS 2.0.1 : Erreur plugin contour
bonjour,
j utilise le plugin contour mais j'ai plusieurs erreurs (voir ci dessous) qui apparaissent, du coup ça ne marche pas.
savez vous d'où ça peut venir
merci
Execption struck: 12497
Une erreur est apparue lors de l'exécution du code python :
Traceback (most recent call last):
File "C:\Users\amandine.pons/.qgis2/python/plugins\contour\contour.py", line 371, in accept
self.makeFilledContours()
File "C:\Users\amandine.pons/.qgis2/python/plugins\contour\contour.py", line 584, in makeFilledContours
polygons = self.computeFilledContours( asLayers )
File "C:\Users\amandine.pons/.qgis2/python/plugins\contour\contour.py", line 651, in computeFilledContours
self._computeFilledContoursForLevel(levels,extend,polygons)
File "C:\Users\amandine.pons/.qgis2/python/plugins\contour\contour.py", line 658, in _computeFilledContoursForLevel
cs = plt.tricontourf(x, y, z, levels, extend=extend)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\pyplot.py", line 3108, in tricontourf
ret = ax.tricontourf(*args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\axes.py", line 8926, in tricontourf
return mtri.tricontourf(self, *args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\tricontour.py", line 287, in tricontourf
return TriContourSet(ax, *args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\tricontour.py", line 36, in __init__
ContourSet.__init__(self, ax, *args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\contour.py", line 780, in __init__
self._process_args(*args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\tricontour.py", line 47, in _process_args
tri, z = self._contour_args(args, kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\tricontour.py", line 82, in _contour_args
Triangulation.get_from_args_and_kwargs(*args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\triangulation.py", line 172, in get_from_args_and_kwargs
triangulation = Triangulation(x, y, triangles, mask)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\triangulation.py", line 72, in __init__
dt = delaunay.Triangulation(self.x, self.y)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\delaunay\triangulate.py", line 123, in __init__
self.hull = self._compute_convex_hull()
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\delaunay\triangulate.py", line 158, in _compute_convex_hull
hull.append(edges.pop(hull[-1]))
KeyError: 12497
Version de Python :
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
Version de QGIS :
2.0.1-Dufour Dufour, 34139bc
Chemin vers Python : ['C:\\Users\\amandine.pons/.qgis2/python/plugins\\processing', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python', 'C:\\Users\\amandine.pons/.qgis2/python', 'C:\\Users\\amandine.pons/.qgis2/python/plugins', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins', 'C:\\PROGRA~1\\QGISDU~1\\bin\\python27.zip', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\DLLs', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\plat-win', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\lib-tk', 'C:\\PROGRA~1\\QGISDU~1\\bin', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\Users\\amandine.pons\\.qgis2\\python\\plugins\\cadastre/forms', 'C:\\Users\\amandine.pons\\.qgis2\\python\\plugins\\DigitizingTools\\tools', 'C:\\PROGRA~1\\QGISDU~1\\apps\\qgis\\python\\plugins\\fTools\\tools']
Exception struck: 1157
Une erreur est apparue lors de l'exécution du code python :
Traceback (most recent call last):
File "C:\Users\amandine.pons/.qgis2/python/plugins\contour\contour.py", line 371, in accept
self.makeFilledContours()
File "C:\Users\amandine.pons/.qgis2/python/plugins\contour\contour.py", line 584, in makeFilledContours
polygons = self.computeFilledContours( asLayers )
File "C:\Users\amandine.pons/.qgis2/python/plugins\contour\contour.py", line 651, in computeFilledContours
self._computeFilledContoursForLevel(levels,extend,polygons)
File "C:\Users\amandine.pons/.qgis2/python/plugins\contour\contour.py", line 658, in _computeFilledContoursForLevel
cs = plt.tricontourf(x, y, z, levels, extend=extend)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\pyplot.py", line 3108, in tricontourf
ret = ax.tricontourf(*args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\axes.py", line 8926, in tricontourf
return mtri.tricontourf(self, *args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\tricontour.py", line 287, in tricontourf
return TriContourSet(ax, *args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\tricontour.py", line 36, in __init__
ContourSet.__init__(self, ax, *args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\contour.py", line 780, in __init__
self._process_args(*args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\tricontour.py", line 47, in _process_args
tri, z = self._contour_args(args, kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\tricontour.py", line 82, in _contour_args
Triangulation.get_from_args_and_kwargs(*args, **kwargs)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\triangulation.py", line 172, in get_from_args_and_kwargs
triangulation = Triangulation(x, y, triangles, mask)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\tri\triangulation.py", line 72, in __init__
dt = delaunay.Triangulation(self.x, self.y)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\delaunay\triangulate.py", line 123, in __init__
self.hull = self._compute_convex_hull()
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\matplotlib\delaunay\triangulate.py", line 158, in _compute_convex_hull
hull.append(edges.pop(hull[-1]))
KeyError: 1157
Version de Python :
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
Version de QGIS :
2.0.1-Dufour Dufour, 34139bc
Chemin vers Python : ['C:\\Users\\amandine.pons/.qgis2/python/plugins\\processing', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python', 'C:\\Users\\amandine.pons/.qgis2/python', 'C:\\Users\\amandine.pons/.qgis2/python/plugins', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins', 'C:\\PROGRA~1\\QGISDU~1\\bin\\python27.zip', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\DLLs', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\plat-win', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\lib-tk', 'C:\\PROGRA~1\\QGISDU~1\\bin', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\Users\\amandine.pons\\.qgis2\\python\\plugins\\cadastre/forms', 'C:\\Users\\amandine.pons\\.qgis2\\python\\plugins\\DigitizingTools\\tools', 'C:\\PROGRA~1\\QGISDU~1\\apps\\qgis\\python\\plugins\\fTools\\tools']
Hors ligne
#2 Wed 25 June 2014 11:49
- amandine.pons
- Participant actif
- Lieu: Rodez
- Date d'inscription: 18 Jan 2011
- Messages: 147
Re: QGIS 2.0.1 : Erreur plugin contour
je précise que ces erreurs apparaissent sur certains fichiers points sans que j arrive a en déterminer la raison
- le nombre de points ne semble pas déterminant (21000 ok, 8000 bug)
- même projection dans tous les fichiers
- la densité de points ne semble pas être toujours une explication (1 point tous les mètres)
- fichiers de forme X Y Z basique
- test en changeant virgule en point et inversement et même passage en .csv (Excel) pour s assurer du bon format des nombres.
est ce que vous avez savez s'il y a des précautions à prendre sur le fichier de points (nombre, densité, répartition des points,...) pour simplifier le travail de l'algorithme?
merci beaucoup de vos réponses
Hors ligne