geoserver/geoserver — pull request #16 by mbenowit (2012-08-14 20:47:57+00:00)
Title: Add support for custom dimensions (revised).

This commit contains the modifications from my previous pull request, plus revisions based on Andrea's feedback (sorry, my repository got messed up and I started over).

Added support for custom dimensions on coverage layers, as described in this mailing list discussion: http://osgeo-org.1560.n6.nabble.com/Modification-to-support-custom-dimensions-for-coverage-layers-td4474094.html

Includes unit tests for GetCapabilities, GetMap and GetCoverage requests. The CustomFormatReader added under main/src/test/java shows how a coverage reader can support custom dimensions.

The parameter filtering in the modified core logic will allow a non-standard dimension ONLY if the reader declares that it supports it AND it is prefixed with "dim_" (or a string that matches "dim_" according to a case-insensitive comparison), as per the WMS specification. Custom dimension names in the WMS GetCapabilities response will not include this prefix, which is the correct behavior according to my interpretation of the spec.