<div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>Hello all,</div><div><br></div><div>I have a Mapserver WMS that is serving data from an ESRI FGDB which contains a few fields that use coded domains. The LAYER CONNECTIONTYPE is OGR.</div><div><br></div><div>GetFeatureInfo requests to this layer function (mostly) as expected, but for the coded domain fields, the result returned only contains the coded value, and not the description of the meaning of the code.</div><div><br></div><div>
According to the GDAL docs [1], coded domains have been supported by the OpenFileGDB driver since v.3.3. My testing Mapserver is 8.3.0 w/ GDAL 3.10.0<br></div><div><br></div><div>When I check the data table in QGIS (GDAL/OGR version 3.9.2) the fields in question behave as expected - the descriptions are visible in the relevant fields.<br></div><div><br></div><div>I am wondering if there is anything I can do in my MapServer LAYER configuration to specify that descriptions should be returned for the coded domain fields. I can see from the MapServer docs [2] that field type can be specified, but I'm not sure if that could work for this situation - it seems what I need is to somehow trigger a return from GetDescription() / OGR_FldDomain_GetDescription() from MapServer LAYER definition? [3][4] Based on [5] I tried specifying:</div><div><br></div><div>"gml_[fieldname]_type" "Coded"</div><div><br></div><div>But this didn't seem to have any effect.<br></div><div><br></div><div>I didn't find much about this topic when searching, so it feels a bit obscure. I guess it might only be relevant to FGDB and GPKG sources. Would be grateful for any tips, or realistic expectations of what is possible...<br></div><div><br></div><div>best,</div><div>Tanya</div><div><br></div><div>[1] <a href="https://gdal.org/en/latest/drivers/vector/openfilegdb.html#vector-openfilegdb">https://gdal.org/en/latest/drivers/vector/openfilegdb.html#vector-openfilegdb</a></div><div>[2] <a href="https://mapserver.org/output/ogr_output.html#attribute-field-definitions">https://mapserver.org/output/ogr_output.html#attribute-field-definitions</a></div><div>[3] <a href="https://gdal.org/en/latest/doxygen/classOGRCodedFieldDomain.html">https://gdal.org/en/latest/doxygen/classOGRCodedFieldDomain.html</a></div><div>[4] <a href="https://gdal.org/en/latest/doxygen/ogr__api_8h.html#a2da91858f40681f85e709989249855eb">https://gdal.org/en/latest/doxygen/ogr__api_8h.html#a2da91858f40681f85e709989249855eb</a></div><div>[5] <a href="https://gdal.org/en/latest/doxygen/ogr__core_8h.html#a45135d27c2151b4e9a812c4c805750f0">https://gdal.org/en/latest/doxygen/ogr__core_8h.html#a45135d27c2151b4e9a812c4c805750f0</a></div><div><br></div></div>
</div>
</div>