Commit 74fce19f602a5e51dd067a6ffe5f96e9e0c060c0

Authored by Edmar Moretti
1 parent 4322fea6
Exists in master

Leitura do PRJ ao adicionar tema de arquivo shp

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
classesphp/classe_mapa.php
... ... @@ -2117,6 +2117,10 @@ class Mapa
2117 2117 }
2118 2118 $layer = criaLayer($this->mapa,$tipo,MS_DEFAULT,basename($arq),"SIM");
2119 2119 $layer->set("data",$arq);
  2120 + //verifica se existe o arquivo PRJ
  2121 + if(file_exists(str_replace(".shp","",$arq).".prj")){
  2122 + $layer->setprojection("AUTO");
  2123 + }
2120 2124 $layer->set("name",basename($arq));
2121 2125 $layer->setmetadata("DOWNLOAD","nao");
2122 2126 $layer->setmetadata("TEMALOCAL","NAO");
... ...