Não foi possível enviar o arquivo. Será algum problema com as permissões?
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anterior Revisão anterior Próxima revisão | Revisão anterior Próxima revisão Ambos lados da revisão seguinte | ||
software:art [2008/10/21 19:54] pedro |
software:art [2012/10/03 22:09] pedro |
||
---|---|---|---|
Linha 1: | Linha 1: | ||
====== aRT: R-TerraLib API ====== | ====== aRT: R-TerraLib API ====== | ||
+ | |||
[[http://www.r-project.org|{{:software:rlogo-2.png?155 }}]] | [[http://www.r-project.org|{{:software:rlogo-2.png?155 }}]] | ||
[[http://www.terralib.org|{{ http://www.terralib.org/imagens/logo_terralib_index.png?155}}]] | [[http://www.terralib.org|{{ http://www.terralib.org/imagens/logo_terralib_index.png?155}}]] | ||
Linha 11: | Linha 12: | ||
- Install aRT dependencies as detailed in the **[[#Dependencies|dependencies section]]**. | - Install aRT dependencies as detailed in the **[[#Dependencies|dependencies section]]**. | ||
- Install as usual for R packages:<code R> | - Install as usual for R packages:<code R> | ||
- | > install.packages("aRT", contrib="http://leg.ufpr.br/aRT") | + | > install.packages("aRT", contrib="http://www.leg.ufpr.br/aRT") |
</code> | </code> | ||
See [[software:art:faq|FAQ]] for more details. | See [[software:art:faq|FAQ]] for more details. | ||
+ | <html><!-- | ||
===Linux binaries=== | ===Linux binaries=== | ||
* **[[software:art:linuxdistros|Binaries for some Linux distros]]** are also available. | * **[[software:art:linuxdistros|Binaries for some Linux distros]]** are also available. | ||
+ | --></html> | ||
===Windows binary=== | ===Windows binary=== | ||
- | * Instead of using install.packages(), you can download **[[http://www.leg.ufpr.br/~pedro/aRT/aRT_1.6-1.zip|aRT_1.6-1.zip]]** and use 'Install package(s) from local zip files' in the 'Packages' menu. | + | * Instead of using install.packages(), you can download **{{http://www.leg.ufpr.br/~pedro/aRT/aRT_1.8-1.zip|aRT_1.8-1.zip}}** (Tuesday, 02-Oct-2012) and use 'Install package(s) from local zip files' from the 'Packages' menu. |
===Source code=== | ===Source code=== | ||
- | |**[[http://www.leg.ufpr.br/~pedro/aRT/aRT_1.6-1.tar.gz|aRT_1.6-1.tar.gz]]** (Monday, 13-Oct-2008)| | + | |**[[http://www.leg.ufpr.br/~pedro/aRT/aRT_1.8-1.tar.gz|aRT_1.8-1.tar.gz]]** (Tuesday, 02-Oct-2012)| |
===== Dependencies ===== | ===== Dependencies ===== | ||
aRT depends on other availability of resources as follows and | aRT depends on other availability of resources as follows and | ||
may not run correctly with versions other than indicated. | may not run correctly with versions other than indicated. | ||
+ | |||
+ | ===Windows=== | ||
+ | - **[[http://www.mysql.com/downloads/|MySQL]] version 14.12 Distrib 5.0.67 or greater**. MySQL is an open source DBMS. | ||
+ | - **[[http://cran-r.c3sl.ufpr.br/web/packages/sp/index.html|sp]] version at least 0.9-26**. sp is an R package with S4 classes and methods for spatial data. | ||
===Linux=== | ===Linux=== | ||
- | * Automatic install of all dependencies: **{{http://www.leg.ufpr.br/~pedro/aRT/install-aRT-dep.zip|Install-aRT-dep}}** is an apt-based script (Debian, Ubuntu, and friends) to facilitate installing aRT dependencies. | + | * Automatic install of all dependencies: **install-aRT-dep {{http://www.leg.ufpr.br/~pedro/aRT/install-aRT-dep-32.zip|32}} and {{http://www.leg.ufpr.br/~pedro/aRT/install-aRT-dep-64.zip|64}} bits** are apt-based scripts (Debian, Ubuntu, and friends) to facilitate installing aRT dependencies. This script installs MySQL DBMS. |
* Individual dependencies | * Individual dependencies | ||
- | - **[[http://www.mysql.com/downloads/|MySQL]] version 14.12 Distrib 5.0.32 or greater**. MySQL is an open source DBMS. | + | - **[[http://www.mysql.com/downloads/|MySQL]] version 14.14 Distrib 5.1.49 or greater**. MySQL is an open source DBMS. It is optional, but you have to install at least one DBMS. |
- | * apt install: <code> apt-get install mysql-server-5.0 libmysqlclient15-dev</code> | + | * apt install: <code> apt-get install mysql-server-5.1 libmysqlclient-dev</code> |
- | - **[[http://www.trolltech.com/|Qt]] version 3.3.3**. Qt is a multiplatform toolkit in C++ for the development of graphic interfaces, implemented by Trolltech. | + | - **[[http://www.postgresql.org/|PostgreSQL]] version 8.3 or greater**. PostgreSQL is also an open source DBMS. It is optional, but you have to install at least one DBMS. |
- | * apt: <code>apt-get install libqt3-mt-dev</code> | + | * apt install: <code> apt-get install postgresql postgis</code> |
+ | - **[[http://www.trolltech.com/|Qt]] version 3.3.3**. Qt is a multiplatform toolkit for the development of graphic interfaces, implemented by Trolltech. | ||
+ | * apt install: <code>apt-get install libqt3-mt-dev</code> | ||
+ | - **[[http://www.gdal.org/|GDAL]]**. Geospatial Data Abstraction Library. | ||
+ | * apt install: <code>apt-get install libgdal1-dev</code> | ||
- **JPEG.** A library for working with jpeg image format. | - **JPEG.** A library for working with jpeg image format. | ||
- | * apt:<code> apt-get install libjpeg62-dev</code> | + | * apt install:<code> apt-get install libjpeg62-dev</code> |
+ | - **Libdime**: A library for reading, constructing, manipulating, and writing DXF file data. Necessary to compile TerraView. | ||
+ | * apt install:<code> apt-get install libdime-dev</code> | ||
+ | - **Libdrm** A direct interface with video hardware using the Linux kernel's Direct Rendering Modules. Necessary to compile TerraView. | ||
+ | * apt install:<code> apt-get install libdrm-dev</code> | ||
- **[[http://cran-r.c3sl.ufpr.br/web/packages/sp/index.html|sp]] version at least 0.9-26**. sp is an R package with S4 classes and methods for spatial data. | - **[[http://cran-r.c3sl.ufpr.br/web/packages/sp/index.html|sp]] version at least 0.9-26**. sp is an R package with S4 classes and methods for spatial data. | ||
- | - **[[http://www.terralib.org/|TerraLib]] version 3.2**. TerraLib is a library of classes for GIS. It is available under cvs. Alternatives for installing are: | + | - **[[http://www.terralib.org/|TerraLib]] version 4.2.0**. TerraLib is a library of classes for GIS. It is available under svn:<code> |
- | * [[software:art:linuxdistros|TerraLib/TerraView binaries are available for some Linux distros]]. | + | |
- | * Installing by compiling from sources: <code> | + | |
mkdir terralib | mkdir terralib | ||
cd terralib | cd terralib | ||
- | cvs -d :pserver:anonymous@cvs.dpi.inpe.br:/home/terralib login | + | svn co https://svn.dpi.inpe.br/terralib/tags/v-4-2-0/src |
- | cvs -d :pserver:anonymous@cvs.dpi.inpe.br:/home/terralib co -r v-3-2-0 src | + | mkdir dependencies |
- | cvs -d :pserver:anonymous@cvs.dpi.inpe.br:/home/terralib co -r v-3-2-0 terralibx | + | cd dependencies |
- | cvs -d :pserver:anonymous@cvs.dpi.inpe.br:/home/terralib co -r v-3-2-0 terraView | + | svn co https://svn.dpi.inpe.br/terralib/tags/v-4-2-0/dependencies/linux |
- | cd terraView/linux | + | cd .. |
- | make | + | svn co https://svn.dpi.inpe.br/terralib/tags/v-4-2-0/terraView |
- | </code>The Makefile is in ''terraView/linux/''. If permissions allow the compiled TerraLib can be moved to ''/usr/local''. TerraLib directory needs to be registered in ''LD_LIBRARY_PATH''. Put the following lines in your ''.bashrc'' (change path to ''TERRALIBDIR'' if needed): <code> | + | mkdir build |
+ | cd build | ||
+ | svn co https://svn.dpi.inpe.br/terralib/tags/v-4-2-0/build/qt | ||
+ | cd .. | ||
+ | </code>After that, compile terraView:<code> | ||
+ | LD_LIBRARY_PATH=$TERRALIB_DIR/terralib/Release/linux-g++ | ||
+ | export LD_LIBRARY_PATH | ||
+ | cd build/qt | ||
+ | make</code>TerraLib directory needs to be registered in ''LD_LIBRARY_PATH''. Put the following lines in your ''.bashrc'' (change path to ''TERRALIBDIR'' if needed): <code> | ||
TERRALIBDIR=/usr/local/terralib | TERRALIBDIR=/usr/local/terralib | ||
- | LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TERRALIBDIR/terralibx/lib | + | LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TERRALIBDIR/terralib/Release/linux-g++ |
export LD_LIBRARY_PATH | export LD_LIBRARY_PATH | ||
- | </code> If TerraLib is located at another directory you can still install aRT by calling (replace ''/terralib/dir'' accordingly): <code> | + | </code> After that, you can running 'terraView' directly from bash (<html><span style="color:red"><b>Important</b></span></html>: some new versions of terraView require the argument host for connecting to a DBMS, therefore it is necessary to fill it with '127.0.0.1'). If TerraLib is located at any another directory you can still install aRT by calling (replace ''/terralib/dir'' accordingly): <code> |
- | R CMD INSTALL --configure-args=--with-terralib=/terralib/dir aRT | + | R CMD INSTALL --configure-args=--with-terralib=/terralib/dir/ aRT |
</code> | </code> | ||
- | |||
- | ===Windows=== | ||
- | - **[[http://www.mysql.com/downloads/|MySQL]] version 14.12 Distrib 5.0.67 or greater**. MySQL is an open source DBMS. | ||
- | - **[[http://cran-r.c3sl.ufpr.br/web/packages/sp/index.html|sp]] version at least 0.9-26**. sp is an R package with S4 classes and methods for spatial data. | ||
===== Examples ===== | ===== Examples ===== | ||
Linha 82: | Linha 100: | ||
===User Guides (also distributed as package vignettes)=== | ===User Guides (also distributed as package vignettes)=== | ||
- | * aRT Manual ({{http://www.leg.ufpr.br/~pedro/aRT/docs/aRT-manual.pdf|pdf}}) | + | * aRT Manual ({{http://www.leg.ufpr.br/~pedro/aRT/doc/aRT-manual.pdf|pdf}}) |
- | * Introduction ([[http://www.leg.ufpr.br/~pedro/aRT/docs/aRTintro.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/docs/aRTintro.pdf|pdf}}) | + | * Introduction ([[http://www.leg.ufpr.br/~pedro/aRT/doc/aRTintro.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/doc/aRTintro.pdf|pdf}}) |
- | * Database connections ([[http://www.leg.ufpr.br/~pedro/aRT/docs/aRTconn.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/docs/aRTconn.pdf|pdf}}) | + | * Database connections ([[http://www.leg.ufpr.br/~pedro/aRT/doc/aRTconn.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/doc/aRTconn.pdf|pdf}}) |
- | * sp data ([[http://www.leg.ufpr.br/~pedro/aRT/docs/aRTsp.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/docs/aRTsp.pdf|pdf}}) | + | * sp data ([[http://www.leg.ufpr.br/~pedro/aRT/doc/aRTsp.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/doc/aRTsp.pdf|pdf}}) |
- | * Tables and Queries ([[http://www.leg.ufpr.br/~pedro/aRT/docs/aRTtable.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/docs/aRTtable.pdf|pdf}}) | + | * Tables and Queries ([[http://www.leg.ufpr.br/~pedro/aRT/doc/aRTtable.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/doc/aRTtable.pdf|pdf}}) |
+ | * Filling cells ([[http://www.leg.ufpr.br/~pedro/aRT/doc/aRTfillcell.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/doc/aRTfillcell.pdf|pdf}}) | ||
+ | * GPM ([[http://www.leg.ufpr.br/~pedro/aRT/doc/aRTgpm.html|html]], {{http://www.leg.ufpr.br/~pedro/aRT/doc/aRTgpm.pdf|pdf}}) | ||
===Papers and Presentations=== | ===Papers and Presentations=== | ||
- | * aRT: R-TerraLib API. P. R. Andrade, P. J. Ribeiro Junior. [[http://www.r-project.org/useR-2006/|useR! 2006]] ({{http://www.leg.ufpr.br/~pedro/aRT/docs/aRTuseR.pdf|presentation}}, and a [[http://www.r-project.org/useR-2006/Photos/Conference/6.html|photo]]!) | + | * aRT: R-TerraLib API. P. R. Andrade, P. J. Ribeiro Junior. [[http://www.r-project.org/useR-2006/|useR! 2006]] ({{http://www.leg.ufpr.br/~pedro/aRT/docs/aRTuseR.pdf|presentation}}, and a [[http://www.r-project.org/useR-2006/Photos/Conference/6.html|photo!]]) |
* Integration of Statistics and Geographic Information Systems: the R/TerraLib Case. P. R. Andrade, P. J. Ribeiro Junior, K. Fook. [[http://www.geoinfo.info/|GeoInfo 2005]] ({{http://www.leg.ufpr.br/~pedro/aRT/docs/P74.pdf|paper}}, {{http://www.leg.ufpr.br/~pedro/aRT/docs/IntegrationRTerraLib.pdf|presentation}}) | * Integration of Statistics and Geographic Information Systems: the R/TerraLib Case. P. R. Andrade, P. J. Ribeiro Junior, K. Fook. [[http://www.geoinfo.info/|GeoInfo 2005]] ({{http://www.leg.ufpr.br/~pedro/aRT/docs/P74.pdf|paper}}, {{http://www.leg.ufpr.br/~pedro/aRT/docs/IntegrationRTerraLib.pdf|presentation}}) | ||
* A Process and Environment for Embedding The R Software into TerraLib. P. R. Andrade, P. J. Ribeiro Junior. [[http://www.geoinfo.info/|GeoInfo 2005]] ({{http://www.leg.ufpr.br/~pedro/aRT/docs/p70.pdf|paper}}, {{http://www.leg.ufpr.br/~pedro/aRT/docs/ProccessAndEnvironment.pdf|presentation}}) | * A Process and Environment for Embedding The R Software into TerraLib. P. R. Andrade, P. J. Ribeiro Junior. [[http://www.geoinfo.info/|GeoInfo 2005]] ({{http://www.leg.ufpr.br/~pedro/aRT/docs/p70.pdf|paper}}, {{http://www.leg.ufpr.br/~pedro/aRT/docs/ProccessAndEnvironment.pdf|presentation}}) | ||
Linha 96: | Linha 116: | ||
===Data sets and scripts=== | ===Data sets and scripts=== | ||
+ | Please uncompress the zip files in the current folder before running the scripts. For more examples, see folder 'tests' within aRT installation folder. | ||
* Creating cells and filling attributes ({{http://www.leg.ufpr.br/~pedro/aRT/data/rondonia.R|script}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/rondonia.zip|shapefile data}}) | * Creating cells and filling attributes ({{http://www.leg.ufpr.br/~pedro/aRT/data/rondonia.R|script}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/rondonia.zip|shapefile data}}) | ||
- | * Points inside of polygons ({{http://www.leg.ufpr.br/~pedro/aRT/data/bh.R|script}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/bh.zip| MID/MIFF data}}) | ||
* Union of polygons ({{http://www.leg.ufpr.br/~pedro/aRT/data/meso-parana.R|script}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/meso-parana.zip|shapefile data}}) | * Union of polygons ({{http://www.leg.ufpr.br/~pedro/aRT/data/meso-parana.R|script}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/meso-parana.zip|shapefile data}}) | ||
+ | * Neighbourhood, relations, and metrics ({{http://www.leg.ufpr.br/~pedro/aRT/data/northwest.R|script}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/northwest.zip|data dumped from R}}) | ||
* Neighborhood matrix and analysis with spdep ({{http://www.leg.ufpr.br/~pedro/aRT/data/neigh-parana-aRT.R|script aRT}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/neigh-parana-maptools.R|script maptools}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/neigh-parana.zip|shapefile data}}) | * Neighborhood matrix and analysis with spdep ({{http://www.leg.ufpr.br/~pedro/aRT/data/neigh-parana-aRT.R|script aRT}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/neigh-parana-maptools.R|script maptools}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/neigh-parana.zip|shapefile data}}) | ||
+ | * Adehabitat example ({{http://www.leg.ufpr.br/~pedro/aRT/data/adehabitat-peixeboi.R|script}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/peixe_boi.zip|shapefile data}}) | ||
+ | |||
+ | <html><!-- | ||
+ | * Points inside of polygons ({{http://www.leg.ufpr.br/~pedro/aRT/data/bh.R|script}}, {{http://www.leg.ufpr.br/~pedro/aRT/data/bh.zip| MID/MIFF data}}) | ||
+ | --></html> | ||
+ | |||
+ | ===Courses=== | ||
+ | |||
+ | * [[software:art:course|An Introduction to aRT]] (in portuguese) | ||
===Other links=== | ===Other links=== | ||
+ | |||
* aRT [[software:art-dev|development page]] | * aRT [[software:art-dev|development page]] | ||
* [[software:art:faq|FAQ]] | * [[software:art:faq|FAQ]] | ||
- | * [[http://www.leg.ufpr.br/~pedro/aRT/old|Old versions (source code)]] | + | * [[http://www.leg.ufpr.br/~pedro/aRT/CHANGES|Change log]] |
- | * [[http://www.leg.ufpr.br/~pedro/aRT/old/win|Old Windows versions]] | + | * [[http://www.leg.ufpr.br/~pedro/aRT/old|Old versions]] (source code, see changelog for system requirements) |
+ | * [[http://www.leg.ufpr.br/~pedro/aRT/old/win|Old Windows versions]] (see changelog for TerraLib version) | ||
+ | * R resources for spatial statistics at the [[http://cran.r-project.org/web/views/Spatial.html| the CRAN spatial task view]]. | ||
+ | |||
+ | ===== Contact ===== | ||
+ | ===Discussion list=== | ||
+ | * **art_l at leg.ufpr.br** | ||
- | ===== Authors ===== | + | ===Developers=== |
- | ===Contact=== | + | * [[http://leg.ufpr.br/~pedro|Pedro Ribeiro de Andrade]] - pedro.andrade at inpe.br (maintainer) |
- | * [[http://leg.ufpr.br/~pedro|Pedro Ribeiro de Andrade]] - pedro at dpi.inpe.br (maintainer) | + | |
* [[http://leg.ufpr.br/~paulojus|Paulo Justiniano Ribeiro Junior]] - paulojus at ufpr.br | * [[http://leg.ufpr.br/~paulojus|Paulo Justiniano Ribeiro Junior]] - paulojus at ufpr.br | ||
* Eduardo Sant'Ana da Silva - eduardo.santanadasilva at gmail.com | * Eduardo Sant'Ana da Silva - eduardo.santanadasilva at gmail.com | ||
* Henrique Dallazuanna - wwwhsd at gmail.com | * Henrique Dallazuanna - wwwhsd at gmail.com | ||
- | |||
- | <html><p></html> | ||
===Collaborators in earlier versions=== | ===Collaborators in earlier versions=== | ||
Linha 125: | Linha 159: | ||
===== Acknowledgements ===== | ===== Acknowledgements ===== | ||
- | aRT has been developed with the computational resources of the Laboratory of Statistics and Geoinformation (LEG), at UFPR, and the Image Processing Division (DPI), at INPE. | + | aRT has been developed with the computational resources of the Laboratory of Statistics and Geoinformation (LEG), at UFPR, together with Earth System Science Center (CST) and Image Processing Division (DPI), at INPE. |
[[http://wiki.leg.ufpr.br/doku.php/|{{http://www.leg.ufpr.br/~pedro/aRT/images/leg.jpg?100}}]] | [[http://wiki.leg.ufpr.br/doku.php/|{{http://www.leg.ufpr.br/~pedro/aRT/images/leg.jpg?100}}]] | ||
[[http://www.ufpr.br/portal/|{{http://www.leg.ufpr.br/~pedro/aRT/images/ufpr.jpg?130}}]] | [[http://www.ufpr.br/portal/|{{http://www.leg.ufpr.br/~pedro/aRT/images/ufpr.jpg?130}}]] | ||
[[http://www.dpi.inpe.br/|{{http://www.leg.ufpr.br/~pedro/aRT/images/dpi.jpg?150}}]] | [[http://www.dpi.inpe.br/|{{http://www.leg.ufpr.br/~pedro/aRT/images/dpi.jpg?150}}]] | ||
+ | [[http://www.ccst.inpe.br/#|{{http://www.leg.ufpr.br/~pedro/aRT/images/logo-ccst.jpg?230}}]] | ||
[[http://www.inpe.br/|{{http://www.leg.ufpr.br/~pedro/aRT/images/inpe.jpg}}]] | [[http://www.inpe.br/|{{http://www.leg.ufpr.br/~pedro/aRT/images/inpe.jpg}}]] | ||
- | This project is partially supported by Fapesp, proccess number 04/11012-0, FPLF proccess 2005.05.066, and CNPq 552044/2002-4. | + | This project is partially supported by Fapesp, process number 04/11012-0, FPLF process 2005.05.066, and CNPq 552044/2002-4. |
[[http://www.fapesp.br|{{http://www.leg.ufpr.br/~pedro/aRT/images/logo-fapesp.gif}}]] | [[http://www.fapesp.br|{{http://www.leg.ufpr.br/~pedro/aRT/images/logo-fapesp.gif}}]] | ||
Linha 138: | Linha 173: | ||
[[http://www.cnpq.br|{{http://www.leg.ufpr.br/~pedro/aRT/images/logo_cnpq.jpg}}]] | [[http://www.cnpq.br|{{http://www.leg.ufpr.br/~pedro/aRT/images/logo_cnpq.jpg}}]] | ||
[[http://www.dpi.inpe.br/saudavel/english.html|{{http://www.leg.ufpr.br/~pedro/aRT/images/saudavel-logo.jpeg?300}}]] | [[http://www.dpi.inpe.br/saudavel/english.html|{{http://www.leg.ufpr.br/~pedro/aRT/images/saudavel-logo.jpeg?300}}]] | ||
+ | |||
+ | ===== Statistics ===== | ||
<html> | <html> | ||
Linha 143: | Linha 180: | ||
</a> | </a> | ||
</html> | </html> | ||
+ | [[http://www.leg.ufpr.br/~pedro/aRT/images/art-couts-2009-grande.jpg|{{http://www.leg.ufpr.br/~pedro/aRT/images/art-couts-2009-pequeno.jpg|Last Year}}]] | ||
+ | |||
+ |