guess_crs | R Documentation |
When retrieving a number of data-points, but the kind of CRS is not
provided/known (for any reason), this utility plots the data for different
CRS on a map to make comparison possible. The main function is
guess_crs
which creates the map with different options.
Custom projections can be provided by the user as well.
guess_crs(
df,
col_x,
col_y,
belgium = TRUE,
crs_try = c("EPSG:4326", "EPSG:31370", "EPSG:28992", "EPSG:32631", "EPSG:3812",
"EPSG:3035")
)
df |
data.frame with a x and y coordinate column |
col_x |
(character) name of the x (longitude) column |
col_y |
(character) name of the y (latitude) column |
belgium |
(logical) If |
crs_try |
(list)
|
For each of the given CRS, the coordinates columns are given the
the specified CRS In a next step, these CRS are converted to
wgs84
and plotted on a openstreetmap
background with leaflet.
The interactive map provides the possibility to select/unselect specific
layers.
crsuggest::guess_crs() for a (better) alternative
Other GIS_utilities:
plot_coordinates_on_map()
,
transform_coordinates()
## Not run:
guess_crs(data, "x", "y")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.