read_xml_map: Read and parse xml file with map specifications.

View source: R/read_xml_map.R

read_xml_mapR Documentation

Read and parse xml file with map specifications.

Description

Read and parse the input xml file to return an sf object.

Usage

read_xml_map(xmlname, crs)

Arguments

xmlname

Name of the xml file with the map specifications.

crs

integer or character; coordinate reference system for the geometry as in function sf::st_as_sfc

Details

Return an sf object with the geometry column parsed from the input xml file.

Examples

read_xml_map(
  system.file("extdata/input_files", "map.xml", package = "simutils"),
  crs = 2062
)


bogdanoancea/simutils documentation built on April 4, 2022, 2:58 p.m.