draw new point feature not working

Issue #558 resolved
Andreas Janz created an issue

An error has occurred while executing Python code:

TypeError: QgsGeometry.fromMultiPointXY(): argument 1 has unexpected type 'QgsPoint'

Traceback (most recent call last):
  File "C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\externals\qps\maptools.py", line 922, in cadCanvasReleaseEvent
    g = QgsGeometry.fromMultiPointXY(savePoint)
TypeError: QgsGeometry.fromMultiPointXY(): argument 1 has unexpected type 'QgsPoint'

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version: 3.14.16-Pi Pi, df27394552

Python Path:

  • C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\apps\ensomap
  • C:/QGIS/apps/qgis/./python
  • C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:\source\QGISPlugIns
  • C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/QGIS/apps/qgis/./python/plugins
  • C:\QGIS\apps\Python37
  • C:\QGIS\apps\Python37\Scripts
  • C:\QGIS\bin\python37.zip
  • C:\QGIS\apps\Python37\DLLs
  • C:\QGIS\apps\Python37\lib
  • C:\QGIS\bin
  • C:\Users\janzandr\AppData\Roaming\Python\Python37\site-packages
  • C:\QGIS\apps\Python37\lib\site-packages
  • C:\QGIS\apps\Python37\lib\site-packages\win32
  • C:\QGIS\apps\Python37\lib\site-packages\win32\lib
  • C:\QGIS\apps\Python37\lib\site-packages\Pythonwin
  • C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • .
  • C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin
  • C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\site-packages
  • C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\externals\qps\externals
  • C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox
  • C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\site-packages
  • C:/Users/janzandr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\vrtbuilderplugin
  • C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\vrtbuilderplugin\vrtbuilder
  • C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\coreapps
  • C:\Users\janzandr\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\apps

Comments (13)

  1. Benjamin Jakimow

    I just realized that the 3.7.<timestamp> timestamp is not shown in the About dialog. (is shown if build with create_plugin)

    However, did you already install 3.7.20201023T004415.develop ?

    In my case editing functions on win and ubunutu.

    Do you get any other error message?

  2. Andreas Janz reporter

    Yes, I tested on that version. Just opened the testdata and started editing on the point shapefile. I see the map tool cursor correctly, but it wan’t create a new point on mouse click.

  3. Benjamin Jakimow

    As the error does not appear anymore: Do new features appear in the attribute table? Probably you just don’t see them as the default categorized symbol render does not show features that do not apply to predefined classes and you just need to add “all other values”.

  4. Log in to comment