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