-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Make ftools work also when inputs have columns wider than 10 characters #17052
Comments
Author Name: Aren Cambre (Aren Cambre) Related: #13915 |
Author Name: Giovanni Manghi (@gioman) The error message could be a little more verbose, but it is right anyway: the output of the geoprocessing tools are shapefiles, regardless of the input data type, and shapefiles are limited to 10 chars for columns names. Sure there can be workarounds (like truncating the columns names, like the "join" does) or real solutions (like make the geoprocessing tools create an output in the same data type as the inputs, or of a kind at user choice), but are all feature requests.
|
Author Name: Minoru Akagi (@minorua) Some fTools' processes are sometimes discontinued for the same reason. Especially with "Join attributes by location" tool, when we select the MEAN option, the length of the field names must be only six or less. Processes are often stopped unnecessarily and users are forced to change the field names, so I think this is a bug. Since no error occurs even when long field names are passed to QgsVectorFileWriter and the writer truncates the field names to the appropriate length, the fix should be very easy. Showing message like "Following field names will be truncated to 10 bytes" would be helpful for users, but we are currently in string freeze, and it is not necessary. |
Author Name: Giovanni Manghi (@gioman) Minoru Akagi wrote:
If this issue is widespread in the vector menu tools then I agree that this should be a bug. Then title and description of this ticket must be rephrased (eventually listing all the tools that do not work because of this issue), please go ahead. |
Author Name: Minoru Akagi (@minorua) I cannot retitle this ticket, so I list 4 tools using @ftools_utils.checkFieldNameLength()@ instead. doGeoprocessing.py
doSpatialJoin.py
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Minoru Akagi (@minorua) Fixed in changeset "8ae64b438ecad7f927496af2c4d833339781b854".
|
Author Name: Giovanni Manghi (@gioman) The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned. |
Author Name: Jürgen Fischer (@jef-n)
a few tools in the vector menu are unable to cope with attributes with names of > 10 chars. The tools are doGeoprocessing.py
doSpatialJoin.py
Please see "note !#3":https://issues.qgis.org/issues/8241#note-3 for a detailed description Old description: I have a PostGIS table with a field name that has more than 10 characters in the name. The Symmetrical difference feature fails with a message that simply advises of this problem but gives no solutions. I really, really need to keep descriptive field names in the original data, so renaming fields is very undesirable. I can think of a few workarounds, but seems like it would be easy to just use a truncated field name, with a check to ensure the truncated field name dos not duplicate any other field names. to New description: a few tools in the vector menu are unable to cope with attributes with names of > 10 chars. The tools are doGeoprocessing.py
doSpatialJoin.py
Please see #17052 (comment) for a detailed description Old description: I have a PostGIS table with a field name that has more than 10 characters in the name. The Symmetrical difference feature fails with a message that simply advises of this problem but gives no solutions. I really, really need to keep descriptive field names in the original data, so renaming fields is very undesirable. I can think of a few workarounds, but seems like it would be easy to just use a truncated field name, with a check to ensure the truncated field name dos not duplicate any other field names.
|
Author Name: Aren Cambre (Aren Cambre)
Original Redmine Issue: 8241
Affected QGIS version: master
Redmine category:processing/qgis
New description:
a few tools in the vector menu are unable to cope with attributes with names of > 10 chars. The tools are
doGeoprocessing.py
doSpatialJoin.py
Please see #17052 (comment) for a detailed description
Old description:
I have a PostGIS table with a field name that has more than 10 characters in the name. The Symmetrical difference feature fails with a message that simply advises of this problem but gives no solutions.
I really, really need to keep descriptive field names in the original data, so renaming fields is very undesirable.
I can think of a few workarounds, but seems like it would be easy to just use a truncated field name, with a check to ensure the truncated field name dos not duplicate any other field names.
The text was updated successfully, but these errors were encountered: