teksi / wastewater

[DEV] Future TEKSI wastewater module, adapted data model to fit VSA-DSS 2020 new standard
https://teksi.github.io/wastewater
GNU General Public License v3.0
0 stars 5 forks source link

ProfileTool Error #91

Closed cymed closed 5 months ago

cymed commented 6 months ago

Describe the bug Profile tool crashes with a TypeError (see below).

To Reproduce Exact steps to reproduce the behavior:

  1. Use profile tool
  2. . 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):

Additional context

sjib commented 6 months ago

if not disable it so it does not show up as button

3nids commented 5 months ago

profile tool has been disabled