Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wrappers

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

Bindings for the 'Geospatial' Data Abstraction Library

v1.5-23
GPL (>= 2)
Authors
Roger Bivand [cre, aut] (<https://orcid.org/0000-0003-2392-6140>), Tim Keitt [aut], Barry Rowlingson [aut, ctb], Edzer Pebesma [ctb], Michael Sumner [ctb], Robert Hijmans [ctb], Daniel Baston [ctb], Even Rouault [cph, ctb], Frank Warmerdam [cph, ctb], Jeroen Ooms [ctb], Colin Rundel [ctb]
Initial release
2021-02-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.