Describe the bug
Profile tool crashes with a TypeError (see below).
To Reproduce
Exact steps to reproduce the behavior:
Use profile tool
. See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots / data
Traceback (most recent call last):
File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwmaptools.py", line 145, in canvasReleaseEvent
self.leftClicked(event)
File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwmaptools.py", line 468, in leftClicked
pf = self.findPath(self.selectedPathPoints[-1][0], match.featureId())
File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwmaptools.py", line 312, in findPath
self.appendProfile(vertices, edges)
File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwmaptools.py", line 405, in appendProfile
elem = TwwProfileSpecialStructureElement(
File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwprofile.py", line 308, in init
TwwProfileEdgeElement.init(
File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwprofile.py", line 90, in init
self.addSegment(
File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwprofile.py", line 385, in addSegment
self.detailGeometry = node_cache.attrAsGeometry(
File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwnetwork.py", line 436, in attrAsGeometry
m = re.search("(.;)?(.)", ewktstring)
File "C:\OSGeo4W\apps\Python39\lib\re.py", line 201, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
Desktop (please complete the following information):
[ ] integrate small bug fixes as provided above backflow_level was renamed backflow_level_current @3nids
[ ] @urskaufmann - Network following has problems on qgep also. Issue raised for this xxx
if not disable it so it does not show up as button
[ ] suggestion to move away from networkx implementation - current problems it is slow, alternative move to database instead and/or use new QGIS tools @ponceta starts new feature and refactoring process (get user inputs for refactoring also @urskaufmann )
Describe the bug Profile tool crashes with a TypeError (see below).
To Reproduce Exact steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots / data Traceback (most recent call last): File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwmaptools.py", line 145, in canvasReleaseEvent self.leftClicked(event) File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwmaptools.py", line 468, in leftClicked pf = self.findPath(self.selectedPathPoints[-1][0], match.featureId()) File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwmaptools.py", line 312, in findPath self.appendProfile(vertices, edges) File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwmaptools.py", line 405, in appendProfile elem = TwwProfileSpecialStructureElement( File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwprofile.py", line 308, in init TwwProfileEdgeElement.init( File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwprofile.py", line 90, in init self.addSegment( File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwprofile.py", line 385, in addSegment self.detailGeometry = node_cache.attrAsGeometry( File "C:\Users/%usr%/AppData/Roaming/QGIS/QGIS3\profiles\tww_dev/python/plugins\teksi_wastewater\tools\twwnetwork.py", line 436, in attrAsGeometry m = re.search("(.;)?(.)", ewktstring) File "C:\OSGeo4W\apps\Python39\lib\re.py", line 201, in search return _compile(pattern, flags).search(string) TypeError: expected string or bytes-like object
Desktop (please complete the following information):
Additional context
CRITICAL Unknown field backflow_level
. Renaming backflow_level to backflow_level_current solves this part, but the problem remains