
Convert sf object to dataframe with longitude and latitude columns
sf_to_df_with_coords.Rd
This function takes an sf object and converts it to a data frame, adding "POINT_X" and "POINT_Y" columns for longitude and latitude. If the input sf object is not in WGS 84, it will be transformed.