R-TerraLib API
Description
aRT is a package integrating R with the TerraLib geoprocessing library.
TerraLib contains a set of Geographic Information System (GIS) classes written
in C++ to support building GIS applications. It manipulates points, lines,
polygons and raster data (grids), storing them in a Data-Base Management
System (DBMS). It has functions for data importing and management,
as well as spatial-temporal queries.
The main objectives of TerraLib are:
- Encapsulate various DBMS, for example MySQL, PostgreSQL, PostGIS and Oracle-spatial;
- Give high-level support do spatial operations;
- Enable database access without directly using SQL queries;
- Retrieve spatial objects from DBMS in a proxy-like way.
The main motivation for the package development is to enable
the access to geographical databases and spatial/temporal operations
on them. TerraLib provides its own way to manipulate geographical databases,
and it has several internal tables to control geospatial data and
their relations. For mode information about TerraLib, please visit http://www.terralib.org.
Classes
aRT encapsulates the main TerraLib concepts through the following classes:
aRTconn
:- Stores a virtual DBMS connection and creates
aRTdb
objects.
It can perform database administration tasks such as adding and removing permission to users.
aRTdb
:- Stores a real connection to a database.
It can open/create aRTlayer objects and open aRTtheme objects.
aRTlayer
:- Represents an information layer inside a database.
It performs spatial queries such as metrics and relations over its geometries.
Each layer manipulates only geometry, but it can open/create
aRTtable
, aRTtheme
,
and aRTquerier
objects.
aRTtable
:- Stores a database table. It retrieves data as data.frames.
Each table has one specific type, and it can be static, temporal, external or media.
Whenever you read data from the table, you get the whole data without any restriction.
The way to select rows and columns is using
aRTtheme
.
aRTtheme
:- Joins spatial and attribute tables in only one object.
It can perform attribute restrictions and create
aRTquerier
objects.
aRTquerier
:- Encapsulates a database query.
It can be temporal, if it was created from a temporal theme and if a slicing was defined.
It can retrieve data row by row, slide by slide (if temporal).
aRTvisual
:- Defines a color and style configuration to be used within
aRTtheme
objects.
aRTgeometry
:- Manipulates TerraLib objects of vectorial data within R.
aRTraster
:- Manipulates TerraLib grids within R.
aRTnetwork
:- A set of lines to compute distances in non-Euclidean spaces. Under development.
aRTgpm
:- A class for building Generalized Proximity Matrixes. Under development.
Author(s)
Pedro Ribeiro de Andrade, Marcos Aurelio Carrero, Paulo Justiniano Ribeiro Junior
References
http://www.est.ufpr.br/aRT
http://www.terralib.org
See Also
CLASSNAME-class
for links to CLASSNAME
[Package
aRT version 1.6-1
Index]