-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Refactor Fields tool ignoring user selection for field types on macOS #32492
Comments
what about 3.4? |
@gioman , yep, also present in 3.4 |
Added the clarification that for all 3 versions that I tested in, these were the recommended .dmg installers from qgis.org, not the KyngChaos, osgeo4mac, or any other distribution of QGIS. |
This still exists on QGIS 3.10.2 and QGIS 3.4 on mac. Type selection is being ignored by the refactor algorithm. |
Present in QGIS 3.12 on macOS as well. I have tried several field types and casting approaches. |
This is still present in LTR 3.10.5 and causing a bug headache for mac users. |
Appears to be fixed in 3.14. Maybe the new build system was the solution? |
Confirming it's fixed in 3.14 |
Confirmed here too. |
Describe the bug
The Refactor Fields processing tool ignore’s the user’s selection of a field’s type, instead using the existing type for fields loaded from an existing layer, or always using String for new fields.
How to Reproduce
Sample geojson:
Can’t change the type of an existing field:
The following can be found in the output log. On line 3, the type should be ’10’, as string was selected, but instead the type is ‘6’, showing that the user’s selection is not being used
Type of new field always defaults to String:
prop1 + 4
, and a field name such asprop2
The output log shows that the user’s selection for the new field’s type is not being used. Line 4 should have a type of 6, but instead has a type of 0:
These problems persist even when casting the source to the desired type within the source expression, with a function such as
to_real()
, and when saving the output to file formats such as geojson or geopackage.QGIS and OS versions
QGIS Version 3.10 (also present in 3.8 and 3.4)
Only the default .dmg installers from qgis.org have been tested. (Have not tested the KyngChaos or osgeo4mac distributions)
macOS version 10.14 Mojave
The text was updated successfully, but these errors were encountered: