Commit 34a04822795eb642a1b8814498d9683cafd29f33
1 parent
4847c0dc
Exists in
master
and in
7 other branches
--no commit message
Showing
9 changed files
with
9 additions
and
9 deletions
Show diff stats
classesphp/classe_atributos.php
... | ... | @@ -125,7 +125,7 @@ $ext - (opcional) extensão geográfica que será aplicada ao mapa |
125 | 125 | } |
126 | 126 | if($this->mapa->getmetadata("interface") == "googlemaps"){ |
127 | 127 | $this->projO = $this->mapa->getProjection(); |
128 | - $this->mapa->setProjection("init=epsg:4291"); | |
128 | + $this->mapa->setProjection("init=epsg:4291,a=6378137,b=6378137"); | |
129 | 129 | } |
130 | 130 | } |
131 | 131 | } | ... | ... |
classesphp/classe_selecao.php
... | ... | @@ -127,7 +127,7 @@ $ext - extensão geográfica do mapa |
127 | 127 | } |
128 | 128 | if($this->mapa->getmetadata("interface") == "googlemaps"){ |
129 | 129 | $this->projO = $this->mapa->getProjection(); |
130 | - $this->mapa->setProjection("init=epsg:4291"); | |
130 | + $this->mapa->setProjection("init=epsg:4291,a=6378137,b=6378137"); | |
131 | 131 | } |
132 | 132 | } |
133 | 133 | /* | ... | ... |
classesphp/classe_temas.php
... | ... | @@ -388,7 +388,7 @@ Calcula a extensão geográfica de um tema e ajusta o mapa para essa extensão. |
388 | 388 | if(!$this->layer){return "erro";} |
389 | 389 | if($this->mapa->getmetadata("interface") == "googlemaps"){ |
390 | 390 | $projO = $this->mapa->getProjection(); |
391 | - $this->mapa->setProjection("init=epsg:4291"); | |
391 | + $this->mapa->setProjection("init=epsg:4291,a=6378137,b=6378137"); | |
392 | 392 | } |
393 | 393 | $prjMapa = ""; |
394 | 394 | $prjTema = ""; | ... | ... |
classesphp/funcoes_gerais.php
... | ... | @@ -857,7 +857,7 @@ function retornaReferenciaDinamica($ext="") |
857 | 857 | // |
858 | 858 | $objMapa = ms_newMapObj($map_file); |
859 | 859 | if($interface == "googlemaps") |
860 | - {$objMapa->setProjection("init=epsg:4291");} | |
860 | + {$objMapa->setProjection("init=epsg:4291,a=6378137,b=6378137");} | |
861 | 861 | if($ext && $ext != ""){ |
862 | 862 | $e = explode(" ",$ext); |
863 | 863 | $extatual = $objMapa->extent; | ... | ... |
classesphp/graficos.php
... | ... | @@ -379,7 +379,7 @@ function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$t |
379 | 379 | if($interface == "googlemaps") |
380 | 380 | { |
381 | 381 | $projMapa = $map->getProjection(); |
382 | - $map->setProjection("init=epsg:4291"); | |
382 | + $map->setProjection("init=epsg:4291,a=6378137,b=6378137"); | |
383 | 383 | } |
384 | 384 | if($ext && $ext != ""){ |
385 | 385 | $e = explode(" ",$ext); | ... | ... |
ferramentas/imprimir/a4lpaisagempdf.php
... | ... | @@ -43,7 +43,7 @@ substituiCon($temp,$postgis_mapa); |
43 | 43 | $map = ms_newMapObj($temp); |
44 | 44 | |
45 | 45 | if($interface == "googlemaps") |
46 | -{$map->setProjection("init=epsg:4291");} | |
46 | +{$map->setProjection("init=epsg:4291,a=6378137,b=6378137");} | |
47 | 47 | |
48 | 48 | $w = $map->width; |
49 | 49 | $h = $map->height; | ... | ... |
ferramentas/imprimir/aggpng.php
... | ... | @@ -71,7 +71,7 @@ $of->set("driver","AGG/PNG"); |
71 | 71 | $of->set("imagemode","RGB"); |
72 | 72 | $map = ms_newMapObj($temp); |
73 | 73 | if($interface == "googlemaps") |
74 | -{$map->setProjection("init=epsg:4291");} | |
74 | +{$map->setProjection("init=epsg:4291,a=6378137,b=6378137");} | |
75 | 75 | //$legenda =$map->legend; |
76 | 76 | //$legenda->set("status",MS_EMBED); |
77 | 77 | //altera o nome das classes vazias | ... | ... |
ferramentas/imprimir/geotif.php
... | ... | @@ -70,7 +70,7 @@ $of->set("driver","GDAL/GTiff"); |
70 | 70 | $of->set("imagemode","RGB"); |
71 | 71 | $map = ms_newMapObj($temp); |
72 | 72 | if($interface == "googlemaps") |
73 | -{$map->setProjection("init=epsg:4291");} | |
73 | +{$map->setProjection("init=epsg:4291,a=6378137,b=6378137");} | |
74 | 74 | //$legenda =$map->legend; |
75 | 75 | //$legenda->set("status",MS_EMBED); |
76 | 76 | //altera o nome das classes vazias | ... | ... |
ferramentas/imprimir/svg.php
... | ... | @@ -67,7 +67,7 @@ $map->save($temp); |
67 | 67 | substituiCon($temp,$postgis_mapa); |
68 | 68 | $map = ms_newMapObj($temp); |
69 | 69 | if($interface == "googlemaps") |
70 | -{$map->setProjection("init=epsg:4291");} | |
70 | +{$map->setProjection("init=epsg:4291,a=6378137,b=6378137");} | |
71 | 71 | $eb = $map->scalebar; |
72 | 72 | $leb = $eb->label; |
73 | 73 | if($leb->type == "MS_BITMAP"){ | ... | ... |