import.egvs: Raster file importation

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

This function allows to import raster files into raster maps layers supported in GRASS. Available formats are those provided by GDAL library (http://www.gdal.org/formats_list.html).

Usage

1
import.egvs(filenames, output.names)

Arguments

filenames

character string. Path to raster file to be imported.

output.names

character string. Name of output raster map that will be created in GRASS environment.

Details

Datum and projection of source dataset must match projection of current GRASS location, otherwise a report error message can be generated.

Value

A raster map layer will be uploaded into the opened GRASS environment.

Author(s)

Chiara Magliozzi chiara.magliozzi@libero.it, Fernando Canovas fcgarcia@ualg.pt

References

http://grass.osgeo.org/grass64/manuals/r.in.gdal.html

See Also

list.maps, initGRASS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# starting GRASS session
initGRASS("/usr/bin/grass-7.0.0", home=tempdir())
initGRASS("C:/GRASS", home=tempdir())

## Path to file
file1 <- paste(system.file(package = "ENiRG"), "/ext/tann.asc", sep="")

import.egvs(file1, "tann")

list.maps()


## End(Not run)

ENiRG documentation built on May 1, 2019, 9:15 p.m.