PARAMETER= not matched on RangeSet's Name
Good news, I have succeeded with band selection. However, I think there is
at least one issue. I had to include "BANDS=" in the request, but the
describe coverage looks like this:
<RangeSet>
<name>Bands Rangeset?</name>
<!-- WARNING: Mandatory metadata '..._rangeset_label' was missing in this
context. -->
<AxisDescription>
<description>TM Bands 1-7</description>
<name>Band</name>
<label>Band number</label>
<values>
<singleValue>1</singleValue>
<singleValue>2</singleValue>
<singleValue>3</singleValue>
<singleValue>4</singleValue>
<singleValue>5</singleValue>
<singleValue>6</singleValue>
<singleValue>7</singleValue>
</values>
</AxisDescription>
</RangeSet>
The mapfile definition looked like:
"wcs_rangeset_axes" "bands"
"wcs_rangeset_name" "Bands Rangeset?"
"wcs_bands_description" "TM Bands 1-7"
"wcs_bands_name" "Band"
"wcs_bands_label" "Band number"
"wcs_bands_values" "1,2,3,4,5,6,7"
"wcs_bands_rangeitem" "_bands"
I read over the PARAMETER= stuff, and it should be matching the parameter
name against the <Name> of the AxisDescription, not our internal name for
the rangeset. Either the parameter name should be based on the <Name> of
the axis, or we should get rid of the wcs_<rangeset>_name altogether and
just use our internal rangeset axis name as the <Name>. I would suggest the
second option.