criacao_banco_dados-variavel_MOD.html 26.1 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470
<!DOCTYPE html>
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <meta charset="UTF-8">
  <title>i3GeoSaude</title>
  <link media="screen" href="./files/estilos.css" type="text/css"
 rel="stylesheet">
<!--[if lt IE 10]>
<![endif]-->
  <link rel="stylesheet" type="text/css" href="./files/estilos.css">
</head>
<body class="blue-bg">
<div id="wrapper-flex">
<div style="background-color: white;">
<div class="f-page-auto-cell Code" id="doc">
<div class="imginicio"><img onclick="window.history.back()" style="border: 0px solid ; width: 40px; height: 40px;" alt="inicio" src="files/inicio.gif"></div>
<h1>Cria&ccedil;&atilde;o
de banco de dados no i3GeoSa&uacute;de&nbsp;</h1>
<a name="inicio"></a><br>
Os dados utilizados pelo i3GeoSa&uacute;de precisam estar armazenados
em
tabelas em um banco de dados Postgres. Para facilitar o gerenciamento
desse banco de dados o i3GeoSa&uacute;de disp&otilde;e de um
sistema
simples que permite realizar algumas opera&ccedil;&otilde;es
sobre esse
banco de dados.<br>
<br>
Por quest&otilde;es de seguran&ccedil;a, esse gerenciador
s&oacute;
permite realizar opera&ccedil;&otilde;es de
altera&ccedil;&atilde;o do
banco no contexto do esquema chamado i3geo_metaestat. Para os demais
esquemas o gerenciador permite apenas a
visualiza&ccedil;&atilde;o das
tabelas.<br>
<br>
O banco de dados que &eacute; distribu&iacute;do com o
i3GeoSa&uacute;de
(usb ou m&aacute;quina virtual) j&aacute; cont&eacute;m
esse esquema
dentro de um banco de dados chamado &ldquo;i3geosaude&rdquo;.
Nessa
situa&ccedil;&atilde;o de uso n&atilde;o &eacute;
necess&aacute;rio
nenhuma configura&ccedil;&atilde;o adicional, pois os
par&acirc;metros
de conex&atilde;o com esse banco j&aacute; est&atilde;o
registrados no
i3GeoSa&uacute;de, se voc&ecirc; quiser usar um outro banco de
dados
ser&aacute; necess&aacute;rio criar o esquema i3geo_metaestat e
registrar os par&acirc;metros de conex&atilde;o (veja a
op&ccedil;&atilde;o &ldquo;Conex&otilde;es&rdquo;
existente no sistema
de administra&ccedil;&atilde;o).<br>
<br>
Se voc&ecirc; j&aacute; possu&iacute; tabelas com dados
estat&iacute;sticos e quer us&aacute;-las nos cartogramas
voc&ecirc;
poder&aacute; faz&ecirc;-lo desde que essas tabelas estejam
armazenadas
no mesmo &ldquo;database&rdquo; onde estiverem armazenadas as
tabelas
com os dados geogr&aacute;ficos. Ou seja, as tabelas com os dados
devem
estar no mesmo &ldquo;database&rdquo; onde est&atilde;o as
tabelas com
as geometrias. Novamente, voc&ecirc; n&atilde;o
precisar&aacute; se
preocupar com isso se estiver utilizando o banco de dados
padr&atilde;o.<br>
<br>
Essas tabelas j&aacute; existentes n&atilde;o
poder&atilde;o ser
editadas pelo i3GeoSa&uacute;de, ou seja, algumas das funcionalidades
que
permitem adi&ccedil;&atilde;o de novos dados ou
altera&ccedil;&atilde;o, n&atilde;o funcionar&atilde;o
para essas
tabelas. Por exemplo, o i3GeoSa&uacute;de permite que o
usu&aacute;rio
administrador clique em um bairro e altere os valores armazenados.
Apenas as tabelas que s&atilde;o padr&atilde;o do
i3GeoSa&uacute;de
permitem esse tipo de edi&ccedil;&atilde;o interativa.<br>
<br>
Se voc&ecirc; est&aacute; criando o seu pr&oacute;prio
banco de dados,
independente do que &eacute; fornecido junto com o sistema,
voc&ecirc;
poder&aacute; criar as tabelas padr&atilde;o conforme o
procedimento
descrito abaixo.<br>
<br>
Uma outra fun&ccedil;&atilde;o importante do sistema de
gerenciamento
&eacute; o envio para o banco de dados de um arquivo contendo os
limites das unidades espaciais as quais os dados
estat&iacute;sticos
estar&atilde;o relacionados. Para esse envio voc&ecirc;
dever&aacute;
possuir um arquivo no formato &ldquo;shapefile&rdquo;, que
&eacute;
bastante comum dentre os softwares de geoprocessamento (voc&ecirc;
pode
usar softwares como o gvSIG ou QGIS para gerar esse formato).<br>
<br>
Da mesma forma que para os dados normais, o i3GeoSa&uacute;de
j&aacute;
fornece algumas tabelas que cont&eacute;m os limites municipais do
Brasil, limites estaduais e alguns limites de bairros. Esses dados
s&atilde;o edit&aacute;veis e o i3GeoSa&uacute;de fornece um
editor de
limites geogr&aacute;ficos. Se voc&ecirc; n&atilde;o
possu&iacute; o
arquivo &ldquo;shapefile&rdquo; &eacute;
poss&iacute;vel usar esse
editor para tra&ccedil;ar de forma interativa os seus bairros ou
outro
tipo de limite geogr&aacute;fico.<br>
<br>
<div class="trail-box">
<div class="trail-box-header"><img src="files/trails-box-tr.png"
 class="right" alt="" height="21" width="7"><img
 src="files/trails-box-tl.png" class="left" alt="" height="21" width="7"><comment
 title=" here is the box header "
 xmlns="http://disruptive-innovations.com/zoo/nvu"><comment
 title=" here is the box header "
 xmlns="http://disruptive-innovations.com/zoo/nvu"></comment></comment>
