def _getGrid(self):
    if (not hasattr(self, 'descCov')):
        self.descCov = self._service.getDescribeCoverage(self.id)
    gridelem = self.descCov.find((((ns('CoverageOffering/') + ns('domainSet/')) + ns('spatialDomain/')) + '{http://www.opengis.net/gml}RectifiedGrid'))
    if (gridelem is not None):
        grid = RectifiedGrid(gridelem)
    else:
        gridelem = self.descCov.find((((ns('CoverageOffering/') + ns('domainSet/')) + ns('spatialDomain/')) + '{http://www.opengis.net/gml}Grid'))
        grid = Grid(gridelem)
    return grid
def _getGrid(self):
    if (not hasattr(self, 'descCov')):
        self.descCov = self._service.getDescribeCoverage(self.id)
    gridelem = self.descCov.find((((ns('CoverageOffering/') + ns('domainSet/')) + ns('spatialDomain/')) + '{http://www.opengis.net/gml}RectifiedGrid'))
    if (gridelem is not None):
        grid = RectifiedGrid(gridelem)
    else:
        gridelem = self.descCov.find((((ns('CoverageOffering/') + ns('domainSet/')) + ns('spatialDomain/')) + '{http://www.opengis.net/gml}Grid'))
        grid = Grid(gridelem)
    return grid