Commit 119f0826f776f2329ff334aa674b5f2ca1383531

Authored by Edmar Moretti
1 parent 789d5a4c

V60 - alteração em ogc.php para informar um formato default quando a requisição for vazia

Showing 2 changed files with 6 additions and 1 deletions   Show diff stats
ogc.htm
... ... @@ -92,9 +92,10 @@ function ogc_endereco(botao)
92 92 ins += "<p>"+servico;
93 93 ins += "<p>Bookmark: <span id=bm ></span>";
94 94 ins += "<p><iframe src='http://www.facebook.com/plugins/like.php?href="+servico+"&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>";
  95 + ins += "<p><a target=blank href='"+servico+"&service=wms&version=1.1.0&request=getcapabilities&layers="+tema+"' />GetCapabilities</a>";
95 96 ins += "<p><a target=blank href='"+servico+"&SRS=EPSG:4618&WIDTH=500&HEIGHT=500&BBOX=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&FORMAT=image/png&service=wms&version=1.1.0&request=getmap&layers="+tema+"' />testar getmap</a>";
96 97 ins += "<p><a target=blank href='"+servico+"&format=application/openlayers&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081' />visualizar com openLayers</a>";
97   - ins += "<p><a target=blank href='"+servico+"&OUTPUTFORMAT=shape-zip&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"' />download sahpefile via WFS</a>";
  98 + ins += "<p><a target=blank href='"+servico+"&OUTPUTFORMAT=shape-zip&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"' />download shapefile via WFS</a>";
98 99 ins += "<p><a target=blank href='"+servico+"&OUTPUTFORMAT=csv&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"' />download CSV via WFS</a>";
99 100  
100 101 if(!$i("panellistaarquivos")){
... ...
ogc.php
... ... @@ -801,6 +801,10 @@ if(isset($OUTPUTFORMAT)){
801 801 }
802 802 }
803 803 ms_ioinstallstdouttobuffer();
  804 +//verifica parametro outputformat
  805 +if(strtolower($req->getValueByName("REQUEST")) == "getmap" && $req->getValueByName("format") == ""){
  806 + $req->setParameter("format","image/png");
  807 +}
804 808 $oMap->owsdispatch($req);
805 809 $contenttype = ms_iostripstdoutbuffercontenttype();
806 810 if(strtolower($request) == "getcapabilities"){
... ...