<h1><span style="font-weight: bold;">Procedimento manual
para&nbsp;cria&ccedil;&atilde;o de
tabelas&nbsp;padr&atilde;o</span><a name="ancora"></a></h1>
</div>
<div class="trail-box-content"><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">&nbsp;Essa
opera&ccedil;&atilde;o s&oacute; &eacute;
necess&aacute;ria se
voc&ecirc; n&atilde;o quiser utilizar o banco de dados
padr&atilde;o do
i3GeoSa&uacute;de.<br>
<br>
Abra as op&ccedil;&otilde;es em
"Metadados&nbsp;Estat&iacute;sticos" e
escolha&nbsp;"gerenciador de tabelas de dados
estat&iacute;sticos"
conforme mostrado na <span style="font-weight: bold;">Figura 1</span>
(Menu de op&ccedil;&otilde;es de
Metadados Estat&iacute;sticos).<br>
</span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><br>
<br>
<img src="imagens/tabelaAtualizada/Figura1.jpg" alt="figura1"
 style="width: 400px; height: 142px;"></span>
<ul>
</ul>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); font-weight: bold;">Figura
1:<span class="Apple-converted-space">&nbsp;</span></span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">Menu
de op&ccedil;&otilde;es de Metadados Estat&iacute;sticos.<br>
<br>
Uma vez na interface de cria&ccedil;&atilde;o de tabelas
execute os
seguintes passos:<br>
<br>
<span style="font-weight: bold;">1</span>
- Selecione a
conex&atilde;o com o banco, no caso "i3geosaude";<span
 style="font-weight: bold;"><br>
2</span> - Selecione o esquema<span
 style="font-style: italic; font-weight: bold;"> "</span><span
 style="font-style: italic;"></span>i3geo_metaestat",
que &eacute; o padr&atilde;o do i3GeoSa&uacute;de. Outros
esquemas, que
n&atilde;o seja "i3geo_metaestat", n&atilde;o est&atilde;o
aptos a
receber
dados pela
op&ccedil;&atilde;o "Upload de dados para uma
vari&aacute;vel</span>";<br>
<span style="font-weight: bold;">3</span>
- Clique no bot&atilde;o&nbsp;"Criar uma nova tabela";<span
 style="font-weight: bold;"></span><br>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><br>
