<div style="font-family: arial; font-size: 14px;">I am wondering how can one add a coded field domain to a file geodatabase using the FileGDB driver and File GDB API?  Anytime I call AddFieldDomain it returns false:</div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;"><span>>>> coded_domain = ogr.CreateCodedFieldDomain("name", "desc", ogr.OFTString, ogr.OFSTNone, {1:'LOW'})</span><div><span>>>> driver = gdal.GetDriverByName("FileGDB")</span></div><div><span>>>> datasource = driver.Create(r'C:\output\test_domains.gdb', 0, 0, 0)</span></div><div><span><b>>>> datasource.AddFieldDomain(coded_domain)</b></span></div><div><span><b>False</b></span></div><div><span><b><span>>>> datasource.TestCapability(ogr.ODsCAddFieldDomain)</span><br><span>False</span><br></b></span></div></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">The documentation suggests that the FileGDB driver is capable of supporting domains as of 3.3: <span><a target="_blank" rel="noreferrer nofollow noopener" href="https://gdal.org/drivers/vector/filegdb.html?highlight=domains#field-domains">https://gdal.org/drivers/vector/filegdb.html?highlight=domains#field-domains</a></span></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">I am using gdal version 3.4.2.</div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">Am I adding the domain incorrectly, or does this mean that domains are not supported with the FileGDB driver?</div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">Thank you,</div><div style="font-family: arial; font-size: 14px;">Adam Gutonski</div><div class="protonmail_signature_block" style="font-family: arial; font-size: 14px;"><div class="protonmail_signature_block-proton">
    </div>
</div>