-
-
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
Reclassify by layer/table #29081
Comments
In QGIS 3.6 I have been using both Excel and CSV files in the Reclassify by Layer tool. I have found that it is a little sensitive. For example with CSV I can't have field names in the table. With excel I can have names but sometimes I need to save it as a CSV open it up with a text editor delete any extra blank rows at the bottom and then resave it as an excel. I have also found I can save the excel as a shapefile even without geometry and use the .dbf file as the layer or save it to a geopackage and load the layer from there. Unless I am confusing the situation this is already a feature but the naming and is confusing. |
Is this still an issue? I can't reproduce |
I'll check later today. At this point I have a model set up that works around it so haven't encountered it lately. |
@nyalldawson It seems to be working with an excel file but not a CSV. Here is a gif of it working with an excel file. I tried removing the header of the csv and cleaning it up in a text editor and that didn't help. I also tried to add it to the layer panel and connect to it through that ans that didn't work. QGIS version |
Right -- I suspect that's because the csv has imported those columns as a text column, and the dialog is only allowing choices of numeric columns. Try opening your dataset through the Data Source Manager -> Delimited Text option. That should automatically detect that the column is numeric and avoid the forced string conversion. |
That works and makes sense. So the excel file has more info and it can parse it. If I remember right |
Right - the graphical modeler doesn't currently offer an easy way to import CSV data and perform the column type autodetection. To do that we need a new "import delimited text" algorithm in processing which exposes all the nice options that you see in the dialog... |
Author Name: Henk Thoma (Henk Thoma)
Original Redmine Issue: 21263
Redmine category:map_tools
The current Reclassify by layer tool requires a vector layer (with geometry info) to select table fields for minimum, maximum & values. It doesn't work with a standalone table (e.g. one imported from Excel or CSV).
In the new Reclassify by table tool one has to manually provide the table values. It could be upgraded by providing an input for a standalone table as well.
The text was updated successfully, but these errors were encountered: