diff --git a/classesphp/mapa_googlemaps.php b/classesphp/mapa_googlemaps.php index c670b36..3e68bd5 100644 --- a/classesphp/mapa_googlemaps.php +++ b/classesphp/mapa_googlemaps.php @@ -396,6 +396,9 @@ else{ else{ if($_SESSION["i3georendermode"] == 0 || ($_SESSION["i3georendermode"] == 1 && $cortePixels > 0)){ $nomer = ($img->imagepath)."temp".nomeRand().".png"; + if($img->imagepath == ""){ + ilegal(); + } $img->saveImage($nomer); // //corta a imagem gerada para voltar ao tamanho normal diff --git a/ferramentas/conectarwms/index.js b/ferramentas/conectarwms/index.js index dc4829d..21cb417 100644 --- a/ferramentas/conectarwms/index.js +++ b/ferramentas/conectarwms/index.js @@ -269,6 +269,9 @@ function seltema(tipo,tema,legenda,nometema,nomecamada,sldflag) if($i("servico").value.split("?").length === 1){ $i("servico").value = $i("servico").value+"?"; } + if($i("proj").value === ""){ + $i("proj").value = "EPSG:4326"; + } var p = "&funcao=adicionatemawms&servico="+$i("servico").value+"&tema="+g_tema+"&nome="+g_nometema+"&proj="+$i("proj").value+"&formato="+$i("formatos").value+"&tipo="+g_tipo+"&versao="+$i("versao").value+"&nomecamada="+g_nomecamada+"&tiporep="+tiporep+"&suportasld="+g_sld+"&formatosinfo="+$i("formatosinfo").value; if(g_tipows == "WMS-Tile"){ p += "&tile=1"; -- libgit2 0.21.2