https://github.com/gacarrillor/vec2dtransf
An R package to apply affine and similarity transformations on vector layers (sp objects)
https://github.com/gacarrillor/vec2dtransf
2d affine affine-transformation coordinates least-squares r rmse similarity-transformations sp-objects transformations
Last synced: about 2 months ago
JSON representation
An R package to apply affine and similarity transformations on vector layers (sp objects)
- Host: GitHub
- URL: https://github.com/gacarrillor/vec2dtransf
- Owner: gacarrillor
- Created: 2015-01-10T16:07:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-13T22:29:40.000Z (6 months ago)
- Last Synced: 2025-03-19T17:48:32.493Z (2 months ago)
- Topics: 2d, affine, affine-transformation, coordinates, least-squares, r, rmse, similarity-transformations, sp-objects, transformations
- Language: R
- Size: 35.2 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://cran.r-project.org/package=vec2dtransf)
[](https://cran.r-project.org/web/checks/check_results_vec2dtransf.html)
[](https://cran.r-project.org/package=vec2dtransf)
[](https://cran.r-project.org/package=vec2dtransf)
[](https://cran.r-project.org/package=vec2dtransf)
[](https://github.com/gacarrillor/vec2dtransf)# vec2dtransf
2D Cartesian Coordinate TransformationApplies 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:
```R
install.packages("vec2dtransf")
```### Usage
Turn this (displaced spatial data):
![Original scenario][1]
Into this (alligned spatial data):
![Ideal scenario][2]
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
[1]: http://downloads.tuxfamily.org/tuxgis/geoblogs/vec2dtransf/imgs/08_vec2dtransf.png
[2]: http://downloads.tuxfamily.org/tuxgis/geoblogs/vec2dtransf/imgs/07_vec2dtransf.png