</span><img style="width: 400px; height: 226px;" alt="Figura2"
 src="imagens/tabelaAtualizada/Figura2.jpg"><br>
&nbsp;&nbsp;<span style="font-weight: bold;">&nbsp; Figura 2</span>:
Editor de tabela.<br>
<br>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">Em
seguida, surge uma janela
solicitando o nome da tabela conforme a <span
 style="font-weight: bold;">Figura 3</span>.</span><br>
<br>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">&nbsp;</span><img
 style="width: 250px; height: 103px;" alt="figura4"
 src="imagens/tabelaAtualizada/Figura3.jpg"><br>
&nbsp;<span style="font-weight: bold;">
Figura 3</span>:
Defini&ccedil;&atilde;o do nome da tabela.<br>
<br>
<br>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">Uma
vez a tabela criada, deve-se criar suas&nbsp;colunas, que
correspondem aos atributos para a vari&aacute;vel no
i3GeoSa&uacute;de.&nbsp;Para isso, clique no bot&atilde;o
"Adicionar uma
nova
coluna"&nbsp;, como visto na <span style="font-weight: bold;">Figura 4</span>.
<br>
<br>
</span><img style="width: 400px; height: 168px;" alt="figura3"
 src="imagens/tabelaAtualizada/Figura4.jpg"><br>
&nbsp;&nbsp;&nbsp; <span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><span
 style="font-weight: bold;">&nbsp; Figura 4</span>:
Definindo colunas.</span><br>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"></span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><br>
&nbsp;Ap&oacute;s
definido o nome da nova coluna (<span style="font-weight: bold;">Figura
4</span>) , surgir&aacute; uma
janela,
na forma de
caixa de
texto (veja <span style="font-weight: bold;">Figura 5</span>),
solicitando&nbsp;informa&ccedil;&otilde;es sobre
o
tipo de dados&nbsp;da coluna, ou seja, qual o formato do
conte&uacute;do
inserido. Neste caso, os nomes e tipos s&atilde;o
pr&eacute;-definidos
no i3GeoSa&uacute;de, conforme a explica&ccedil;&atilde;o a
seguir.</span><br>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"></span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><br>
<br>
<img style="width: 250px; height: 127px;" alt="Figura5"
 src="imagens/tabelaAtualizada/Figura5.jpg"><br>
&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">Figura 5</span>:
Defini&ccedil;&atilde;o do tipo de dados da tabela.<br>
<br>
</span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><br>
Para
a criar uma tabela de dados, algumas conven&ccedil;&otilde;es
s&atilde;o previamente
definidas no i3GeoSa&uacute;de.&nbsp; Isso ocorre com os nomes
das
colunas (e seus
tipos de dados), com exce&ccedil;&atilde;o </span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">da
coluna "gid", que &eacute;
gerada automaticamente por ele</span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">.
<br>
<br>
Acompanhe a seguir as colunas obrigat&oacute;rias para a leitura
dos
dados pelo i3GeoSa&uacute;de :<br>
1- Criar a coluna "id_medida_variavel", com o tipo "integer";<br>
2- Criar a&nbsp;coluna "codigoregiao", com o tipo "text";<br>
3-&nbsp;</span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">Criar
a&nbsp;coluna "ano", com o tipo "Integer";<br>
4- Criar a coluna "mes", com o tipo "integer";</span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">
<br>
5- Criar a coluna "dia", com o tipo "integer";</span><br>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">6-
Criar a coluna "hora", com o tipo "integer".<br>
<br>
</span>A &uacute;ltima coluna
&eacute; aquela que servir&aacute; de
par&acirc;metro da medida da vari&aacute;vel. Essa coluna deve
ser
criada
com o nome que for mais adequado, e seu tipo deve ser
num&eacute;rico
(integer). <span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><br>
<br>
Uma vez criada a tabela e suas colunas , pode-se baixar, na forma de
arquivo CSV (com os dados delimitados por virgula), a tabela para
futura inser&ccedil;&atilde;o de dados pelo usu&aacute;rio.
O arquivo
CSV pode ser aberto como planilha em um software como&nbsp;</span><span
 style="font-size: 11pt;"><small>LibreOffice</small></span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;">,
