-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
when columns have the same name, styling with the first one does not work #20819
Comments
Author Name: Even Rouault (@rouault) Examination with ogrinfo shows that there are in fact 2 columns with same name "Calculated" (and with different values), which must confuse QGIS. |
Author Name: Paolo Cavallini (@pcav) Merci Even for checking. So this should be either an issue of Processing, not giving appropriate column names, or upstream (saga).
|
Author Name: Giovanni Manghi (@gioman) There are two issues here, but the real one seems a qgis issue. The SAGA module gridstatisticsforpolygons creates an output shapefile where the statistics are placed into columns that are called "nameoftheinputraster [nameofthestatistics]" and this is very likely to hit the 10 char limit for column names. So the result is likely to have different columns that have the exactly same name (the first 10 chars of input raster), and this is confirmed by ogrinfo of course. When opening a shapefile with at least two columns with the exact same name, ex: "columnname", qgis "changes" the name of the 2nd, 3rd... to "columnname_1", "columnname_2", etc. Styling using the values for this "renamed" columns works, but not for the first one.
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Jürgen Fischer (@jef-n)
https://issues.qgis.org/issues/12713#note-3 old description: This file: old description: This file: |
Author Name: Paolo Cavallini (@pcav) Still true in QGIS 3.
|
@pcav Hello, the link to the file is unreachable. Did you by any chance come across this issue in the more recent versions of QGIS? |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue. |
Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 12713
Affected QGIS version: 3.0.0
Redmine category:vectors
new description:
#20819 (comment)
old description:
This file:
http://www.faunalia.eu/~paolo/qgis/result.zip
resulting from
processing.runalg("saga:gridstatisticsforpolygons","/tmp/RESULT.tif","/path/municipalities.shp",False,False,True,False,True,False,False,False,0,None)
seems impossible to thematize on the basis of the
Calculated
column.If saved as a new shapefile, it is OK. Possibly SAGA produces a wrong dbf?
The text was updated successfully, but these errors were encountered: