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