para ser alimentado com as informa&ccedil;&otilde;es. A
opera&ccedil;&atilde;o de cria&ccedil;&atilde;o do
arquivo CSV &eacute;
visto na Figura 6, indicado pelo clique do bot&atilde;o "CSV".
Ap&oacute;s o clique no bot&atilde;o, voc&ecirc; deve
salvar o arquivo
em uma pasta no seu computador.<br>
<br>
<br>
<img style="width: 400px; height: 97px;" alt="figura7"
 src="imagens/tabelaAtualizada/Figura7.jpg"><big><big><span
 style="font-weight: bold;"></span></big></big></span><br>
&nbsp;&nbsp;&nbsp;<span style="font-weight: bold;"> Figura&nbsp;6</span>:
Gera&ccedil;&atilde;o do arquivo CSV.<br>
<br>
Esse procedimento pode ser visto no v&iacute;deo tutorial. <a
 target="_blank"
 href="videos/video_criando_tabela/sandbox/criando_tabela.html"><span
 style="color: rgb(204, 0, 0);">Clique aqui para ver o
v&iacute;deo</span></a>.<br>
<br>
<br>
<div class="trail-box-header"><img src="files/trails-box-tr.png"
 class="right" alt="" height="21" width="7"><img
 src="files/trails-box-tl.png" class="left" alt="" height="21" width="7"><comment
 title=" here is the box header "
 xmlns="http://disruptive-innovations.com/zoo/nvu"><comment
 title=" here is the box header "
 xmlns="http://disruptive-innovations.com/zoo/nvu"></comment></comment>
<h1><a name="importdados"></a></h1>
<h1><span style="font-weight: bold;">Importando dados
&agrave;
vari&aacute;vel</span></h1>
</div>
<br>
<big><big><span style="font-weight: bold;">
<small><small><span style="font-weight: bold;"><span
 style="font-weight: bold;"></span></span></small></small></span><small><small>Se
voc&ecirc; j&aacute; possu&iacute; dados em planilhas ou
outro tipo de
formato voc&ecirc; poder&aacute; utilizar algum software que
permita
converter esses dados para o formato CSV (o LibreOffice por exemplo).<br>
<br>
Para inserir os dados existentes em um arquivo CSV escolha no menu
"Metadados estat&iacute;sticos" a op&ccedil;&atilde;o
"Upload de dados
para uma variavel" (ver <span style="font-weight: bold;">Figura 7</span>).<br>
<br>
&Eacute; fundamental que os seus dados contenha uma coluna com o
c&oacute;digo que identifica o limite geogr&aacute;fico ao qual
est&aacute; relacionado. Por exemplo, se voc&ecirc;
est&aacute;
trabalhando com dados referentes a bairros, cada linha de dados do
arquivo CSV deve ter uma das colunas contendo o c&oacute;digo do
bairro. Esse c&oacute;digo deve ser exatamente o mesmo
c&oacute;digo
utilizado na tabela que cont&eacute;m os limites
geogr&aacute;ficos.
Essa tabela com os limites geogr&aacute;ficos &eacute; a que
foi criada
ao ser feito o upload de um arquivo &ldquo;shapefile&rdquo; ou
aquelas
que j&aacute; s&atilde;o fornecidas com o i3GeoSa&uacute;de.
Nesse
&uacute;ltimo caso, os identificadores s&atilde;o os mesmos
utilizados
pelo IBGE, tanto para UF, munic&iacute;pios e bairros.<br>
<br>
<img style="width: 587px; height: 217px;" alt="figura7"
 src="imagens/tabelaAtualizada/Figura8.jpg"></small></small><span
 style="font-weight: bold;"><small><small><span
 style="font-weight: bold;"><span style="font-weight: bold;"></span></span></small></small><br>
&nbsp;<small>&nbsp;Figura
7: </small></span><small>Sele&ccedil;&atilde;o
da op&ccedil;&atilde;o "upload de dados para uma
vari&aacute;vel".</small><br>
<br>
</big></big>
<p class="MsoNormal"><big><big><a name="csv"></a></big></big><span
 style="font-size: 11pt;"><small>Conforme
