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

Essa é uma revisão anterior do documento!


aRT Team

aRT Team

Summary

This is a development page, with ongoing work and future functionalities for the package. For a description of aRT see the webpage.

FAQ

Ongoing Work

  1. disponibilizar libterralib e terraview binarios para linux
  2. colocar os fontes do teview para tabelas de media no source do aRT
  3. olhar a compilacao do sqlite versao 3, esta dando problema
  4. colocar no configure opcoes de –no-sqlite, etc
  5. colocar um relatorio no final da instalacao do aRT, e colocar uma funcao com este mesmo relatorio no pacote.
  6. colocar a variavel ambiente dentro da funcao de carregar o aRT, e colocar isto no configure para alterar automaticamente
  7. apagar conceptualmodel da funcao de criar banco, e ver se funciona corretamente
  8. deleteColumn()
Bruno:
  1. compilar o aRT no windows, com mysql, postgre, sqlite, separadamente, usando o mingw
  2. compilar usando o Visual caso nao funcione
  3. corrigir o password para o openConn
  4. fazer um bin para a terralib/terraview
  5. .Rversion para fazer openConn diferente para os sistemas operacionais

Probably Implemented, but not Checked

  1. when adding/reading data to a table, do not fill missing values (NA).
  2. openTheme(db, "theme") (directly from the database, instead of the layer)
  3. temporal slicing?
  4. reload(db) to reconnect to the database, keeping consistent all children (layers, tables)
  5. aRTvisual class

Scripts com exemplos, dúvidas e problemas

  1. List of Scripts about aRT

SQLite Driver

Discussions about the implementation of a TerraLib driver for SQLite

Other DBMS

ODBC strategy plans for an access to the TL data base using ODBC aiming a common solution for Linux and Windows

To Do List

To be fixed: scripts revised

  1. 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):
    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)

Bugs

  1. shapefile: great chance to have a bug when 'object_id' is a column of real numbers. Perhaps a warning?
  2. 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
  3. Polygonos with holes still do not work
  4. bug creating themes, but when trying again it works (problem with SAUDAVEL database?).

DBMS

  1. compile without any DBMS (basically working with the configure)
  2. Postgre: all databasde operations (createDB, createLayer etc) are echoing

messages such as:

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"

How to remove them?

Temporal Tables

  1. aRT actually has a fixed format for temporal attributes: "YYYY-MM-DD HH:mm:SS"
  2. getFormat to get the format of a column? (package chron works with time formats)
  3. if we use it, the format MUST be an argument each time we write a temporal column in the database
  4. aRTdynattrtable.cpp:
   at.dateTimeFormat_ = "YYYYsMMsDDsHHsmmsSS";
   at.dateChronon_ = TeSECOND;
   at.dateSeparator_ = "-";
   at.timeSeparator_ = ":";

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

  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);

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.

   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

Little pig, little pig, let me in

  1. deleteUser() (?)
  2. listUsers() (?) show user/host/with or without password.
  3. createUser() instead of addUser()? receive a vector of hosts as argument, isntead of only one (only R code). yes? and what about a vector of users also?
  4. types of permissions: read/write full access/only some databases
  5. read passwords from the keyboard like ***, or from a file? readline()? It will require a new argument "readFromKeyboard" = TRUE? Problem with scripts, and with connections that do not need passwords (I think the most common cases).

Miscelaneous

  1. windows version, cross compiled
  2. selecting attributes when creating themes
  3. getLastID ou getBiggerID (or something like that), only when using ID as integers (to Elias).
  4. getUniqueTimes(table) for temporal tables
  5. exportShape(), exportMidmif, exportSpring()
  6. getPoints etc para pegar a projecao e colocar no objeto sp
  7. 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

Brainstorm

  1. is openConn() mostly annoying? what about having a function:
  openDb = function(dbname, ...)
  {
      con = openConn(...)
      return openDb(con, db)
  }
  1. querier for raster data?
  2. Strategies for populating temporal tables of cells (does terralib implement it???)
  3. aRTnews?
  aRTnews = function()
  {
      zz=file("http://www.est.ufpr.br/aRT/NEWS")
      readLines(zz)
  }
  [1] "the news of aRT:\nThere is a new version with the following functionalities..."

or something like that.

an old agenda

  1. versão windows (em andamento , manual here )
  2. voltar a fazer a cross compilacao funcionar
  3. drivers para outros bancos
  4. implementar driver SQLlite na TL e aRT
  5. opcao para compilar sem banco
  6. estudar como ficam opcoes para bancos no configure
  7. outras coisas???? (facilitar,geracao de relatorios html, etc?)

Suggestions for aRT

  1. (Elias) In the function visualPoints(), the code "else if(pch == 22) pch = 7" change to "else if(pch == 15) pch = 7"
  2. (PJ) about installing aRT for windows and drivers for SGDB: Imagino que a solução para o aRT deva ser a mesma para o TerraView, no que se recere a drivers para banco. Como o terraView resolve isto? Afinal, não é necessário ter um SGBD para o TV poder ser instalado.

TIPS ON LINUX INSTALL

This page have some tips to install on a LINUX box

  1. R Spatial task view and R-SIG-Geo resources

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