df_to_point | R Documentation |
convert a dataframe with coordinates to a point feature
df_to_point( df, x = "X", y = "Y", crs, todisk = FALSE, folder = NULL, filename = NULL )
df |
dataframe data |
x |
character name of column with x coordinates |
y |
character name of column with y coordinates |
crs |
characeter CRS in format "EPSG:XXXXX" |
todisk |
boolean save the sf object do disk |
folder |
character folder where file will be saved (must exist) |
filename |
character file name + extension |
sf object of point type
# df = data.frame(X = c(-42.3,-42.4,-42.5), Y = c(-20.1, -20.2, -20.3)) # pt1 = df_to_point(df, x = 'X', y = 'Y', crs = 'EPSG:4326', # todisk = TRUE, folder = './pontos', # filename = 'pontos.shp')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.