def dehydrate_point(value):
    """ Dehydrator for Point data.

    :param value:
    :type value: Point
    :return:
    """
    dim = len(value)
    if dim == 2:
        return Structure(b"X", value.srid, *value)
    elif dim == 3:
        return Structure(b"Y", value.srid, *value)
    else:
        raise ValueError("Cannot dehydrate Point with %d dimensions" % dim)
def dehydrate_point ( value ) : dim = len ( value ) if dim == 2 : return Structure ( b"X" , value . srid , * value ) elif dim == 3 : return Structure ( b"Y" , value . srid , * value ) else : raise ValueError ( "Cannot dehydrate Point with %d dimensions" % dim )
Dehydrator for Point data.

    :param value:
    :type value: Point
    :return: