parameters: (point)
return_statement: return new_point
docstring: Ensures the point passed in is a GEOS ``Point`` & returns that point's
      data is in the WGS-84 spatial reference.
docstring_summary: Ensures the point passed in is a GEOS ``Point`` & returns that point's
      data is in the WGS-84 spatial reference.
docstring_tokens: Ensures the point passed in is a GEOS Point & returns that point s data is in the WGS - 84 spatial reference .
function: 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
function_tokens: 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