16
 Pedro Ribeiro de Andrade Neto Pedro Ribeiro de Andrade Neto Paulo Justiniano Ribeiro Junior Paulo Justiniano Ribeiro Junior (Universidade Federal do Paraná, Brasil) (Universidade Federal do Paraná, Brasil) aRT: R-TerraLib API aRT: R-TerraLib API useR! 2006 useR! 2006

aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

Pedro Ribeiro de Andrade NetoPedro Ribeiro de Andrade Neto

Paulo Justiniano Ribeiro JuniorPaulo Justiniano Ribeiro Junior(Universidade Federal do Paraná, Brasil)(Universidade Federal do Paraná, Brasil)

aRT: R­TerraLib APIaRT: R­TerraLib API

useR! 2006useR! 2006

Page 2: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

MotivationMotivation

What these problems have in common?What these problems have in common?

useR! 2006useR! 2006

  ●     Citrus diseases Citrus diseases 

●     mosquitos / dengue diseasemosquitos / dengue disease  ●     crimes within an urban areacrimes within an urban area

Page 3: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

MotivationMotivation

useR! 2006useR! 2006

●   Data collection mechanismData collection mechanism  ●   Monitoring/surveillance systemsMonitoring/surveillance systems

●   Interplay between spatial statistics and GIS.Interplay between spatial statistics and GIS.

● Need for “automatic” data analysis and reportsNeed for “automatic” data analysis and reports

Page 4: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

MotivationMotivationSome are from Venus, some are from Mars...Some are from Venus, some are from Mars...

useR! 2006useR! 2006

●   StatisticiansStatisticians

●   Subject matter scientistsSubject matter scientists

●   ways to exchange information and to deliver ways to exchange information and to deliver statistical expertise, results and technologiesstatistical expertise, results and technologies

Page 5: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

TerraLib ProjectTerraLib Project

useR! 2006useR! 2006

●   Free softwareFree software●   http://www.terralib.orghttp://www.terralib.org●   Developed byDeveloped by

Page 6: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

TerraLibTerraLib

useR! 2006useR! 2006DBMS

TerraLib

Jfddfjh gfsdfgdfssf    fsdf  fsdfsd        sdfsdfJfddfjh gfsdfgdfssf    fsdf  fsdfsd        sdfsdf

Jfddfjh gfsdfgdfssf    fsdf  fsdfsd        sdfsdf

● Adds spatial/temporal capabilities to the DBMSAdds spatial/temporal capabilities to the DBMS●   Enables the construction of customized GISEnables the construction of customized GIS

Page 7: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

TerraLibTerraLib

useR! 2006useR! 2006

●   Object oriented (C++), adheres to STL (Standard Object oriented (C++), adheres to STL (Standard Template Library), Generic programming, etc.Template Library), Generic programming, etc.

●   Multiplataform (Linux and Windows)Multiplataform (Linux and Windows)●   Integrated architecture (DBMS to store,       Integrated architecture (DBMS to store,       

manipulate and manage geographic data)manipulate and manage geographic data)          data and geometry in the DBMS (transparent)data and geometry in the DBMS (transparent)

●   MySQL, PostgreSQL, PostGISMySQL, PostgreSQL, PostGIS●   Oracle, Oracle Spatial, SQLServer, AccessOracle, Oracle Spatial, SQLServer, Access

Page 8: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

aRT: R­TerraLib APIaRT: R­TerraLib API

useR! 2006useR! 2006

●   current version: 1.0­0current version: 1.0­0●   multiplataformmultiplataform●   developed in Linux, cross­compileddeveloped in Linux, cross­compiled●     adheres to spatial classes defined in adheres to spatial classes defined in “sp”“sp”●   http://www.est.ufpr.br/aRThttp://www.est.ufpr.br/aRT●   functionality: vignettes and scriptsfunctionality: vignettes and scripts

Page 9: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

aRT: R­TerraLib APIaRT: R­TerraLib API

Blue blocks are R code, and the others are written in C++Blue blocks are R code, and the others are written in C++

Page 10: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

aRT structure: simplified modelaRT structure: simplified model

Page 11: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

aRT structure: complete modelaRT structure: complete model

Page 12: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

FeaturesFeatures

useR! 2006useR! 2006

●   Each “player” working in her/his environment Each “player” working in her/his environment       ● DBMS as the “meeting point”DBMS as the “meeting point”

●   Results of analysis stored (delivered) through Results of analysis stored (delivered) through the DBMSthe DBMS

●   associated with geometriesassociated with geometries●   as external “medias”  as external “medias”  

      

Page 13: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

Problems...Problems...

useR! 2006useR! 2006

●   Polygons with holes (still) do not workPolygons with holes (still) do not work●   Some repentinuous crashes when working with Some repentinuous crashes when working with 

grids (even more frequently under Windows)grids (even more frequently under Windows)●   Postgres/PostGIS compilation problems ... Postgres/PostGIS compilation problems ...       currently only MySQL working nice and roundcurrently only MySQL working nice and round

con = openConn(dbms = “postgres”)con = openConn(dbms = “postgres”)

Page 14: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

Future WorkFuture Work

useR! 2006useR! 2006

●   improvements in docs, vignettes, etc improvements in docs, vignettes, etc ●   support to another DBMS'ssupport to another DBMS's●   option for compilation/usage without DBMSoption for compilation/usage without DBMS●   options for memory efficient data retrieval options for memory efficient data retrieval ●   further support for spatial temporal operationsfurther support for spatial temporal operations●   ......●   All that  ... ... “red text”All that  ... ... “red text”●   and ...  embedding R in a GIS software ...and ...  embedding R in a GIS software ...

Page 15: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

Future Work – “TerraView” Plug­inFuture Work – “TerraView” Plug­in

useR! 2006useR! 2006

Page 16: aRT: RTerraLib APIpedro/aRT/docs/aRTuseR.pdf · Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Adds spatial/temporal

   

http://www.est.ufpr.br/aRThttp://www.est.ufpr.br/aRT

http://saudavel.dpi.inpe.brhttp://saudavel.dpi.inpe.br

aRT: R­TerraLib APIaRT: R­TerraLib API

useR! 2006useR! 2006