ccrook / QGIS-Contour-Plugin

Contour plugin for QGIS - uses python matplotlib to generate contours of data on vector point data.
43 stars 13 forks source link

Issues when handling integer fields #1

Closed apryet closed 10 years ago

apryet commented 10 years ago

First of all congratulation for this plugin. But unfortunately, it crashes when handling field of type "integer"

Error message below :

---------------------------------------------------------------------------------------

An error has occured while executing Python code:

Traceback (most recent call last): File "~/.qgis2/python/plugins/contour/contour.py", line 277, in uFieldNameUpdate self.uMinContour.setValue(np.min(z)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/fromnumeric.py", line 1895, in amin return amin(axis, out) ValueError: zero-size array to minimum.reduce without identity

Python version: 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]

QGIS version: 2.0.1-Dufour Dufour, f738351

Python path: ['/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing', '/Applications/QGIS.app/Contents/MacOS/../Resources/python', '~/.qgis2/python', '~/.qgis2/python/plugins', '/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins', '/Library/Frameworks/SQLite3.framework/Versions/B/Python/2.7', '/Library/Frameworks/GDAL.framework/Versions/1.10/Python/2.7/site-packages', '/Library/Python/2.7/site-packages/phreeqpy-0.2.0-py2.7.egg', '/Library/Python/2.7/site-packages/Shapely-1.2.18-py2.7.egg', '/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-packages', '/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages', '/usr/local/lib/wxPython-2.9.4.0/lib/python2.7', '/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools', '~/recherche/Seine/SIG']

ccrook commented 10 years ago

Thanks. I see the problem is that it is ignoring integer values and then dying when it finds no data values. I've uploaded a new version which hopefully fixes this (did for me at least :-)

apryet commented 10 years ago

Great. Just a question : when I clone your project on git hub, the plugin contour is not suitable for Qgis 2.0. Do you intend to apply the small updates for this plugin to be compatible with the last version ? Thanks !

ccrook commented 10 years ago

Did you clone from master - I see I've left an old qgis2 branch there, which was a development branch now merged to master. I'll tidy that up (and put in a 1.8 branch)


From: Alexandre Pryet [notifications@github.com] Sent: 27 September 2013 05:12 To: ccrook/QGIS-Contour-Plugin Cc: Chris Crook Subject: Re: [QGIS-Contour-Plugin] Issues when handling integer fields (#1)

Great. Just a question : when I clone your project on git hub, the plugin contour is not suitable for Qgis 2.0. Do you intend to apply the small updates for this plugin to be compatible with the last version ? Thanks !

— Reply to this email directly or view it on GitHubhttps://github.com/ccrook/QGIS-Contour-Plugin/issues/1#issuecomment-25185544.

This message contains information, which is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info@linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.