Feature request #10024
Drag and Drop CSV file
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||18510|
It would be nice if one can Drag and Drop CSV files either directly from system or from Browser and QGIS would try to detect all the required fields in the Create a Layer from Delimited text File, that way one would only need to review things before pressing OK
#5 Updated by Giovanni Manghi over 2 years ago
- Status changed from Open to Feedback
Antonio Locandro wrote:
Checked and although I can drag and drop it, I was expecting the behaviour to be similar to when you add the csv through the dedicated tool and open the parameters to have a spatial layer from CSV
I really think that the correct behavior is the actual one: d&d you gets a geometryless table, using the delimited text provider button you get a spatial table.
#7 Updated by Andy Harfoot over 2 years ago
"Starting with GDAL 2.1, it is possible to directly specify the potential names of the columns that can contain X/longitude and Y/latitude with the X_POSSIBLE_NAMES and Y_POSSIBLE_NAMES open option."
These could be hard coded into the QGIS OGR CSV load function, or set via a preference, meaning that for CSVs containing appropriately named spatial columns, the geometry would be read automatically on drag and drop.
Alternatively, a context menu command could be added for text files 'Open as spatial delimited text', routing the load via the dialog.
I would like to keep this request open - the current behaviour of CSV drag and drop lags behind that of other formats