S4846: added functionality to get capabilities of a layer.
Merge pull request #15 from Abhay-Joshi-Git/di

S4846: added functionality to get capabilities of a layer.