Motivation Motivation aRT: R-TerraLib API aRT: R-TerraLib API What these problems have in common? What these problems have in common? Pedro Ribeiro de Andrade Neto Pedro Ribeiro de Andrade Neto Citrus diseases Citrus diseases ● Paulo Justiniano Ribeiro Junior Paulo Justiniano Ribeiro Junior (Universidade Federal do Paraná, Brasil) (Universidade Federal do Paraná, Brasil) mosquitos / dengue disease mosquitos / dengue disease ● crimes within an urban area crimes within an urban area ● useR! 2006 useR! 2006 useR! 2006 useR! 2006 Motivation Motivation Motivation Motivation Some are from Venus, some are from Mars... Some are from Venus, some are from Mars... Data collection mechanism Data collection mechanism ● Statisticians Statisticians ● Monitoring/surveillance systems Monitoring/surveillance systems ● Subject matter scientists Subject matter scientists ● Interplay between spatial statistics and GIS. Interplay between spatial statistics and GIS. ● ways to exchange information and to deliver ways to exchange information and to deliver ● Need for “automatic” data analysis and reports ● Need for “automatic” data analysis and reports statistical expertise, results and technologies statistical expertise, results and technologies useR! 2006 useR! 2006 useR! 2006 useR! 2006
TerraLib Project TerraLib TerraLib Project TerraLib Adds spatial/temporal capabilities to the DBMS ● Adds spatial/temporal capabilities to the DBMS Free software Free software Enables the construction of customized GIS Enables the construction of customized GIS ● ● http://www.terralib.org http://www.terralib.org ● Developed by Developed by ● Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf Jfddfjh gfsdfgdfssf fsdf fsdfsd sdfsdf TerraLib DBMS useR! 2006 useR! 2006 useR! 2006 useR! 2006 TerraLib aRT: R-TerraLib API TerraLib aRT: R-TerraLib API Object oriented (C++), adheres to STL (Standard Object oriented (C++), adheres to STL (Standard ● current version: 1.0-0 current version: 1.0-0 ● Template Library), Generic programming, etc. Template Library), Generic programming, etc. multiplataform multiplataform ● Multiplataform (Linux and Windows) Multiplataform (Linux and Windows) ● developed in Linux, cross-compiled developed in Linux, cross-compiled ● Integrated architecture (DBMS to store, Integrated architecture (DBMS to store, ● “sp” adheres to spatial classes defined in “sp” adheres to spatial classes defined in manipulate and manage geographic data) ● manipulate and manage geographic data) http://www.est.ufpr.br/aRT http://www.est.ufpr.br/aRT ● data and geometry in the DBMS (transparent) data and geometry in the DBMS (transparent) functionality: vignettes and scripts functionality: vignettes and scripts ● MySQL, PostgreSQL, PostGIS MySQL, PostgreSQL, PostGIS ● Oracle, Oracle Spatial, SQLServer, Access Oracle, Oracle Spatial, SQLServer, Access ● useR! 2006 useR! 2006 useR! 2006 useR! 2006
aRT: R-TerraLib API aRT structure: simplified model aRT: R-TerraLib API aRT structure: simplified model Blue blocks are R code, and the others are written in C++ Blue blocks are R code, and the others are written in C++ aRT structure: complete model aRT structure: complete model Features Features 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 DBMS the DBMS associated with geometries associated with geometries ● as external “medias” as external “medias” ● useR! 2006 useR! 2006
Future Work Future Work Problems... Problems... improvements in docs, vignettes, etc improvements in docs, vignettes, etc ● support to another DBMS's support to another DBMS's ● Polygons with holes (still) do not work Polygons with holes (still) do not work ● option for compilation/usage without DBMS option for compilation/usage without DBMS ● Some repentinuous crashes when working with Some repentinuous crashes when working with ● options for memory efficient data retrieval options for memory efficient data retrieval grids (even more frequently under Windows) ● grids (even more frequently under Windows) further support for spatial temporal operations further support for spatial temporal operations Postgres/PostGIS compilation problems ... Postgres/PostGIS compilation problems ... ● ● ... ... currently only MySQL working nice and round currently only MySQL working nice and round ● All that ... ... “red text” All that ... ... “red text” con = openConn(dbms = “postgres”) ● con = openConn(dbms = “postgres”) and ... embedding R in a GIS software ... and ... embedding R in a GIS software ... ● useR! 2006 useR! 2006 useR! 2006 useR! 2006 Future Work – “TerraView” Plug-in Future Work – “TerraView” Plug-in aRT: R-TerraLib API aRT: R-TerraLib API http://www.est.ufpr.br/aRT http://www.est.ufpr.br/aRT http://saudavel.dpi.inpe.br http://saudavel.dpi.inpe.br useR! 2006 useR! 2006 useR! 2006 useR! 2006
Recommend
More recommend