def __init__(self, grid):
    self.axislabels = []
    self.dimension = None
    self.lowlimits = []
    self.highlimits = []
    if (grid is not None):
        self.dimension = int(grid.get('dimension'))
        self.lowlimits = grid.find('{http://www.opengis.net/gml}limits/{http://www.opengis.net/gml}GridEnvelope/{http://www.opengis.net/gml}low').text.split(' ')
        self.highlimits = grid.find('{http://www.opengis.net/gml}limits/{http://www.opengis.net/gml}GridEnvelope/{http://www.opengis.net/gml}high').text.split(' ')
        for axis in grid.findall('{http://www.opengis.net/gml}axisName'):
            self.axislabels.append(axis.text)
def __init__(self, grid):
    self.axislabels = []
    self.dimension = None
    self.lowlimits = []
    self.highlimits = []
    if (grid is not None):
        self.dimension = int(grid.get('dimension'))
        self.lowlimits = grid.find('{http://www.opengis.net/gml}limits/{http://www.opengis.net/gml}GridEnvelope/{http://www.opengis.net/gml}low').text.split(' ')
        self.highlimits = grid.find('{http://www.opengis.net/gml}limits/{http://www.opengis.net/gml}GridEnvelope/{http://www.opengis.net/gml}high').text.split(' ')
        for axis in grid.findall('{http://www.opengis.net/gml}axisName'):
            self.axislabels.append(axis.text)