def hydrate_point(srid, *coordinates):
    """ Create a new instance of a Point subclass from a raw
    set of fields. The subclass chosen is determined by the
    given SRID; a ValueError will be raised if no such
    subclass can be found.
    """
    try:
        point_class, dim = __srid_table[srid]
    except KeyError:
        point = Point(coordinates)
        point.srid = srid
        return point
    else:
        if len(coordinates) != dim:
            raise ValueError("SRID %d requires %d coordinates (%d provided)" % (srid, dim, len(coordinates)))
        return point_class(coordinates)
def hydrate_point ( srid , * coordinates ) : try : point_class , dim = __srid_table [ srid ] except KeyError : point = Point ( coordinates ) point . srid = srid return point else : if len ( coordinates ) != dim : raise ValueError ( "SRID %d requires %d coordinates (%d provided)" % ( srid , dim , len ( coordinates ) ) ) return point_class ( coordinates )
Create a new instance of a Point subclass from a raw
    set of fields. The subclass chosen is determined by the
    given SRID; a ValueError will be raised if no such
    subclass can be found.