Hello all,

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.

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.

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

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.

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:

"gml_[fieldname]_type"      "Coded"

But this didn't seem to have any effect.

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...

best,
Tanya

[1]
https://gdal.org/en/latest/drivers/vector/openfilegdb.html#vector-openfilegdb
[2] https://mapserver.org/output/ogr_output.html#attribute-field-definitions
[3] https://gdal.org/en/latest/doxygen/classOGRCodedFieldDomain.html
[4]
https://gdal.org/en/latest/doxygen/ogr__api_8h.html#a2da91858f40681f85e709989249855eb
[5]
https://gdal.org/en/latest/doxygen/ogr__core_8h.html#a45135d27c2151b4e9a812c4c805750f0
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to