Não foi possível enviar o arquivo. Será algum problema com as permissões?
Diferenças

Diferenças

Aqui você vê as diferenças entre duas revisões dessa página.

Link para esta página de comparações

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-dev [2008/11/12 23:41]
pedro
software:art-dev [2008/11/24 19:49]
pedro
Linha 1: Linha 1:
-===== aRT Development Page ==== +====== aRT Development Page ======
-Team: [[pessoais:​pedro|Pedro]],​ [[pessoais:​paulojus|PJ]],​ Eduardo Sant'​ana+
  
-This is a development page, with ongoing work and future functionalities for the package. For a description of aRT see the [[http://​www.leg.ufpr.br/​aRT|webpage]].+  * Team: [[pessoais:​pedro|Pedro]],​ [[pessoais:​paulojus|PJ]],​ Eduardo Sant'​ana 
 +  * This is a development page, with ongoing work and future functionalities for the package. For a description of aRT see the [[http://​www.leg.ufpr.br/​aRT|webpage]].
  
 ===== Ongoing Work ===== ===== Ongoing Work =====
  
-====artigo====+  * [[software:​art-dev:​aRT163|aRT-1.6-3]] (feb/​2009) 
 +  * [[software:​art-dev:​drivers|Drivers]] 
 +  * [[software:​art-dev:​todo|TODO list]] 
 +  * [[software:​art:​scripts|List of Scripts]] about aRT 
 +  * [[software:​art:​winversion|Compiling aRT under Windows]]
  
-**Integrating Statistics and Geographic Information Systems: the aRT package**+===== Released Versions =====
  
-Statistical spatial data analysis and GIS can act together in order to understand and model spatially distributed data. Geoprocessing operations can equip statistical models with relevant information which on their hand can be used to better understand main features of usually noisy and multidimensional data. Therefore integration between GIS and statistical software can be highly beneficial for both sides.  +  ​* [[software:​art-dev:aRT162|aRT-1.6-2]] (nov/2008)
- +
-In this work, we present a package named aRT, which access the TerraLib GIS library within the R statistical software. TerraLib offers functions and data structures for building customized geographical applications. Its main objective is to provide a powerful environment for GIS development in a new generation of GIS, once it incorporates space-time support to conventional Database Management Systems (DBMS), for instance MySQL and PostgreSQL. R provides many functions statistical analysis in general, and specially analysis of geospatial data through contributed packages, for example point pattern, geostatistics,​ and spatial regression. Both TerraLib and R are free softwares. +
- +
-With aRT, the user can manipulate TerraLib objects directly within R, importing and exporting geospatial data to TerraLib databases. It also has functions for querying and manipulating geospatial data, for instance (1) spatial predicates, such as touches, within, contains, crosses, and overlaps; (2) polygons operations, as union, intersection,​ difference and simplification;​ (3) manipulation of temporal tables and temporal slicing. +
- +
-Currently, aRT has been used for  [+16 palavras] +
- +
-aRT is available as source code and as a Windows binary at http://​www.leg.ufpr.br/​aRT. +
- +
- +
- +
-====para a próxima versão (1.6-2) ==== +
-  ​<​del>​strip aRT.dll (windows)</​del>​ +
-  * <​del>​colocar o libmysql.dll em libs (windows) skosta@gmail.com:​ Quando se instala o mysql, ele instala a biblioteca que vem com ele, e nós temos que atualizar a biblioteca do  mysql por aquela que foi compilado para gcc.</​del>​ +
-  * <​del>​compilar o aRT com a versao nova da terralib (Release 3.2.1, October 24th)</​del>​ +
-  * <​del>​compilar o aRT e</​del>​ executar o check com a nova versão do R (2.8-X) +
-  * getRelation(lpred,​ c("​within",​ "​touches"​),​ lpolys)) e ver outras funcoes que possam usar a mesma estrategia +
-  * <​del>​adicionar o cvs no apt das dependencias do script de instalação</​del>​ +
-  * erro MySQL windows quando executa o script recife.R: "too long ...". ver problema e relatar para o pessoal da TerraLib, antes da nova versao (15/out). +
-  * Postgre commandos => LEG +
-  * colocar debs na pagina => gerar debs => LEG +
-  * atualizar **esta** pagina +
-  * <​del>​manipulacao de celulas</​del>​ +
- +
-===Password=== +
-PJ: será que o print da classe aRTconn poderia "​esconder"​ a senha (talvez possa ter um argumento com default pass=FALSE) +
- +
-** Pedro: O print agora nao mostra mais a senha, mostra apenas um Yes ou No, indicando se a conexao usa ou nao senha. Se o usuario tem necessidade de saber a senha, ele pode verificar o comando que foi usado para estabelecer a conexao.** +
- +
-===getSetOperation=== +
-PJ: na documentacao esta': "id: The ids which to be used in the operation. '​difference'​ and '​xor'​ use only two ids. '​union'​ and '​intersection'​ have as default all objects of the layer."​ mas o argumentoi id é origatorio no codigo: <​code>​ +
-  union <- getSetOperation(ldistricts,​ "​union"​) +
-  Erro em .aRTcall(object,​ "​cppGetSetOperation",​ operation = operation, ​ : +
-  argumento "​id"​ ausente, sem padrão</​code>​ +
- +
-**Pedro: Já está funcionando na nova versão. Me passe o seu script e dados para eu testar.** +
- +
-===simplify=== +
-PJ: ?simplify abre documentacao de aRTgeometry,​ deve ser um recorta e cola para eduitar depois? o que simpify() faz? Outra cooisa : rodando os script meso e neigh-parana da pagina abro as visualizacoes dos poligonos no TV e nao consigo ver as cores das legendas -- aparece tudo com cor s;olida do poligono será que estou fazendo algo errado (desmarquei todas e marquei só a que queria ver e mando desenhar) +
- +
-**Pedro: O simplify é uma funcao da classe aRTgeometry. ela simplifica poligonos em memoria, removendo pontos de acordo com limites de distancia e angulacao máximas. esta foi a primeira funcao que implementei que funciona com objetos em memoria, e nao armazenados no banco. FIXME preciso fazer a documentacao no man e elaborar um exemplo.** +
- +
-===getGeometry=== +
-PJ: Typo nos docs: Usage:​\S4method{getGeometry}{aRTgeometry}(object) e nao consigo rodar: <​code>​ +
-getGeometry(ldistricts) +
-Erro em function (classes, fdef, mtable) ​ : +
-  unable to find an inherited method for function "​getGeometry",​ for signature "​aRTlayer"</​code>​o que parece inconsistente com a documentacao de getSetOperation() que tem exemplos com getSetMetric() (resquicio de versao anterior??​) +
- +
-**Pedro: a função getGeometry é da classe aRTgeometry,​ e não da classe aRTlayer. A classe aRTlayer tem os métodos getPoints, getPolygons e getLines. Isto porque um aRTlayer suporta mais de um tipo de geometria, enquanto que um aRTgeometry possui apenas uma geometria. A documentacao de getSetOperation estava errada, e já foi substituida para getSetMetric(layer,​ "​union"​).** +
- +
- +
- +
-===== Probably Implemented,​ but not Checked ===== +
- +
-  - when adding/​reading data to a table, do not fill missing values (NA). +
-  - openTheme(db,​ "​theme"​) (directly from the database, instead of the layer) +
-  - temporal slicing? +
-  - reload(db) to reconnect to the database, keeping consistent all children (layers, tables) +
-  - aRTvisual class +
- +
-===== Scripts com exemplos, dúvidas e problemas ===== +
-  - [[software:​art:​scripts|List of Scripts]] about aRT +
- +
-===== Drivers ===== +
- +
-====SQLite Driver ==== +
- +
-  * SQLite does not support all the SQL commands TerraLib needs (left join, right join). +
-  * [[software:​art:​driver_sqlite|Discussions]] about the implementation of a TerraLib driver for SQLite. +
- +
-==== Connection Through ODBC ==== +
- +
-  * {{software:​art:​teodbc.pdf|ODBC strategy}} plans for an access to the TL data base using ODBC aiming ​ a common solution for Linux and Windows +
- +
-====Postgre==== +
-  * all databasde operations (createDB, createLayer etc) are echoing messages such as: +
- +
-<​code>​ +
-> th = createTheme(lpolygons,​ "​poligons",​ vi="​view"​) +
-> NOTA:  CREATE TABLE / PRIMARY KEY criará índice implícito +
-> "​te_collection_2_pkey"​ na tabela "​te_collection_2"​ +
-> NOTA:  CREATE TABLE criará sequência implícita +
-> "​te_collection_2_aux_unique_id_seq"​ para coluna serial +
-> "​te_collection_2_aux.unique_id"​ +
-> NOTA:  CREATE TABLE / PRIMARY KEY criará índice implícito +
-> "​te_collection_2_aux_pkey"​ na tabela "​te_collection_2_aux"​ +
-</​code>​ +
-How to remove them? +
- +
-===== To Do List ===== +
- +
-=== To be fixed: scripts revised === +
-  ​''​ID''​ vs ''​id''​ : lower vs upper case problemWhen retrieving data with ''​getPoints()''​ we have ''​ID''​ for column names whereas ''​id''​ for ''​getData()''​. Example (na guaja): <code R> +
-con <openConn() +
-db <- openDb(con, "​parana"​) +
-l <- openLayer(bd,​ "​dados"​) +
-pts <- getPoints(l) +
-tb <- openTable(l,​ "​t_dados"​) +
-dt <- getData(tb) +
-colnames(pts) +
-colnames(dt) +
-</​code>​ +
-=== Bugs === +
-  - shapefile: great chance to have a bug when '​object_id'​ is a column of real numbers. Perhaps a warning? +
-  - when creating themes with more than one table, the last attribute of the tables but the first disappear. Probably it thinks the table has less attributes it really has, because of the object_id that joins the tables. And it removes another attribute instead of obj_id +
-  - Polygonos with holes still do not work +
-  - bug creating themes, but when trying again it works (problem with SAUDAVEL database?​). +
- +
- +
-=== Temporal Tables === +
-  - aRT currently has a fixed format for temporal attributes: "​YYYY-MM-DD HH:​mm:​SS"​ +
-  - getFormat to get the format of a column? (package chron works with time formats) +
-  - if we use it, the format MUST be an argument each time we write a temporal column in the database +
-  - aRTdynattrtable.cpp:​ +
- +
-<code C> +
-at.dateTimeFormat_ = "​YYYYsMMsDDsHHsmmsSS";​ +
-at.dateChronon_ = TeSECOND; +
-at.dateSeparator_ = "​-";​ +
-at.timeSeparator_ = ":";​ +
-</​code>​ +
- +
-=== Media Tables === +
- +
-Na verdade a questao é referente ao banco do saudavel onde já há uma midia e o Miguel acha (e eu concordo)  +
-que deveriamos ​ ncluir a media no banco.. Isto é o que motiva esta pergunta. Portanto, pelo que vc comenta  +
-é possível adicionar mais de uma midia à tabela. +
-Nao sei o quão complicado é isto,é desejável, embora não totalmente prioritário no momnebnt +
- +
-media tables are now (terralib 3.2) part of terraview. Put the access to the following functions:​ +
- +
- +
-terralib/​terraView/​TeApplicationUtils.h +
- +
-<code C> +
-bool insertMedia(TeDatabase* db, const string& tableName, string& fileName, const string& description,​ const string& type, bool blob=true);​ +
-bool insertMediaObjLayer (TeDatabase* db, TeLayer* layer, const string& objectId, const string& mediaName, const string& mediaTable);​  +
-bool setDefaultMedia(TeDatabase* db, TeLayer* layer, const string& objectId, const string& mediaName, const string& mediaTable);​ +
-bool updateMediaDescription(TeDatabase* db, const string& mediaName, const string& mediaTable, const string& desc); +
-</code> +
- +
- +
-existe um erro nas tabelas de media, mas ainda nao sei se o erro é do aRT ou da TerraLib, ou se é apenas uma decisao de projeto da terralib. acontece que não é possivel repetir o nome da url nas tabelas (assim como o id nao pode ser repetido). o erro ocorre quando voce tenta adicionar o terceiro elemento do data.frame, que tem media_name igual ao do segundo elemento. +
- +
-<​code>​ +
-object_id ​                                                ​media_name +
-1 261160605094 ​  ​http://​www.leg.est.ufpr.br/​~paulojus/​aviDengue/​gamBT.avi +
-2 261160605054 ​ http://​www.leg.est.ufpr.br/​~paulojus/​aviDengue/​gamCFP.avi +
-3 261160605055 ​ http://​www.leg.est.ufpr.br/​~paulojus/​aviDengue/​gamCFP.avi +
-</​code>​ +
- +
-=== Miscelaneous === +
-  - selecting attributes when creating themes +
-  - getLastID ou getBiggerID (or something like that), only when using ID as integers (to Elias). +
-  - getUniqueTimes(table) for temporal tables +
-  - exportShape(),​ exportMidmif,​ exportSpring() +
-  - getPoints etc para pegar a projecao e colocar no objeto sp +
-  - incorporar importDynTable() no aRT da melhor forma e considear uns comentario que deixei no script. Qaundo estiver td certo e com certeza de estar funcionando a gente "​enxuga"​ o script +
-  - querier for raster data? +
-  - colocar um relatorio no final da instalacao do aRT, e colocar uma funcao com este mesmo relatorio no pacote. +
-  - colocar a variavel ambiente dentro da funcao de carregar o aRT, e colocar isto no configure para alterar automaticamente +
-  - apagar conceptualmodel da funcao de criar banco, e ver se funciona corretamente +
-  - deleteColumn() +
- +
-=== an old agenda === +
-  - drivers para outros bancos +
-  - opcao para compilar sem banco +
-  - estudar como ficam opcoes para bancos no configure +
-  - outras coisas???? (facilitar,​geracao de relatorios html, etc?)+
  
 ===== Links ===== ===== Links =====
-  ​- [[http://​www.leg.ufpr.br/​aRT|Página web do aRT]] +  ​[[http://​www.terralib.org|Terralib web page]] 
-  - [[http://​www.terralib.org|Terralib web page]] +  ​[[http://​cran.at.r-project.org/​src/​contrib/​Views/​Spatial.html|R Spatial]] task view and R-SIG-Geo resources 
-  ​[[http://​cran.at.r-project.org/​src/​contrib/​Views/​Spatial.html|R Spatial]] task view and R-SIG-Geo resources +  ​[[http://​www.r-project.org|R web page]]
-  ​[[http://​www.r-project.org|R web page]]+
  

QR Code
QR Code software:art-dev (generated for current page)