getMask function

Get the mask info out of a spatial data object