Commit ee7857ac6d5b9ae6a8d51b2f8d4da51457598887

Authored by Edmar Moretti
1 parent 9504a00a

Melhoria da performance da função identifica

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
classesphp/classe_atributos.php
... ... @@ -873,7 +873,7 @@ $wkt - (opcional) {boolean} inclui ou não o valor do wkt da geometria
873 873 */
874 874 function identifica2($opcao,$xy,$resolucao,$ext="",$listaDeTemas="",$wkt="nao")
875 875 {
876   - if ($opcao != "tema"){
  876 + if ($opcao != "tema" && $opcao != "tip"){
877 877 if($listaDeTemas != "")
878 878 {
879 879 $listaDeTemas = str_replace(" ",",",$listaDeTemas);
... ... @@ -971,6 +971,7 @@ $wkt - (opcional) {boolean} inclui ou não o valor do wkt da geometria
971 971 if ($opcao == "tip")
972 972 {
973 973 $ltemp = array();
  974 + $listatemas = $this->mapa->getalllayernames();
974 975 foreach ($listatemas as $tema)
975 976 {
976 977 $tl = $this->mapa->getlayerbyname($tema);
... ...