Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Directions from Points 1 Layer" cant store Layer_ID field #124

Closed
wmeinolf opened this issue Nov 12, 2020 · 0 comments
Closed

"Directions from Points 1 Layer" cant store Layer_ID field #124

wmeinolf opened this issue Nov 12, 2020 · 0 comments
Assignees

Comments

@wmeinolf
Copy link

Here's what I did

Since quite a while I use "Directions from Points 1 Layer" in a qgis model. Recently, perhaps asince 3.16 Upgrade, the model does not work anymore. Today I tested "Directions from Points 1 Layer" directly started from processsing toolbox on a Layer with 2 points.

Here's what I got

The output layer, where I expext the route is created horever it's empty. I get the following protocol:

QGIS-Version: 3.16.0-Hannover
QGIS-Codeversion: 43b64b13f3
Qt-Version: 5.11.2
GDAL-Version: 3.1.4
GEOS-Version: 3.8.1-CAPI-1.13.3
PROJ-Version: Rel. 6.3.2, May 1st, 2020
Verarbeite Algorithmus…
Algorithmus Directions From Points 1 Layer startet…
Eingabeparameter:
{ 'INPUT_LAYER_FIELD' : 'fid', 'INPUT_OPTIMIZE' : False, 'INPUT_POINT_LAYER' : 'C:/Users/WMeinolf/QGIS Root/temp/CLA Temp.gpkg|layername=zusammengeführt', 'INPUT_PREFERENCE' : 0, 'INPUT_PROFILE' : 0, 'INPUT_PROVIDER' : 0, 'OUTPUT' : 'TEMPORARY_OUTPUT' }

Objekt konnten nicht in Output_Layer_f2abb624_05f4_47f1_8cb8_fee838cb534d geschrieben werden: Konnte Attribut "fid" nicht speichern: Wert "" ist keine Zahl
Ausführung nach 0.19 Sekunden abgeschlossen
Ergebnisse:
{'OUTPUT': 'Output_Layer_f2abb624_05f4_47f1_8cb8_fee838cb534d'}

Lade Ergebnis Layer
Algorithmus 'Directions From Points 1 Layer' beendet

It states, that Attribute 2fid" couls not be stored as the value "" is no number. I tries various attribute types including to store the layer in GPKG to generate FID. Nothing helped. What do I wrong?

Here's what I was expecting

Layer with route between the 2 points of the layer as I got in the past.


Here's what I think could be improved

Sorry, I cant contribute here.

@TheGreatRefrigerator TheGreatRefrigerator self-assigned this Apr 29, 2021
TheGreatRefrigerator added a commit that referenced this issue Apr 30, 2021
When having number type Layer ID fields in 'direction from points 1 layer',
processing would break for normal Point layers on newer QGIS versions.
Instead of using an empty string as placeholder, now None is used
which should work for all types.

Fixes #127, #124,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants