From 05b22552a304a6832a3b8461680dc0eada2b65e1 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 23 Apr 2015 18:16:48 +0000 Subject: [PATCH] ajustes em OGC para não ser necessário definir &tema --- admin/admin.db | Bin 278528 -> 0 bytes mashups/openlayers.php | 3 +++ ogc.htm | 20 ++++++++++---------- ogc.php | 3 +++ temas/_lbiomashp.map | 4 ++-- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/admin/admin.db b/admin/admin.db index 6a44a71..bbde4a6 100644 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/mashups/openlayers.php b/mashups/openlayers.php index 48a063e..adbe566 100644 --- a/mashups/openlayers.php +++ b/mashups/openlayers.php @@ -52,6 +52,9 @@ if(!empty($restauramapa)){ // // imprime na tela a ajuda ao usuário // +if(!isset($temas) && isset($layers)){ + $temas = $layers; +} if(!isset($temas)){ ajuda(); } diff --git a/ogc.htm b/ogc.htm index 490b701..a999e8b 100644 --- a/ogc.htm +++ b/ogc.htm @@ -82,12 +82,12 @@ function ogc_endereco(botao) ins = "

Endereço do web service:

"; var re = new RegExp(".htm", "g"); var servico = window.location.href.replace(re,'.php?'); - var s = "tema="+tema; + var s = ""; //"tema="+tema; if(botao.name === "metaestat"){ - s = "id_medida_variavel="+tema.split("_")[1]; + s = "id_medida_variavel="+tema.split("_")[1] + "&"; } if(botao.name === "mapaCadastrado"){ - s = "restauramapa="+tema.split("_")[1]; + s = "restauramapa="+tema.split("_")[1] + "&"; tema = ""; } @@ -95,13 +95,13 @@ function ogc_endereco(botao) ins += "

"+servico; ins += "

Bookmark: "; ins += "

"; - ins += "

GetCapabilities"; - ins += "

testar getmap"; - ins += "

visualizar com openLayers"; - ins += "

download shapefile via WFS"; - ins += "

download CSV via WFS"; - ins += "

download KMZ"; - ins += "

GeoJson"; + ins += "

GetCapabilities"; + ins += "

testar getmap"; + ins += "

visualizar com openLayers"; + ins += "

download shapefile via WFS"; + ins += "

download CSV via WFS"; + ins += "

download KMZ"; + ins += "

GeoJson"; if(!$i("panellistaarquivos")){ YAHOO.namespace("datadownloadLista"); diff --git a/ogc.php b/ogc.php index 6cd3b5c..a1ef99b 100644 --- a/ogc.php +++ b/ogc.php @@ -88,6 +88,9 @@ include(dirname(__FILE__)."/classesphp/funcoes_gerais.php"); //para o caso da requisicao kml if(strtolower($OUTPUTFORMAT) == "kml" || strtolower($OUTPUTFORMAT) == "kmz"){ //http://localhost/i3geo/pacotes/kmlmapserver/kmlservice.php?request=kmz&map=_lbiomashp&typename=_lbiomashp + if(!isset($tema) && isset($layers)){ + $tema = $layers; + } $urln = "pacotes/kmlmapserver/kmlservice.php?request=kmz&map=".$tema."&typename=".$tema; header("Location:".$urln); exit; diff --git a/temas/_lbiomashp.map b/temas/_lbiomashp.map index fb870ea..168640d 100644 --- a/temas/_lbiomashp.map +++ b/temas/_lbiomashp.map @@ -7,7 +7,7 @@ MAP METADATA "TIP" "CD_LEGENDA" "CLASSE" "SIM" - "permitekmz" "nao" + "permitekmz" "sim" "ITENSDESC" "Teste de acentuação" "TILES" "SIM" "ESCALA" "1000000" @@ -16,7 +16,7 @@ MAP "itembuscarapida" "CD_LEGENDA" "ITENS" "CD_LEGENDA" "permitekml" "sim" - "permiteogc" "nao" + "permiteogc" "sim" "transitioneffect" "SIM" "TEMA" "Biomas shapefile (acentuação)" END # METADATA -- libgit2 0.21.2