Bug report #17726

FitNPointsToShape SAGA algorithm returns empty layer when called from processing

Added by Casey Ghilardi over 2 years ago. Updated about 2 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/SAGA
Affected QGIS version:2.18.11 Regression?:No
Operating System:Windows 10 64 bit Easy fix?:No
Pull Request or Patch supplied:No Resolution:up/downstream
Crashes QGIS or corrupts data:No Copied to github as #:25622

Description

Hello,

The behavior I am experiencing is when I attempt to call the FitNPointsToShape algorithm from QGIS using the processing toolbox,
the processing log will run seemingly fine and no errors are returned, but the resulting output point layer is always empty.

I have verified that the algorithm returns a point layer if I go into the SAGA GUI and run the tool there. One behavior I noticed in SAGA while tracking is that a shapefile needs to be selected for it to return points, but even having a shapefile selected in QGIS returns an empty layer.

I am using QGIS 2.18.11 (Desktop only/non grass version) installed via the standard desktop installer (non-OSGeo install).

I have attached a shapefile that I have been using for testing. It is the US state of Idaho in WGS84 projection.

Idaho_only_WGS84.cpg (5 Bytes) Casey Ghilardi, 2017-12-20 02:48 AM

Idaho_only_WGS84.dbf (246 Bytes) Casey Ghilardi, 2017-12-20 02:48 AM

Idaho_only_WGS84.prj (143 Bytes) Casey Ghilardi, 2017-12-20 02:48 AM

Idaho_only_WGS84.qix (64 Bytes) Casey Ghilardi, 2017-12-20 02:48 AM

Idaho_only_WGS84.qpj (257 Bytes) Casey Ghilardi, 2017-12-20 02:48 AM

Idaho_only_WGS84.shp (5.9 KB) Casey Ghilardi, 2017-12-20 02:48 AM

Idaho_only_WGS84.shx (108 Bytes) Casey Ghilardi, 2017-12-20 02:48 AM

History

#1 Updated by Nyall Dawson about 2 years ago

  • Resolution set to up/downstream
  • Status changed from Open to Closed

This is an upstream SAGA issue - I've tested and the FitNPointsToShape cannot be used correctly from a command line, only from within the saga gui.

#2 Updated by Casey Ghilardi about 2 years ago

  • Assignee deleted (Alexander Bruy)

OK, I opened a ticket on the SAGA project sourceforge page for visibility there. Link: https://sourceforge.net/p/saga-gis/bugs/261/

Also available in: Atom PDF