<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Matthias,</p>
<p>We need to be able to select an existing fgdb-folder (as seen by the OS it is just a regular folder).</p>
<p>Currently, QGIS just opens the folder and then expects the user to pick a file, but currently we can't select a folder without traversing deeper into it.</p>
<p>Andreas</p>
<p>On 2018-07-31 13:58, Matthias Kuhn wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hi,<br /> <br /> Just a quick question about the file vs. directory problem. Do we need<br /> to be able to select an existing directory or a new one?<br /> If it's the latter (new .gdb-folder), we can just use the existing file<br /> dialog, which will return a path to a file name (but not yet create a<br /> new file) and we can then have the fgdb driver create a new folder<br /> instead of a file at this position.<br /> I might be missing something though.<br /> <br /> Matthias<br /> <br /> On 07/31/2018 12:05 PM, Andreas Neumann wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi,<br /> <br /> A Swiss QGIS user asked me if/how FGDB for export/Save as can be<br /> supported in QGIS - question specifically about the Windows distribution<br /> of QGIS 3.x. Sometimes, QGIS users have to deliver results in fgdb<br /> format, because their clients require it.<br /> <br /> A quick e-mail exchange with Even Roualt revealed the following:<br /> <br /> 1. it is already supported if the proper "gdal-filegdb" packages are<br /> installed.<br /> <br /> 2. Currently, it can only be enabled in the OSGeo4W version by selecting<br /> the "gdal-filegdb" package. The standalone installer does not include<br /> this package.<br /> <br /> 3. There are issues when wanting to "Save As" an additional layer into<br /> an already existing FGDB. The problem is that fgdb files are actually<br /> directories. And the current "Save As" dialog does not support selecting<br /> "directories" to save into, only files. As a workaround, it works if one<br /> copy/pastes the full path from the Windows file explorer into the "Save<br /> As" dialog, but not when selecting a directory interactively.<br /> <br /> Here is some info on the third issue from Even:<br /> <br /> "I don't have the solution on top of my mind. According to<br /> <a href="http://doc.qt.io/qt-5/qfiledialog.html#FileMode-enum" target="_blank" rel="noopener noreferrer">http://doc.qt.io/qt-5/qfiledialog.html#FileMode-enum</a> it seems that you can<br /> setup the selector to select file or directories, but not both.<br /> We actually use the QFileDialog::getSaveFileName() API that probably<br /> internally resolves to QFileDialog::AnyFile<br /> Perhaps a more experience QT dev than me would have an idea.<br /> Or an hack (but not sure we can really do better) would be to allow the user<br /> to select any file in the .gdb directory, and then automatically strips out<br /> the filename to just keep the directory name when we see this a file in in a<br /> .gdb directory"<br /> <br /> ---------------<br /> <br /> So here are my two questions:<br /> <br /> About issue 2:<br /> <br /> @Jürgen: can you include the necessary gdal-filegdb package also in the<br /> standalone installer - or are there license problems?<br /> <br /> About issue 3:<br /> <br /> Does some dev have an idea or solution on how to more easily select a<br /> folder instead of a file, for the case of writing an additional layer<br /> into an already existing .fgdb folder?<br /> <br /> Thank you all for your ideas and the discussion,<br /> <br /> Andreas<br /> <br /> <br /> <br /> _______________________________________________<br /> QGIS-Developer mailing list<br /> <a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br /> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br /> </blockquote>
_______________________________________________<br /> QGIS-Developer mailing list<br /> <a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br /> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
</blockquote>
<p><br /></p>

</body></html>