Learn R Programming

vec2dtransf

2D Cartesian Coordinate Transformation

Applies affine and similarity transformations on vector spatial data (sp objects). Transformations can be defined from control points or directly from parameters. If redundant control points are provided Least Squares is applied allowing to obtain residuals and RMSE.

Visit vec2dtransf in CRAN: https://cran.r-project.org/web/packages/vec2dtransf/index.html

Installation

Run in R:

install.packages("vec2dtransf")

Usage

Turn this (displaced spatial data):

Original scenario

Into this (alligned spatial data):

Ideal scenario

See my blog post describing a full example at: http://geotux.tuxfamily.org/index.php/en/component/k2/item/302-affine-and-similarity-transformations-in-r

For complete documentation of the package, see: https://cran.r-project.org/web/packages/vec2dtransf/vec2dtransf.pdf

Copy Link

Version

Install

install.packages('vec2dtransf')

Monthly Downloads

190

Version

1.1.3

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

August 23rd, 2023

Functions in vec2dtransf (1.1.3)

Cartesian2DCoordinateTransformation-class

Class "Cartesian2DCoordinateTransformation"
control.points

Sample control points data.frame
vec2dtransf-package

2D Cartesian Coordinate Transformation
plotGridTransformation

Plot grid transformation
AffineTransformation

Create an AffineTransformation object
AffineTransformation-class

Class "AffineTransformation"
SimilarityTransformation-class

Class "SimilarityTransformation"
getRMSE

Get RMSE
getResiduals

Get residuals
getParameters

Get tranformation parameters
calculateParameters

Calculate parameters
applyTransformation

Apply the transformation to an sp object
SimilarityTransformation

Create an SimilarityTransformation object