<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div>So, does the OpenFileGDB driver work in the same way as the FileGDB driver? The build appeared to work, but when I try and use it in a Python shell, I get the following error.<br /><br />>>> from osgeo import gdal<br />>>> drv=gdal.GetDriverByName('OpenFileGDB')<br />>>> ds=drv.Create('/data/test.gdb',0,0,0)<br />ERROR 6: Only vector datasets supported<br /><br />I've tried leaving out the x/y size and nbands parameters, but they are required.<br /><br />Looking at the source code (https://github.com/OSGeo/gdal/blob/release/3.6/gcore/gdaldriver.cpp#L225) there seems to be a create capability check before using the vector creation option. Is there a way to set this when creating the driver?<br /><br />Thanks,<br /><br />Jon<br /><br /><div dir="ltr" style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;font-size:1px;direction:ltr;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:1px;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:10px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#4A4A49;font-style:normal;font-weight:700;white-space:nowrap;"><tr style="font-size:14.67px;"><td align="left" style="padding:0;vertical-align:top;font-family:Arial;">e: <span style="font-family:remialcxesans;font-size:1px;color:#FFFFFF;line-height:1px;"></span></td><td align="left" style="padding:0 0 0 4px;vertical-align:top;color:#F6A124;font-family:Arial;font-weight:400;"><a href="mailto:Jon.Morris@jbarisk.com" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#F6A124;"><strong style="font-weight:400;">Jon.Morris@jbarisk.com</strong></a></td></tr><tr style="font-size:14.67px;"><td align="left" style="padding:0;vertical-align:top;font-family:Arial;">d:</td><td align="left" style="padding:0 0 0 4px;vertical-align:top;color:#F6A124;font-family:Arial;font-weight:400;">+44 (0)1756 587229<br /></td></tr><tr style="font-size:14.67px;"><td align="left" style="padding:0;vertical-align:top;font-family:Arial;">t: </td><td align="left" style="padding:0 0 0 4px;vertical-align:top;color:#F6A124;font-family:Arial;font-weight:400;"><a href="tel:+44%20(0)1756%20799919" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#F6A124;"><strong style="font-weight:400;">+44 (0)1756 799919</strong></a></td></tr><tr style="font-size:0;"><td align="left" style="padding:0;vertical-align:top;"></td><td align="left" style="padding:0 0 0 4px;vertical-align:top;"></td></tr></table></td></tr></table></td></tr><tr style="font-size:14.67px;color:#000001;font-style:normal;font-weight:400;white-space:nowrap;"><td align="left" style="vertical-align:top;font-family:Arial;"><a href="http://www.jbarisk.com/" target="_blank" id="LPlnk689713" title="Click to visit our website" style="text-decoration:none;color:#F6A124;"><strong style="font-weight:400;">www.jbarisk.com</strong></a></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:10px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td rowspan="3" align="left" style="padding:0 0 5px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:0 0 11px;vertical-align:top;"><img src="cid:image243819.png@C14BA99D.DB25F83C" border="0" alt="" style="font-size:0;" /></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:0 0 12px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="height:30px;font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:0 4px 5px 0;vertical-align:top;"><a href="https://www.facebook.com/TheFloodPeople" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image952942.png@D9B6770F.A57732C0" width="34" border="0" title="Facebook" alt="Facebook" style="width:34px;min-width:34px;max-width:34px;font-size:12px;" /></a></td></tr></table></td><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:0 4px 5px 0;vertical-align:top;"><a href="https://www.linkedin.com/company/jba-risk-management/" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image304634.png@D029E012.7A75BFC0" width="34" border="0" title="LinkedIn" alt="LinkedIn" style="width:34px;min-width:34px;max-width:34px;font-size:12px;" /></a></td></tr></table></td><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:0 4px 5px 0;vertical-align:top;"><a href="https://twitter.com/JBARisk" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image845049.png@4C761FDD.40A1FCB1" width="34" border="0" title="Twitter" alt="Twitter" style="width:34px;min-width:34px;max-width:34px;font-size:12px;" /></a></td></tr></table></td><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:0 4px 5px 0;vertical-align:top;"><a href="https://www.youtube.com/channel/UC0iatom2jYbW96voW0rlpCw" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image220436.png@C315B08D.82F4DD3E" width="34" border="0" title="YouTube" alt="YouTube" style="width:34px;min-width:34px;max-width:34px;font-size:12px;" /></a></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td><td style="padding:0;"> </td></tr><tr style="font-size:0;"><td style="padding:0;"> </td></tr><tr style="font-size:0;"><td style="padding:0;"> </td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:7px 0 5px;border-top:solid 1px #4A4A49;border-right:none;border-bottom:none;border-left:none;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="white-space:normal;color:#444444;font-size:14.67px;font-family:Calibri,Arial,sans-serif;font-weight:400;font-style:normal;text-align:left;line-height:12px;"><tr style="font-size:9px;"><td style="font-family:Arial;"><span style="background-color:#FFFFFF;">All JBA Risk Management's email messages contain confidential information and are intended only for the individual(s) named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.</span><br /><span style="background-color:#FFFFFF;">Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.</span> <br /><span style="background-color:#FFFFFF;">JBA Risk Management Limited is registered in England, company number 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North Yorkshire, BD23 3FD, England</span><span style="color:#000001;">.</span><br /></td></tr></table></td></tr></table></td></tr></table></div>-----Original Message-----<br />From: Scott <public@postholer.com> <br />Sent: 27 February 2023 16:03<br />To: Jon Morris <Jon.Morris@jbarisk.com>; gdal-dev@lists.osgeo.org<br />Subject: Re: [gdal-dev] FileGDB_COMPILE fails during CMake<br /><br />CAUTION: This email originated from outside of JBA and contains one or more links. DO NOT click links unless you recognise the sender's email address and are absolutely certain that the content is safe.<br />See the Phishing page on IMS on SP for more information about how to spot and report suspicious messages.<br /><br />WARNING: The sender of this email could not be validated and may not match the person in the "From" field.<br /><br />3.6 has read, write, update and create abilities using the builtin OpenFIleGDB. Building from source on linux I don't specify anything.<br /><br />On 2/27/23 00:37, Jon Morris wrote:<br />> Does that mean we should no longer attempt to use the FileGDB API? Our <br />> tool makes quite heavy use of FileGDB so we'd have to do something <br />> like this every time a user wants to use it:<br />><br />> if GDAL_VERSION >= (3, 6):<br />> driver = 'OpenFileGDB'<br />> else:<br />> driver = 'FileGDB'<br />><br />> Jon<br />><br />> e: *Jon.Morris@jbarisk.com* <mailto:Jon.Morris@jbarisk.com><br />> d: +44 (0)1756 587229<br />> t: *+44 (0)1756 799919* <tel:+44%20(0)1756%20799919><br />><br />><br />> *www.jbarisk.com* <http://www.jbarisk.com/><br />><br />> Facebook <https://www.facebook.com/TheFloodPeople><br />><br />><br />> LinkedIn <https://www.linkedin.com/company/jba-risk-management/><br />><br />><br />> Twitter <https://twitter.com/JBARisk><br />><br />><br />> YouTube <https://www.youtube.com/channel/UC0iatom2jYbW96voW0rlpCw><br />><br />><br />><br />> All JBA Risk Management's email messages contain confidential <br />> information and are intended only for the individual(s) named. If you <br />> are not the named addressee you should not disseminate, distribute or <br />> copy this e-mail.<br />> Please notify the sender immediately by email if you have received <br />> this email by mistake and delete this email from your system.<br />> JBA Risk Management Limited is registered in England, company number <br />> 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North <br />> Yorkshire, BD23 3FD, England.<br />><br />> -----Original Message-----<br />> From: gdal-dev <gdal-dev-bounces@lists.osgeo.org> On Behalf Of Scott<br />> Sent: 24 February 2023 16:44<br />> To: gdal-dev@lists.osgeo.org<br />> Subject: Re: [gdal-dev] FileGDB_COMPILE fails during CMake<br />><br />> CAUTION: This email originated from outside of JBA and contains one or <br />> more links. DO NOT click links unless you recognise the sender's email <br />> address and are absolutely certain that the content is safe.<br />> See the Phishing page on IMS on SP for more information about how to <br />> spot and report suspicious messages.<br />><br />> With gdal >= 3.6 OpenFileGDB is built in by default, no need for <br />> external API.<br />><br />><br />><br />> On 2/24/23 08:37, Jon Morris wrote:<br />> > Hi all,<br />> ><br />> > I’ve been upgrading our build script from autotools to CMake and <br />> I’ve > almost got it working, except for FileGDB. I’ve added the <br />> cmake > parameters -DFileGDB_ROOT=/usr/local/FileGDB_API<br />> > -DFileGDB_INCLUDE_DIR=/usr/local/FileGDB_API/include and the paths <br />> are > correct. The earlier FileGDB install stage is the same as in > <br />> https://github.com/OSGeo/gdal/blob/release/3.6/.github/workflows/ubuntu_20.04/build-deps.sh <https://github.com/OSGeo/gdal/blob/release/3.6/.github/workflows/ubuntu_20.04/build-deps.sh>.<br />> ><br />> > (I’ve also tried /usr/include for the include path with the same result).<br />> ><br />> > When I run CMake, I get the following lines in the log (irrelevant <br />> > lines have been removed):<br />> ><br />> > -- Performing Test TEST_FileGDB_COMPILE > > -- Performing Test <br />> TEST_FileGDB_COMPILE - Failed > > -- Found FileGDB: <br />> /usr/local/FileGDB_API/lib/libFileGDBAPI.so<br />> ><br />> > -- Enabled drivers and features and found dependency packages > > <br />> -- The following features have been enabled:<br />> ><br />> > * ogr_FILEGDB, FileGDB<br />> ><br />> > -- The following OPTIONAL packages have been found:<br />> ><br />> > * FileGDB<br />> ><br />> > Enable FileGDB (based on closed-source SDK) driver > > [ 82%] <br />> Building CXX object > <br />> ogr/ogrsf_frmts/filegdb/CMakeFiles/ogr_FileGDB.dir/FGdbDatasource.cpp.<br />> > o<br />> ><br />> > [ 82%] Building CXX object<br />> > ogr/ogrsf_frmts/filegdb/CMakeFiles/ogr_FileGDB.dir/FGdbDriver.cpp.o<br />> ><br />> > [ 82%] Building CXX object<br />> > ogr/ogrsf_frmts/filegdb/CMakeFiles/ogr_FileGDB.dir/FGdbLayer.cpp.o<br />> ><br />> > [ 82%] Building CXX object<br />> > <br />> ogr/ogrsf_frmts/filegdb/CMakeFiles/ogr_FileGDB.dir/FGdbResultLayer.cpp<br />> > .o<br />> ><br />> > [ 82%] Building CXX object<br />> > ogr/ogrsf_frmts/filegdb/CMakeFiles/ogr_FileGDB.dir/FGdbUtils.cpp.o<br />> ><br />> > [ 82%] Built target ogr_FileGDB<br />> ><br />> > [ 94%] Linking CXX shared library libgdal.so > > <br />> /opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld:<br />> > ogr/ogrsf_frmts/filegdb/CMakeFiles/ogr_FileGDB.dir/FGdbDatasource.cpp.o:<br />> > in function FGdbDataSource::DeleteLayer(int)':<br />> ><br />> > FGdbDatasource.cpp:(.text+0x12b0): undefined reference to > <br />> `FileGDBAPI::Geodatabase::Delete(std::basic_string<wchar_t,<br />> > std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, > <br />> std::basic_string<wchar_t, std::char_traits<wchar_t>, > <br />> std::allocator<wchar_t> > const&)'<br />> ><br />> > Many more undefined reference errors follow.<br />> ><br />> > Does anyone know what could be going wrong here and what else I can <br />> > try to debug it? I’m all out of ideas.<br />> ><br />> > Many thanks,<br />> ><br />> > Jon<br />> ><br />> > e: *Jon.Morris@jbarisk.com* <mailto:Jon.Morris@jbarisk.com> > d: <br />> +44 (0)1756 587229 > t: *+44 (0)1756 799919* <br />> <tel:+44%20(0)1756%20799919> > > > *www.jbarisk.com* <br />> <http://www.jbarisk.com/> > > Facebook <br />> <https://www.facebook.com/TheFloodPeople><br />> ><br />> ><br />> > LinkedIn <https://www.linkedin.com/company/jba-risk-management/><br />> ><br />> ><br />> > Twitter <https://twitter.com/JBARisk> > > > YouTube <br />> <https://www.youtube.com/channel/UC0iatom2jYbW96voW0rlpCw><br />> ><br />> ><br />> ><br />> > All JBA Risk Management's email messages contain confidential > <br />> information and are intended only for the individual(s) named. If you <br />> > are not the named addressee you should not disseminate, distribute <br />> or > copy this e-mail.<br />> > Please notify the sender immediately by email if you have received <br />> > this email by mistake and delete this email from your system.<br />> > JBA Risk Management Limited is registered in England, company <br />> number > 07732946, 1 Broughton Park, Old Lane North, Broughton, <br />> Skipton, North > Yorkshire, BD23 3FD, England.<br />> ><br />> ><br />> > _______________________________________________<br />> > gdal-dev mailing list<br />> > gdal-dev@lists.osgeo.org<br />> > https://lists.osgeo.org/mailman/listinfo/gdal-dev<br />> _______________________________________________<br />> gdal-dev mailing list<br />> gdal-dev@lists.osgeo.org<br />> https://lists.osgeo.org/mailman/listinfo/gdal-dev<br /></div></body></html>