Feature request #14093

Prefer the QGIS-providers over the OGR-provider

Added by Paolo Cavallini about 8 years ago. Updated about 6 years ago.

Status:Open
Priority:Low
Assignee:-
Category:Browser
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:22100

Description

For files that are supported by both native QGIS and the GDAL/OGR providers, like CSV, it is usually preferable to use the native one over the GDAL one.
See also #14078


Related issues

Related to QGIS Application - Bug report #14078: Incorrect loading of csv files Closed 2016-01-08

History

#1 Updated by Jürgen Fischer about 8 years ago

So what are you suggesting?

#2 Updated by Paolo Cavallini about 8 years ago

To use QGIS provider for CSV instead of GDAL, when loading layers from the browser.

#3 Updated by Jürgen Fischer about 8 years ago

  • Category changed from Data Provider to Browser

#4 Updated by Even Rouault about 8 years ago

Repeating my comment in #14078: I'd note that the OGR CSV driver has gained editing capabilities in GDAL 2.1dev (specificaly to be used through QGIS), whereas AFAICS the QGIS CSV provider is read-only. It would be a shame that using the OGR CSV driver is no longer accessible. In my (admitedly biased) opinion, dealing with formats should be GDAL job ;-)

#5 Updated by Paolo Cavallini about 8 years ago

Sounds right to me: why having a QGIS provider then?

#6 Updated by Nathaniel V. Kelso about 8 years ago

+1 for keeping GDAL/OGR CSV provider. The edit ability in 2.1dev is really useful!

#7 Updated by Nyall Dawson about 8 years ago

Sounds right to me: why having a QGIS provider then?

There's lots of features in the QGIS provider not available in the OGR one. Eg custom delimeters and caching. If all these extra features were available in the OGR provider then I'd be in favor of removing the QGIS one.

#8 Updated by Sebastian Dietrich about 8 years ago

I think one problem is that many users don't even know there are two different ways of handling a CSV file, nor do they know when they are used:
  • QGIS provider, via
    • "Create layer from delimited text file"
  • OGR provider, via
    • "Add vector layer"
    • command line argument
    • drag and drop

I was one of those users until I investigated #14078.

#9 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No

#10 Updated by Paolo Cavallini about 6 years ago

  • Description updated (diff)
  • Status changed from Open to Feedback

Still a unified approach seems useful to me for QGIS 3.x.
Feel free to close this if appropriate.

#11 Updated by Giovanni Manghi about 6 years ago

  • Status changed from Feedback to Open

Also available in: Atom PDF