| RasterLayerIdentifier builds a SimpleFeatureType to service WMS GetFeatureInfo requests by using the sample dimension descriptions as the local names of the properties. For NetCDF, these are the long_name of the source variable, but this attribute can contain any text, including spaces. Because the local name of any XML element must be an xs:NCName, a property name built from a long_name that contains spaces causes a GetFeatureInfo XML response to be malformed. For example, a coverage from a NetCDF file with:
will result in malformed GetFeatureInfo XML responses like this snippet:
The proposed solution is to convert sample dimension descriptions to valid NCNames by replacing invalid characters with underscore ("_") and null or empty descriptions with Unknown". |