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/09/19 11:13]
pedro
software:art-dev [2008/11/13 17:51]
pedro
Linha 1: Linha 1:
 ===== aRT Development Page ==== ===== aRT Development Page ====
 Team: [[pessoais:​pedro|Pedro]],​ [[pessoais:​paulojus|PJ]],​ Eduardo Sant'​ana 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]]. 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 =====
-  ​- 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 +====para a próxima versão (1.6-2) ==== 
-  ​- executar docs de inst/doc +  * <​del>​strip aRT.dll (windows)</​del>​ 
-  - colocar debs na pagina => gerar debs => LEG +  * <​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>​ 
-  ​- conferir instrucoes ​de instalacao ​dependencias +  * <​del>​compilar o aRT com a versao nova da terralib (Release 3.2.1, October 24th)</​del>​ 
-  ​- ​ver como gerar o .zip no Windows +  * <​del>​compilar o aRT e executar o check com a nova versão do R (2.8-X)</​del>​ 
-  - scripts da pagina +  * <​del>​adicionar o cvs no apt das dependencias do script de instalação</​del>​ 
-  ​- scripts de teste aRT/tests +  * 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). 
-  - atualizar ​**esta** pagina +  ​Postgre commandos => LEG 
-  ​- manipulacao ​de celulas+  ​colocar debs na pagina => gerar debs => LEG 
 +  ​* atualizar **esta** pagina 
 +  * <​del>​manipulacao ​de celulas</​del>​ 
 + 
 + 
 +==getRelation=== 
 +PJ: getRelation(lpred,​ c("​within",​ "​touches"​),​ lpolys)) ​ver outras funcoes que possam usar a mesma estrategia 
 + 
 +**Pedro: Implementado. ​ver script recife.R na versao nova, a construcao da rel3.** 
 + 
 +===Password=== 
 +PJ: será que 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 senhaSe 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. Paulo, 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. Documentacao feita (?simplify) e exemplo feito (tests/​geometry.R).** 
 + 
 +===legendas=== 
 +PJ: 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) 
 + 
 + 
 +===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 ===== ===== Probably Implemented,​ but not Checked =====
Linha 29: Linha 66:
   - [[software:​art:​scripts|List of Scripts]] about aRT   - [[software:​art:​scripts|List of Scripts]] about aRT
  
-===== SQLite Driver ​=====+===== Drivers ​=====
  
-[[software:​art:​driver_sqlite|Discussions]] about the implementation of a TerraLib driver for SQLite+====SQLite Driver ==== 
 +  * **Aborted** due to syntax constraints. It 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.
  
-===== Other DBMS =====+==== 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+  * {{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>​
-===== To Do List ===== +
- +
-=== To be fixed: scripts revised === +
-  - ''​ID''​ vs ''​id''​ : lower vs upper case problem. When 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?​). +
- +
-=== DBMS === +
-  - compile without any DBMS (basically working with the configure) +
-  - Postgre: all databasde operations (createDB, createLayer etc) are echoing  +
-messages such as:+
 > th = createTheme(lpolygons,​ "​poligons",​ vi="​view"​) > th = createTheme(lpolygons,​ "​poligons",​ vi="​view"​)
 > NOTA:  CREATE TABLE / PRIMARY KEY criará índice implícito > NOTA:  CREATE TABLE / PRIMARY KEY criará índice implícito
Linha 70: Linha 88:
 > NOTA:  CREATE TABLE / PRIMARY KEY criará índice implícito > NOTA:  CREATE TABLE / PRIMARY KEY criará índice implícito
 > "​te_collection_2_aux_pkey"​ na tabela "​te_collection_2_aux"​ > "​te_collection_2_aux_pkey"​ na tabela "​te_collection_2_aux"​
- How to remove them?+</​code>​ 
 +How to remove them? 
 + 
 +===== To Do List ===== 
 + 
 +=== 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 very well. 
 +  - bug creating themes, but when trying again it works (problem with SAUDAVEL database).
  
 === Temporal Tables === === Temporal Tables ===
-  - aRT actually ​has a fixed format for temporal attributes: "​YYYY-MM-DD HH:​mm:​SS"​+  - 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)   - 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   - if we use it, the format MUST be an argument each time we write a temporal column in the database
 +
   - aRTdynattrtable.cpp:​   - aRTdynattrtable.cpp:​
  
-     at.dateTimeFormat_ = "​YYYYsMMsDDsHHsmmsSS";​ +<code C> 
-     ​at.dateChronon_ = TeSECOND; +at.dateTimeFormat_ = "​YYYYsMMsDDsHHsmmsSS";​ 
-     ​at.dateSeparator_ = "​-";​ +at.dateChronon_ = TeSECOND; 
-     ​at.timeSeparator_ = ":";​+at.dateSeparator_ = "​-";​ 
 +at.timeSeparator_ = ":";​ 
 +</​code>​
  
 === Media Tables === === Media Tables ===
Linha 91: Linha 121:
  
 media tables are now (terralib 3.2) part of terraview. Put the access to the following functions: media tables are now (terralib 3.2) part of terraview. Put the access to the following functions:
 +
  
 terralib/​terraView/​TeApplicationUtils.h terralib/​terraView/​TeApplicationUtils.h
Linha 104: Linha 135:
 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. 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>​
  
-     ​object_id ​                                                ​media_name +o problema é que as tabelas de media exigem que ambos object id e media name sejam uma chave composta.
-       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+
  
 === Miscelaneous === === Miscelaneous ===
Linha 124: Linha 158:
  
 === an old agenda === === an old agenda ===
-  - drivers para outros bancos 
   - opcao para compilar sem banco   - opcao para compilar sem banco
-  - estudar como ficam opcoes para bancos no configure 
-  - outras coisas???? (facilitar,​geracao de relatorios html, etc?) 
  
 ===== Links ===== ===== Links =====

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