This is an old revision of the document!
Warning: Declaration of syntax_plugin_iframe::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/terralib5/wiki/lib/plugins/iframe/syntax.php on line 18
Warning: Declaration of syntax_plugin_iframe::render($mode, &$R, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/terralib5/wiki/lib/plugins/iframe/syntax.php on line 18
Warning: Declaration of syntax_plugin_externallink::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/terralib5/wiki/lib/plugins/externallink/syntax.php on line 107
Warning: Declaration of syntax_plugin_externallink::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/terralib5/wiki/lib/plugins/externallink/syntax.php on line 107
Table of Contents
Mini-Curso TerraLib/TerraView
- Parte 1 (4 hs): Conhecendo o TerraView 5.0
Nesse parte do curso será apresentada a versão 5.0 do TerraView, um SIG de propósito geral. Serão abordadas as principais diferenças, vantagens e limitações em relação as versões anteriores. O aluno poderá usar seus próprios dados durante o exercício.
- Parte 2 (12 hs): Introdução a programação em TerraLib 5.0
Nessa parte do curso será exercitada a construção de aplicativos usando a biblioteca TerraLib na linguagem C++.- Ambiente de compilação e building, incluindo acesso ao código fonte (1 h)
- Dependências e bibliotecas de terceiros (1 h)
- Visão geral dos módulos (1 h)
- Exercitando o módulo data access (2 h)
- Exercitando o módulo vector processing (2 h)
- Exercitando o módulo image processing (2 h)
- Framework de aplicação e sistema de plug-ins (2 h)
- Reuso das interfaces gráficas Qt fornecidas pela biblioteca (1 h)
Máquina Virtual
Os participantes do curso que tiverem interesse em realizar atividades práticas poderão utilizar o seguinte ambiente de máquina virtual:
- Oracle VirtualBox
- Linux Ubuntu 14.04 LTS (Trusty)
- Usuário: terralib5
- Senha: terra500$lib
- PostgreSQL 9.4.0
- PostGIS 2.1.17
- TerraLib 5.1.0-alpha:
/home/terralib5/mylibs/terralib5
- TerraView 5.1.0-alpha:
/home/terralib5/mylibs/terralib5
- Bibliotecas de terceiros:
/home/terralib5/mylibs
- Código fonte:
/home/terralib5/curso/terralib5/codebase
- Dados de teste:
/home/terralib5/curso/data
- Pacote dos fontes de bibliotecas de terceiro:
/home/terralib5/curso/third-party
Roteiro de Preparacão da Máquina Virtual
Todos os detalhes do roteiro abaixo podem ser consultados no Guia do Desenvolvedor.
1. Atualizar seu gerenciador de pacotes:
$ sudo apt-get update
2. Instalar o git:
$ sudo apt-get install git
3. Criar uma pasta para armazenar o repositório da TerraLib e cloná-lo:
$ cd && mkdir -p curso/terralib5/codebase && cd curso/terralib5/codebase $ GIT_SSL_NO_VERIFY=true git clone https://tester:terralibdpi@git.dpi.inpe.br/terralib5 .
4. Alterar para o branch release-5.1:
$ git checkout -b develop origin/release-5.1
5. Fazer o download o pacote de bibliotecas de terceiro:
$ cd && mkdir -p curso/third-party && cd curso/third-party $ wget http://terralib5:newterralib5@www.dpi.inpe.br/terralib5-devel/3rdparty/terralib-3rdparty-linux-ubuntu-14.04.tar.gz
6. Instalar as bibliotecas de terceiro:
$ TERRALIB_DEPENDENCIES_DIR="/home/terralib5/mylibs" ~/curso/terralib5/codebase/install/install-3rdparty-linux-ubuntu-14.04.sh
7. Criar diretório de build:
$ cd ~/curso/terralib5 & mkdir build-release & cd build-release
8. Executar CMake para gerar instrucoes de build:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_INSTALL_PREFIX:PATH="/home/terralib5/mylibs/terralib5" -DCMAKE_PREFIX_PATH:PATH="/home/terralib5/mylibs;/home/terralib5/mylibs/pgsql;/home/terralib5/mylibs/gdal2" ../codebase/build/cmake
TODO: verificar se algum parametro abaixo será necessário.
make -j 4 cmake ../codebase/build/cmake -DCMAKE_BUILD_TYPE:STRING='Release' -DCMAKE_INSTALL_PREFIX:PATH='/opt/terralib5' -DCMAKE_PREFIX_PATH:PATH='/usr;/usr/local;/usr/local/qwt-6.1.2' -DTERRALIB_BUILD_EXAMPLES_ENABLED:BOOL=OFF -DTERRALIB_BUILD_UNITTEST_ENABLED:BOOL=OFF -DTERRALIB_DOXYGEN_ENABLED:BOOL=OFF -DTERRALIB_QHELP_ENABLED:BOOL=OFF -DTERRALIB_QTRANSLATION_ENABLED:BOOL=OFF -DGEOS_INCLUDE_DIR:PATH='/usr/include/geos' -DGNUGETTEXT_INCLUDE_DIR:PATH='/usr/include' -DGNUGETTEXT_LIBRARY:FILEPATH='/usr/lib/x86_64-linux-gnu/libgettextpo.so' -DGNUICONV_LIBRARY:FILEPATH='/usr/lib/x86_64-linux-gnu/libc.so'