From c6f036e7f41f2807ffaf188b340bc544080ba67b Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 29 Jun 2009 17:59:32 +0000 Subject: [PATCH] Inclusão de opção de entrada de pontos por direção e distância --- classesphp/classe_analise.php | 11 ++++++----- classesphp/mapa_controle.php | 14 ++++++++++++++ ferramentas/inserexy2/index.htm | 34 +++++++++++++++++++++++++++------- ferramentas/inserexy2/index.js | 53 +++++++++++++++++++++++++++++++++++++++++++++++++---- 4 files changed, 96 insertions(+), 16 deletions(-) diff --git a/classesphp/classe_analise.php b/classesphp/classe_analise.php index 43089d5..2779191 100644 --- a/classesphp/classe_analise.php +++ b/classesphp/classe_analise.php @@ -915,12 +915,13 @@ $locaplic - Localização do I3geo. if ($layerPt->getNumresults() > 0){$existesel = "sim";} if ($existesel == "nao") { - $qstring = "/.*/"; - if($layerPt->connectiontype == MS_POSTGIS) - {$layerPt->queryByrect($this->mapa->extent);} + $layerPt->queryByrect($this->mapa->extent); + //$qstring = "/.*/"; + //if($layerPt->connectiontype == MS_POSTGIS) + //{$layerPt->queryByrect($this->mapa->extent);} //$qstring = $itemspt[0].' ~* \'^.\' '; - else - {$layerPt->queryByAttributes($itemspt[0], $qstring, 1);} + //else + //{$layerPt->queryByAttributes($itemspt[0], $qstring, 1);} } $res_count = $layerPt->getNumresults(); $pontos = array(); diff --git a/classesphp/mapa_controle.php b/classesphp/mapa_controle.php index 08dd877..c435e33 100644 --- a/classesphp/mapa_controle.php +++ b/classesphp/mapa_controle.php @@ -1434,6 +1434,20 @@ Include: redesenhaMapa(); break; /* +Property: insereSHPdd + +Insere um ponto em um shape file tendo como referência o último ponto existente no tema, a direção e a distância. + +Include: + +*/ + case "pegaxyUltimoPonto": + include_once("classe_shp.php"); + $m = new SHP($map_file,$tema); + $cp->set_data($m->ultimoXY()); + break; + +/* Property: insereSHPgrafico Cria um gráfico e insere no mapa em um local clicado no mapa. diff --git a/ferramentas/inserexy2/index.htm b/ferramentas/inserexy2/index.htm index 20c2089..dbf9da7 100644 --- a/ferramentas/inserexy2/index.htm +++ b/ferramentas/inserexy2/index.htm @@ -9,10 +9,11 @@
Tema
-
Digitar
-
Colar
-
Conversor
-
Coordenadas
+
Direc/dist
+
Digitar
+
Colar
+
Conversor
+
Coordenadas
+