S4846: added functionality to get capabilities of a layer.