Commit 3e78e75736d5dd6cd5d2098e3c2908218cfa7c4f
1 parent
e3ce042a
Exists in
master
and in
7 other branches
Correção no cálculo de centro médio
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesphp/classe_analise.php
... | ... | @@ -1449,7 +1449,6 @@ $item {string} - (opcional) Item q será utilizado para ponderar os valore |
1449 | 1449 | $pt = $shape->line(0)->point(0); |
1450 | 1450 | $xs += ($pt->x * $pondera); |
1451 | 1451 | $ys += ($pt->y * $pondera); |
1452 | - | |
1453 | 1452 | } |
1454 | 1453 | //gera o novo arquivo shape file |
1455 | 1454 | // cria o shapefile |
... | ... | @@ -1467,11 +1466,12 @@ $item {string} - (opcional) Item q será utilizado para ponderar os valore |
1467 | 1466 | else |
1468 | 1467 | $db=dbase_open($dbname,2); |
1469 | 1468 | $reg[] = ""; |
1470 | - | |
1469 | + $res_count = count($lshapes); | |
1471 | 1470 | $shp = ms_newShapeObj(MS_SHP_POINT); |
1472 | 1471 | $linha = ms_newLineObj(); |
1473 | 1472 | $linha->addXY(($xs / $res_count),($ys / $res_count)); |
1474 | 1473 | $shp->add($linha); |
1474 | + | |
1475 | 1475 | $novoshpf->addShape($shp); |
1476 | 1476 | if($this->dbaseExiste == false) |
1477 | 1477 | xbase_add_record($db,$reg); |
... | ... | @@ -1489,7 +1489,7 @@ $item {string} - (opcional) Item q será utilizado para ponderar os valore |
1489 | 1489 | $novolayer->setmetadata("TEMALOCAL","SIM"); |
1490 | 1490 | $classe = $novolayer->getclass(0); |
1491 | 1491 | $estilo = $classe->getstyle(0); |
1492 | - $estilo->set("size","12"); | |
1492 | + $estilo->set("size","14"); | |
1493 | 1493 | //limpa selecao |
1494 | 1494 | if (file_exists($this->qyfile)) |
1495 | 1495 | {unlink ($this->qyfile);} | ... | ... |
ferramentas/nptpol/index.js
... | ... | @@ -114,7 +114,7 @@ i3GEOF.nptpol = { |
114 | 114 | iniciaJanelaFlutuante: function(){ |
115 | 115 | var minimiza,cabecalho,janela,divid,temp,titulo; |
116 | 116 | //cria a janela flutuante |
117 | - titulo = $trad("u13")+" <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=3&idajuda=19' > </a>"; | |
117 | + titulo = $trad("u12")+" <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=3&idajuda=19' > </a>"; | |
118 | 118 | cabecalho = function(){}; |
119 | 119 | minimiza = function(){ |
120 | 120 | i3GEO.janela.minimiza("i3GEOF.nptpol"); | ... | ... |