spatial_to_coords | R Documentation |
This function takes a kml or other shapefile, transforms them to WGS84, and export GPS coordinates
spatial_to_coords(in_file, csv_out = NULL, proj = 32616)
in_file |
path to a .KML or .SHP containing points |
csv_out |
path to a .CSV or .TXT to output points. If not provided, an interactive file chooser will be used |
proj |
epsg projection for output. Defaults to 32316 (UTM 16N) |
in_file = 'R:/landscape_ecology/test.shp'
out_file = 'R:/landscape_ecology/output.csv'
spatial_to_coords(in_file, out_file)
# Use an interactive file chooser
in_file = file.choose()
out_file = file.choose()
spatial_to_coords(in_file, out_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.