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
Densify by interval always resorts to default value if field is given #33470
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Comments
lukasvd
added
the
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
label
Dec 18, 2019
Does it work if the field value is "2.8" (using . as decimal separator) |
Hi Nyall,
In the attribute table I can't use a dot for real/double. It changes it
back.
I did make a string field with value "2.8", that didn't work.
…On Wed, Dec 18, 2019 at 11:34 PM Nyall Dawson ***@***.***> wrote:
Does it work if the field value is "2.8" (using . as decimal separator)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#33470?email_source=notifications&email_token=AAPTKJZBHLYO4CHC5CK3AYDQZKQQ7A5CNFSM4J4SX7H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHHXDZY#issuecomment-567243239>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPTKJ53XBDITLZEEW5VSNDQZKQQ7ANCNFSM4J4SX7HQ>
.
|
gioman
added
Processing
Relating to QGIS Processing framework or individual Processing algorithms
and removed
Feedback
Waiting on the submitter for answers
labels
Dec 19, 2019
@nyalldawson @m-kuhn It could be due to
modifiedFeature.setGeometry( feature.geometry().densifyByDistance( mInterval ) ) should be modifiedFeature.setGeometry( feature.geometry().densifyByDistance( interval ) ) It's probably an oversight in 9fec8ed (#8923). |
Right - good solving! Can you open a pr? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Describe the bug
QGIS 3.10.1 > Vector geometry > Densify by interval
The tool works properly when a direct value is given. When a field type is given, it always resorts to the default value of 1,0.
How to Reproduce
Open the tool. Select a layer with linestrings which has attributes/fields. Click on the "data defined override" button and select a field. In my case it is a field of type double called "ps_width". When the job has run the log shows that the script tried to use the field ('INTERVAL' : QgsProperty.fromExpression('"ps_width"'). The value of the field is 2,8. The value used for the calculations is still 1,0 (the default)
QGIS and OS versions
The text was updated successfully, but these errors were encountered: