wrappers: Wrapper functions to allow more direct calling of rgdal C...

GDALcallR Documentation

Wrapper functions to allow more direct calling of rgdal C code

Description

These functions allow more direct access to some of the rgdal C API. These are advanced methods intended for package developers only.

Usage

GDALcall(object, option, ...)
rawTransform(projfrom, projto, n, x, y, z=NULL, wkt=FALSE)

Arguments

object

GDALTransientDataset (option = 'SetGeoTransform', 'SetProject') or GDALRasterBand (the other options)

option

character. One of 'SetGeoTransform', 'SetProject', 'SetNoDataValue', 'SetStatistics', 'SetRasterColorTable' or 'SetCategoryNames')

...

additional arguments. The values to be set

projfrom

character. PROJ.4 coordinate reference system (CRS) description

projto

character. PROJ.4 CRS description

n

number of coordinates

x

x coordinates

y

y coordinates

z

z coordinates

wkt

default FALSE, if TRUE, the caller determines that projfrom and projto are wkt and that new_proj_and_gdal() returns TRUE to avoid multiple warnings when the function is called repetitively

Value

GDALcall does not return anything. rawTransform returns a matrix of transformed coordinates.

Author(s)

Robert Hijmans


rgdal documentation built on May 10, 2022, 1:05 a.m.