From 45224a0a4c447dc48791deaecdb44f555f7085ee Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 5 Feb 2015 23:52:39 +0000 Subject: [PATCH] Ferramenta de cálculo de custo --- classesjs/classe_analise.js | 8 ++++++++ classesjs/classe_util.js | 11 +++++++++++ classesjs/dicionario.js | 6 ++++++ classesphp/funcoes_gerais.php | 5 +++-- 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/classesjs/classe_analise.js b/classesjs/classe_analise.js index 04c2642..9b3f49c 100644 --- a/classesjs/classe_analise.js +++ b/classesjs/classe_analise.js @@ -189,6 +189,14 @@ i3GEO.analise = i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.perfil()", "perfil", "perfil"); }, /** + * Function: melhorcaminho + * + * Ferramenta melhor caminho + */ + melhorcaminho : function() { + i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.melhorcaminho()", "melhorcaminho", "melhorcaminho"); + }, + /** * Function: gradePontos * * Ferramenta grade de pontos diff --git a/classesjs/classe_util.js b/classesjs/classe_util.js index e413ff7..2f2e886 100644 --- a/classesjs/classe_util.js +++ b/classesjs/classe_util.js @@ -1585,6 +1585,17 @@ i3GEO.util = i3GEO.janela.tempoMsg($trad("x13")); } } + if (tipoCombo === "naoraster") { + if (i3GEO.arvoreDeCamadas.CAMADAS !== "") { + temp = i3GEO.arvoreDeCamadas.filtraCamadas("type", 4, "diferente", i3GEO.arvoreDeCamadas.CAMADAS); + temp = i3GEO.arvoreDeCamadas.filtraCamadas("type", 5, "diferente", temp); + temp = i3GEO.arvoreDeCamadas.filtraCamadas("type", 6, "diferente", temp); + temp = i3GEO.arvoreDeCamadas.filtraCamadas("type", 7, "diferente", temp); + monta(i3GEO.arvoreDeCamadas.filtraCamadas("type", 8, "diferente", temp)); + } else { + i3GEO.janela.tempoMsg($trad("x13")); + } + } if (tipoCombo === "poligonosSelecionados") { if (i3GEO.arvoreDeCamadas.CAMADAS !== "") { temp = i3GEO.arvoreDeCamadas.filtraCamadas("type", 2, "igual", i3GEO.arvoreDeCamadas.CAMADAS); diff --git a/classesjs/dicionario.js b/classesjs/dicionario.js index 4ef6032..6122f2b 100644 --- a/classesjs/dicionario.js +++ b/classesjs/dicionario.js @@ -2294,6 +2294,12 @@ g_traducao = { pt: "Operacao nao autorizada para esse usuario", en:"", es:"" +}], +"melhorcaminho": [ +{ + pt: "Melhor caminho (raster)", + en:"", + es:"" }] }; //YAHOO.log("carregou dicionario", "Classes i3geo"); diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php index ee43d01..be09e04 100644 --- a/classesphp/funcoes_gerais.php +++ b/classesphp/funcoes_gerais.php @@ -2460,8 +2460,9 @@ function retornaShapesMapext($objLayer,$objMapa){ $shapes = array(); $status = $objLayer->open(); $status = $objLayer->whichShapes($objMapa->extent); - while ($shape = $objLayer->nextShape()) - {$shapes[] = $shape;} + while ($shape = $objLayer->nextShape()){ + $shapes[] = $shape; + } $objLayer->close(); return $shapes; } -- libgit2 0.21.2