'Class method used by GeometryField on initialization to
retrive the units on the given WKT, without having to use
any of the database fields.'

@classmethod
def get_units(cls, wkt):

    if gdal.HAS_GDAL:
        return gdal.SpatialReference(wkt).units
    else:
        m = cls.units_regex.match(wkt)
        return (m.group('unit'), m.group('unit_name'))
