write_gml: Function to export geometries as a Geography Markup Language...

View source: R/write_gml.R

write_gmlR Documentation

Function to export geometries as a Geography Markup Language (GML) file.

Description

write_gml uses rgdal::writeOGR for the spatial data writer and will write projection information.

Usage

write_gml(sp, file, layer = "spatial")

Arguments

sp

Spatial object to be written as a GML/XML file.

file

Filename of GML/XML file.

layer

A string which represents the layer of the GML file where the geometries will be stored. Default uses a generic spatial string.

Author(s)

Stuart K. Grange

Examples

## Not run: 

# Export polygons
write_gml(sp_zones, "~/Desktop/zone_polygons.gml", layer = "zones")


## End(Not run)


skgrange/gissr documentation built on June 20, 2024, 12:02 a.m.