check_projection: Show the projection of raster data and compare to the current...

Description Usage Arguments Details Value

View source: R/import_data.R

Description

Check if the projection of raster files matches the region of the current location

Usage

1
check_projection(path, format = "wkt")

Arguments

path

character string vector; path raster data file(s)

format

character string; how to format the output (see details)

Details

This is a wrapper for the GRASS function g.proj. It prints out the projection information of the current location and of the raster file(s). Based on this information it can be decided if the data can be read into GRASS (import_data) without prior processing, i.e. if all raster data are of the same projection. Different output options can be chosen: * wkt WKT format (default) * grass conventional GRASS format * shell shell script style * proj4 PROJ.4 format (note that this format is deprecated)

Value

Nothing.


openSTARS documentation built on Feb. 4, 2022, 5:08 p.m.