visto na <span style="font-weight: bold;">Figura 8</span>,&nbsp;</small></span><span
 style="font-size: 11pt;"><small>deve-se
primeiramente&nbsp;</small></span><span style="font-size: 11pt;"><small>escolher
o nome da vari&aacute;vel e sua medida; &nbsp;neste exemplo, </small></span><span
 style="font-size: 11pt;"><small>chama-se
de "exemplo" a vari&aacute;vel,&nbsp; e </small></span><span
 style="font-size: 11pt;"><small>"exemplo1"
</small></span><span style="font-size: 11pt;"><small>a
medida da vari&aacute;vel. Em seguida, fa&ccedil;a a carga dos
dados a
partir do "upload" do arquivo&nbsp;</small></span><span
 style="font-size: 11pt;"><small>CSV que se encontra em seu computador.
Lembre que esse arquivo deve estar&nbsp;pr&eacute;-formatado
conforme
as exig&ecirc;ncias do i3GeoSa&uacute;de</small></span><span
 style="font-size: 11pt;"><small>.
Para mais detalhes sobre
cria&ccedil;&atilde;o e edi&ccedil;&atilde;o do</small></span><span
 style="font-size: 11pt;"><small> CSV,
veja <a target="_blank" href="arquivoCSV.html">como
criar uma tabela de
dados no LibreOffice</a>.</small></span></p>
<big><big><br>
</big></big><img src="imagens/tabelaAtualizada/Figura9.jpg" alt="f"
 style="background-color: rgb(153, 153, 153); width: 400px; height: 293px;"><br>
<span style="font-weight: bold;">
Figura 8</span>: Upload do arquivo
CSV com os dados.<br>
<br>
<br>
<span style="font-size: 11pt;"><small>
Depois disso, como visto na
<span style="font-weight: bold;">Figura 9</span>,
selecione as colunas que s&atilde;o relevantes para a
defini&ccedil;&atilde;o da vari&aacute;vel. No exemplo,
considere como
relevantes as colunas "codigoregiao" e </small></span><span
 style="font-size: 11pt;"><small>"pop_total",
como fundamentais para a
utiliza&ccedil;&atilde;o d</small></span><span style="font-size: 11pt;"><small>a
vari&aacute;vel.</small></span>
<br>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><big><big><small><small><span
 style="color: rgb(204, 0, 0);"><br>
<img style="width: 200px; height: 417px;" alt="figura9"
 src="imagens/tabelaAtualizada/Figura12.jpg"><br>
</span><span style="font-weight: bold;">
Figura 9</span>:
Sele&ccedil;&atilde;o de colunas e do tipo de
inclus&atilde;o.<br>
</small></small></big></big></span><br>
Observe que na Figura 9 &eacute; necess&aacute;rio informar o
tipo de
inclus&atilde;o dos dados (op&ccedil;&otilde;es
"acrescentar" e
"substituir"). Nesse caso, como &eacute; a primeira vez que
&eacute;
carregado o arquivo, escolha "acrescentar". Para finalizar, clique em
"Concluir envio". Caso a carga seja efetuada com sucesso,
surgir&aacute; a imagem vista na <span style="font-weight: bold;">Figura
10</span>, mostrando a quantidade
de
linhas carregadas na base de dados.<br>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><big><big><small><small><br>
<br>
<img style="width: 250px; height: 95px;" alt=""
 src="imagens/tabelaAtualizada/Figura11.png"><br>
<span style="font-weight: bold;">
Figura 10:</span>
Finaliza&ccedil;&atilde;o do processo de carga dos
dados.<br>
<br>
</small></small></big></big></span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><big><big><small><small>O
v&iacute;deo</small></small></big></big></span><span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"><big><big><small><small>
dessa tarefa pode ser acompanhada pelo v&iacute;deo tutorial, <a
 target="_blank"
 href="videos/video_upload_tabela/sandbox/upload_tabela.html">clicando
aqui</a>.<br>
<br>
</small></small></big></big></span><a href="index.html"></a></div>
</div>
<span
 style="color: rgb(51, 51, 51); font-family: Verdana,Helvetica,Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); display: inline ! important; float: none;"></span></div>
</div>
</div>
</body>
</html>