(point)
return new_point
Ensures the point passed in is a GEOS ``Point`` & returns that point's
    data is in the WGS-84 spatial reference.
Ensures the point passed in is a GEOS ``Point`` & returns that point's
    data is in the WGS-84 spatial reference.
Ensures the point passed in is a GEOS Point & returns that point s data is in the WGS - 84 spatial reference .
def ensure_wgs84(point):
    """
    Ensures the point passed in is a GEOS ``Point`` & returns that point's
    data is in the WGS-84 spatial reference.
    """
    ensure_point(point)
    # Clone it so we don't alter the original, in case they're using it for
    # something else.
    new_point = point.clone()

    if not new_point.srid:
        # It has no spatial reference id. Assume WGS-84.
        new_point.set_srid(WGS_84_SRID)
    elif new_point.srid != WGS_84_SRID:
        # Transform it to get to the right system.
        new_point.transform(WGS_84_SRID)

    return new_point
def ensure_wgs84 ( point ) : ensure_point ( point ) # Clone it so we don't alter the original, in case they're using it for # something else. new_point = point . clone ( ) if not new_point . srid : # It has no spatial reference id. Assume WGS-84. new_point . set_srid ( WGS_84_SRID ) elif new_point . srid != WGS_84_SRID : # Transform it to get to the right system. new_point . transform ( WGS_84_SRID ) return new_point