openSTARS (version 1.2.2)

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

Description

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

Usage

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)

Value

Nothing.

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)