Commit ff75fe6c483b8db8f6e2d2e5a68fc325c801a374

Authored by Edmar Moretti
1 parent 79f8f53d

correções na tolerancia de seleção

classesphp/classe_analise.php
@@ -124,6 +124,7 @@ Include: @@ -124,6 +124,7 @@ Include:
124 function analiseDistriPt($locaplic,$dir_tmp,$R_path,$numclasses,$tipo,$cori,$corf,$tmpurl) 124 function analiseDistriPt($locaplic,$dir_tmp,$R_path,$numclasses,$tipo,$cori,$corf,$tmpurl)
125 { 125 {
126 $layerPt = $this->layer; 126 $layerPt = $this->layer;
  127 + $layerPt->set("tolerance",0);
127 $layerPt->set("template","none.htm"); 128 $layerPt->set("template","none.htm");
128 $nomefinal = nomeRandomico(); 129 $nomefinal = nomeRandomico();
129 $nomearq = $this->diretorio."/".$nomefinal; 130 $nomearq = $this->diretorio."/".$nomefinal;
@@ -484,6 +485,7 @@ $locaplic - Localização do I3geo. @@ -484,6 +485,7 @@ $locaplic - Localização do I3geo.
484 require_once "../pacotes/phpxbase/api_conversion.php"; 485 require_once "../pacotes/phpxbase/api_conversion.php";
485 $layerPt = $this->mapa->getlayerbyname($temaPt); 486 $layerPt = $this->mapa->getlayerbyname($temaPt);
486 $layerPt->set("template","none.htm"); 487 $layerPt->set("template","none.htm");
  488 + $layerPt->set("tolerance",0);
487 //define o nome do novo shapefile que será criado 489 //define o nome do novo shapefile que será criado
488 $nomefinal = nomeRandomico(); 490 $nomefinal = nomeRandomico();
489 $nomeshp = $this->diretorio."/".$nomefinal; 491 $nomeshp = $this->diretorio."/".$nomefinal;
@@ -642,6 +644,8 @@ function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic) @@ -642,6 +644,8 @@ function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic)
642 } 644 }
643 else 645 else
644 {return "erro";} 646 {return "erro";}
  647 + $layeroverlay->set("tolerance",0);
  648 + $layerdestino->set("tolerance",0);
645 $layeroverlay->queryByrect($this->mapa->extent); 649 $layeroverlay->queryByrect($this->mapa->extent);
646 $layerdestino->queryByFeatures($layeroverlay->index); 650 $layerdestino->queryByFeatures($layeroverlay->index);
647 if (@$layerdestino->open() == MS_SUCCESS) 651 if (@$layerdestino->open() == MS_SUCCESS)
@@ -1298,6 +1302,7 @@ $locaplic - Localização do I3geo @@ -1298,6 +1302,7 @@ $locaplic - Localização do I3geo
1298 require_once "../pacotes/phpxbase/api_conversion.php"; 1302 require_once "../pacotes/phpxbase/api_conversion.php";
1299 $layerPt = $this->mapa->getlayerbyname($temaPt); 1303 $layerPt = $this->mapa->getlayerbyname($temaPt);
1300 $layerPt->set("template","none.htm"); 1304 $layerPt->set("template","none.htm");
  1305 + $layerPt->set("tolerance",0);
1301 $layerPo = $this->mapa->getlayerbyname($temaPo); 1306 $layerPo = $this->mapa->getlayerbyname($temaPo);
1302 $layerPo->set("template","none.htm"); 1307 $layerPo->set("template","none.htm");
1303 //define o nome do novo shapefile que será criado 1308 //define o nome do novo shapefile que será criado
classesphp/classe_selecao.php
@@ -103,6 +103,7 @@ $ys - lista de coordenadas y separadas por virgula @@ -103,6 +103,7 @@ $ys - lista de coordenadas y separadas por virgula
103 */ 103 */
104 function selecaoPorPoligono($tipo,$xs,$ys) 104 function selecaoPorPoligono($tipo,$xs,$ys)
105 { 105 {
  106 + $this->layer->set("tolerance",0);
106 if ($tipo == "limpa") 107 if ($tipo == "limpa")
107 {return($this->selecaoLimpa());} 108 {return($this->selecaoLimpa());}
108 if ($tipo == "inverte") 109 if ($tipo == "inverte")
@@ -158,7 +159,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa @@ -158,7 +159,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
158 */ 159 */
159 function selecaoTema($temao,$tipo) 160 function selecaoTema($temao,$tipo)
160 { 161 {
161 - set_time_limit(2000); 162 + $this->layer->set("tolerance",0);
162 if ($tipo == "limpa") 163 if ($tipo == "limpa")
163 {return($this->selecaoLimpa());} 164 {return($this->selecaoLimpa());}
164 if ($tipo == "inverte") 165 if ($tipo == "inverte")
@@ -601,6 +602,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa @@ -601,6 +602,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
601 */ 602 */
602 function selecaoEXT($tipo) 603 function selecaoEXT($tipo)
603 { 604 {
  605 + $this->layer->set("tolerance",0);
604 if ($tipo == "limpa") 606 if ($tipo == "limpa")
605 {return ($this->selecaoLimpa());} 607 {return ($this->selecaoLimpa());}
606 if ($tipo == "inverte") 608 if ($tipo == "inverte")
@@ -648,6 +650,7 @@ $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax @@ -648,6 +650,7 @@ $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax
648 */ 650 */
649 function selecaoBOX($tipo,$ext) 651 function selecaoBOX($tipo,$ext)
650 { 652 {
  653 + $this->layer->set("tolerance",0);
651 if ($tipo == "limpa") 654 if ($tipo == "limpa")
652 {return ($this->selecaoLimpa());} 655 {return ($this->selecaoLimpa());}
653 if ($tipo == "inverte") 656 if ($tipo == "inverte")