-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add CSV CREATE_DIRECTORY=NO option #12346
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
Comments
There are easy workarounds.
CSV driver supports also multilayer CSV so that all individual CSV files in a directory are seen as layers of one datasource. If you mean by leftover that it is something unintentional, I do not believe so.
|
Okay that's great to know. The problem is the CSV page does not mention all this. E.g., for somedir/*.csv where it is clear that the extension is .csv , for reading, and writing. And that page also needs to mention the workaround to get around the bug that I reported above. |
I do see a trial to document that.
For my mind you did not report a bug, but it is opinion based. Feature request it is, for sure. CSV is not a bad extension for Comma Separated Values, but you are right that there is no CSV standard that mandates that, like GeoPackages must use .gpkg. The GeoCSV https://www.giswiki.ch/GeoCSV is only an open specification. |
Uh oh!
There was an error while loading. Please reload this page.
Feature description
Nope, there's absolutely no way to create CSV files that don't have the letters c, s, v in their suffix.
Our goal today is to create a CSV file, but with .ggg as it's suffix.
Alas, the moment there is no ".csv" sniffed as the destination file, then a decision is made to create a directory. Some kind of leftover logic probably stemming from back when shapefiles were the default output or something.
One would think the
-of
might have helped convince the program that all I wanted was a plain .csv file, no bonus directory. But alas, the program has already made up its mind as to what I need and that's that.Nope, the only workaround is
(And of course one can always just use /bin/mv.)
GDAL 3.10.3, released 2025/04/01
The text was updated successfully, but these errors were encountered: