Commit e7ca9ad006f6fb6b1513c9f4ae96a34f406c0265
1 parent
b878eefc
Exists in
master
Corrige a função de converção de wkt para layer nos casos de projeção métrica
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
ferramentas/wkt2layer/exec.php
... | ... | @@ -17,8 +17,8 @@ Insere elementos no mapa como um layer do tipo feature baseado em wkt |
17 | 17 | include_once("../../classesphp/classe_temas.php"); |
18 | 18 | copiaSeguranca($map_file); |
19 | 19 | $m = new Temas($map_file,""); |
20 | - if(!isset($marca)){ | |
21 | - $marca=""; | |
20 | + if(!isset($_GET["marca"])){ | |
21 | + $_GET["marca"]=""; | |
22 | 22 | } |
23 | 23 | $shp = ms_shapeObjFromWkt($_GET["xy"]); |
24 | 24 | if($shp->type == MS_SHAPE_POINT){ |
... | ... | @@ -38,10 +38,10 @@ Insere elementos no mapa como um layer do tipo feature baseado em wkt |
38 | 38 | include_once("../../classesphp/classe_analise.php"); |
39 | 39 | $m = new Analise($map_file,""); |
40 | 40 | $nomeLayer = $m->aplicaFuncaoListaWKT(array($_GET["xy"]),"converteSHP",$dir_tmp,$imgdir); |
41 | + | |
41 | 42 | $l = $m->mapa->getlayerbyname($nomeLayer); |
42 | 43 | $l->setmetadata("tema",$_GET["nometema"]); |
43 | 44 | //verifica projecao |
44 | - //verifica a projecao | |
45 | 45 | $shp = ms_shapeObjFromWkt($_GET["xy"]); |
46 | 46 | $c = $shp->getCentroid(); |
47 | 47 | $c = $c->x; |
... | ... | @@ -49,7 +49,7 @@ Insere elementos no mapa como um layer do tipo feature baseado em wkt |
49 | 49 | $l->setprojection(pegaProjecaoDefault("proj4")); |
50 | 50 | } |
51 | 51 | else{ |
52 | - $l->setprojection($this->mapa->getProjection()); | |
52 | + $l->setprojection($m->mapa->getProjection()); | |
53 | 53 | } |
54 | 54 | $m->salva(); |
55 | 55 | redesenhaMapa(); | ... | ... |