boesiii / flowtrace Goto Github PK
View Code? Open in Web Editor NEWFlow Trace Plugin for Qgis
Flow Trace Plugin for Qgis
I am trying to use this plugin to find connectivity issues in a linear network of pipes. I got to wondering how does the plugin determine down stream vs up stream? Does it go by the digitized direction? Or is it using the Z values in a Z aware feature class?
In the QGIS 3 version the first dialog now has a cancel button, which is an improvement (It seems to me like there is no reason for the first dialog to exist without a cancel button, unless you intend to make it display the selected layer name or number of selected features or something).
But if I click the cancel button there is a python error:
2019-10-04T17:01:10 WARNING Traceback (most recent call last):
File "C:/Users/alistair/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\flowTrace\flowtrace.py", line 319, in run
for fid in final_list:
UnboundLocalError: local variable 'final_list' referenced before assignment
Flow Trace was working well but havent used it for a while and now no longer working....
An error has occured while executing Python code:
Traceback (most recent call last):
File "C:/Users/xxxxx/.qgis2/python/plugins\flowTrace\flowtrace.py", line 117, in run
upstream_coord = nodes[0]
IndexError: list index out of range
Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
QGIS version:
2.8.2-Wien Wien, 1b929ef
Python path: ['C:/Users/xxxxx/.qgis2/python/plugins\processing', 'C:/PROGRA1/QGISWI1/apps/qgis/./python', u'C:/Users/xxxxx/.qgis2/python', u'C:/Users/xxxxx/.qgis2/python/plugins', 'C:/PROGRA1/QGISWI1/apps/qgis/./python/plugins', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\nose-1.3.3-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\tornado-4.0.1-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\backports.ssl_match_hostname-3.4.0.2-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\certifi-14.05.14-py2.7.egg', 'C:\PROGRA1\QGISWI1\bin\python27.zip', 'C:\PROGRA1\QGISWI1\apps\Python27\DLLs', 'C:\PROGRA1\QGISWI1\apps\Python27\lib', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\plat-win', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\lib-tk', 'C:\PROGRA1\QGISWI1\bin', 'C:\PROGRA1\QGISWI1\apps\Python27', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg', u'C:/Users/xxxxx/.qgis2//python', 'C:\Users\xxxxx.qgis2\python\plugins\DigitizingTools\tools', 'C:\PROGRA1\QGISWI1\apps\qgis\python\plugins\fTools\tools', 'N:/GIS Projects/QGIS Templates']
Hi,
just a short question: Do you have plans to update flowtrace to be compatible with QGIS3?
regards,
Thomas
the selection is not reaching all the upstream ends. could you please provide details about the used algorithm?
This could act as home page and code repo
Steps to reproduce
Traceback (most recent call last):
File "C:/Users/hp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\flowTrace\flowtrace.py", line 231, in run
features = clayer.selectedFeatures()
AttributeError: 'QgsRasterLayer' object has no attribute 'selectedFeatures'
flowTrace 1.0.1, QGIS 3.6.2-Noosa on Windows 10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.