Commit 01d2d4deced585f68e66ffdc02f24613d50f560a
1 parent
a790c559
Exists in
master
and in
7 other branches
Atualizacao da página ogc
Showing
3 changed files
with
79 additions
and
20 deletions
Show diff stats
ogc/index.js
... | ... | @@ -92,6 +92,9 @@ function ckCamada(camadas,templateCamadas){ |
92 | 92 | var ncamadas = []; |
93 | 93 | $(camadas).each(function() { |
94 | 94 | if(this.ogc_tema != "NAO"){ |
95 | + if(this.link_tema == ""){ | |
96 | + this.hidden = "hidden"; | |
97 | + } | |
95 | 98 | ncamadas.push(this); |
96 | 99 | } |
97 | 100 | }); |
... | ... | @@ -106,3 +109,38 @@ function ckCamada(camadas,templateCamadas){ |
106 | 109 | return ""; |
107 | 110 | } |
108 | 111 | } |
112 | +function mostraDadosServico(tema){ | |
113 | + ins = "<H1>Endereços de acesso:</H1>"; | |
114 | + var re = new RegExp(".htm", "g"); | |
115 | + var servico = window.location.href.replace(re, '.php?'); | |
116 | + //remove variaveis adicionais, se houver | |
117 | + servico = servico.split("?")[0]+"?"; | |
118 | + | |
119 | + ins += "<p>Webservice com todas as camadas: <a href='" + servico + "' target='_blank' >" + servico + "</a>"; | |
120 | + ins += "<p>Webservice dessa camada: <a href='" + servico + "tema=" + tema + "&' target='_blank' >" + servico + "tema=" + tema + "&</a>"; | |
121 | + ins += "<p>Link para essa página: <a href='"+ window.location.href.split("?")[0] + "?temaOgc=" + tema + "'>"+ window.location.href.split("?")[0] + "?temaOgc=" + tema + "</a>"; | |
122 | + ins += | |
123 | + "<p><a target=blank href='"+servico+"service=wms&version=1.1.1&request=getcapabilities&layers="+tema+"' />GetCapabilities</a>"; | |
124 | + ins += | |
125 | + "<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>"; | |
126 | + ins += | |
127 | + "<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=getlegendgraphic&layers="+tema+"' />testar getLegendGraphic</a>"; | |
128 | + ins += | |
129 | + "<p><a target=blank href='"+servico+"format=application/openlayers&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&layers="+tema+"' />visualizar com openLayers</a>"; | |
130 | + ins += | |
131 | + "<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+"&typeName="+tema+"' />download shapefile via WFS</a>"; | |
132 | + ins += | |
133 | + "<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+"&typeName="+tema+"&ows_geomtype=AS_WKT' />download CSV via WFS com geometria</a>"; | |
134 | + ins += | |
135 | + "<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+"&typeName="+tema+"&ows_geomtype=none' />download CSV via WFS mas sem a geometria</a>"; | |
136 | + ins += | |
137 | + "<p><a target=blank href='"+servico+"OUTPUTFORMAT=kmz&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"&typeName="+tema+"' />download KMZ</a>"; | |
138 | + ins += | |
139 | + "<p><a target=blank href='"+servico+"OUTPUTFORMAT=kml&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"&typeName="+tema+"' />download KML</a>"; | |
140 | + ins += | |
141 | + "<p><a target=blank href='"+servico+"OUTPUTFORMAT=geojson&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"&typeName="+tema+"' />GeoJson</a>"; | |
142 | + ins += | |
143 | + "<p><a target=blank href='ferramentas/recline/default.php?tema="+tema+"' />Explore a tabela de atributos</a>"; | |
144 | + | |
145 | + $(".modal-body").html(ins); | |
146 | +} | |
109 | 147 | \ No newline at end of file | ... | ... |
ogc/index.php
... | ... | @@ -30,25 +30,27 @@ include "../init/head.php"; |
30 | 30 | </style> |
31 | 31 | <script id="templateCamadas" type="x-tmpl-mustache"> |
32 | 32 | <div class="list-group-item"> |
33 | - <div class="bs-component btn-group-sm pull-left"> | |
34 | - <a class="btn btn-primary btn-fab" href="{{codigo_tema}}{{tid}}"> | |
33 | + <div class="bs-component btn-group-sm pull-left" data-toggle="modal" data-target="#modalCamada" onclick="mostraDadosServico('{{codigo_tema}}')"> | |
34 | + <a class="btn btn-primary btn-fab" href="#"> | |
35 | 35 | <i class="material-icons">launch</i> |
36 | 36 | </a> |
37 | 37 | </div> |
38 | - <div class="row-content" style="margin-left: 10px;"> | |
39 | - <h4 class="list-group-item-heading">{{nome_tema}}{{nome}}</h4> | |
40 | - <p class="list-group-item-text">{{ogc_tema}}{{ogc}} {{link_tema}}{{link}}</p> | |
38 | + <div class="row-content" style="margin-left: 10px;" > | |
39 | + <h4 class="list-group-item-heading"> | |
40 | + {{nome_tema}}{{nome}} | |
41 | + <a class="{{hidden}}" href="{{link_tema}}{{link}}" target="_blank"><i class="fa fa-link"></i></a> | |
42 | + </h4> | |
41 | 43 | </div> |
42 | 44 | </div> |
43 | 45 | <div class="list-group-separator"></div> |
44 | 46 | </script> |
45 | 47 | <script id="templateMenu" type="x-tmpl-mustache"> |
46 | 48 | <div class="panel-group" id="menu{{idmenu}}" role="tablist" aria-multiselectable="true"> |
47 | - <div class="panel panel-default"> | |
48 | - <div class="panel-heading" role="tab" id="tituloMenu{{idmenu}}"> | |
49 | - <h4 class="panel-title"> | |
49 | + <div class="panel panel-default" > | |
50 | + <div class="panel-heading" style="background-color:#80cbc4;" role="tab" id="tituloMenu{{idmenu}}"> | |
51 | + <h3 class="panel-title"> | |
50 | 52 | <a class="collapsed in" role="button" data-toggle="collapse" data-parent="#menu{{idmenu}}" href="#corpoMenu{{idmenu}}" aria-expanded="false" aria-controls="#corpoMenu{{idmenu}}"> {{{nomemenu}}} </a> |
51 | - </h4> | |
53 | + </h3> | |
52 | 54 | </div> |
53 | 55 | <div class="panel-body"> |
54 | 56 | <div id="corpoMenu{{idmenu}}" class="panel-collapse collapse" role="tabpanel" aria-multiselectable="true"> |
... | ... | @@ -60,13 +62,13 @@ include "../init/head.php"; |
60 | 62 | </div> |
61 | 63 | </div> |
62 | 64 | </div> |
63 | - | |
64 | 65 | </div> |
65 | 66 | </div> |
66 | 67 | </script> |
67 | 68 | <script id="templateGrupos" type="x-tmpl-mustache"> |
69 | +<div class="list-group"> | |
68 | 70 | <div class="panel panel-default"> |
69 | - <div class="panel-heading" role="tab" id="tituloGrupo{{id_n1}}"> | |
71 | + <div class="panel-heading" style="background-color: #b2dfdb;" role="tab" id="tituloGrupo{{id_n1}}"> | |
70 | 72 | <h4 class="panel-title"> |
71 | 73 | <a class="collapsed" role="button" data-toggle="collapse" data-parent="#corpoMenu{{idmenu}}" href="#corpoGrupo{{id_n1}}" aria-expanded="false" aria-controls="corpoGrupo{{id_n1}}"> {{{nome}}} </a> |
72 | 74 | </h4> |
... | ... | @@ -80,10 +82,12 @@ include "../init/head.php"; |
80 | 82 | </div> |
81 | 83 | </div> |
82 | 84 | </div> |
85 | +</div> | |
83 | 86 | </script> |
84 | 87 | <script id="templateSubGrupos" type="x-tmpl-mustache"> |
88 | +<div class="list-group"> | |
85 | 89 | <div class="panel panel-default"> |
86 | - <div onclick="listaCamadasSubgrupo('{{idmenu}}','{{id_n1}}','{{id_n2}}')" class="panel-heading" role="tab" id="tituloSubGrupo{{id_n2}}"> | |
90 | + <div style="background-color: #e0f2f1;" onclick="listaCamadasSubgrupo('{{idmenu}}','{{id_n1}}','{{id_n2}}')" class="panel-heading" role="tab" id="tituloSubGrupo{{id_n2}}"> | |
87 | 91 | <h4 class="panel-title"> |
88 | 92 | <a class="collapsed" role="button" data-toggle="collapse" data-parent="#corpoGrupo{{id_n1}}" href="#corpoSubGrupo{{id_n2}}" aria-expanded="false" aria-controls="corpoSubGrupo{{id_n2}}"> {{{nome}}} </a> |
89 | 93 | </h4> |
... | ... | @@ -93,6 +97,7 @@ include "../init/head.php"; |
93 | 97 | </div> |
94 | 98 | </div> |
95 | 99 | </div> |
100 | +</div> | |
96 | 101 | </script> |
97 | 102 | <body style="background-color: #eeeeee; padding-top: 55px;"> |
98 | 103 | <nav class="navbar navbar-fixed-top navbar-inverse" role="navigation"> |
... | ... | @@ -125,6 +130,19 @@ include "../init/head.php"; |
125 | 130 | </div> |
126 | 131 | </div> |
127 | 132 | </nav> |
133 | +<div id="modalCamada" class="modal fade" tabindex="-1" role="dialog"> | |
134 | + <div class="modal-dialog"> | |
135 | + <div class="modal-content"> | |
136 | + <div class="modal-header"> | |
137 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | |
138 | + <h4 class="modal-title">OGC</h4> | |
139 | + </div> | |
140 | + <div class="modal-body"> | |
141 | + | |
142 | + </div> | |
143 | + </div> | |
144 | + </div> | |
145 | +</div> | |
128 | 146 | <script type="text/javascript" src="../classesjs/i3geo_tudo_compacto6.js.php"></script> |
129 | 147 | <script src='index.js'></script> |
130 | 148 | <script> | ... | ... |
temas/_lbiomashp.map
... | ... | @@ -5,30 +5,33 @@ MAP |
5 | 5 | CONNECTION "" |
6 | 6 | DATA "/var/www/i3geo/aplicmap/dados/biomas.shp" |
7 | 7 | METADATA |
8 | - "TIP" "CD_LEGENDA" | |
8 | + "METAESTAT_ID_MEDIDA_VARIAVEL" "" | |
9 | 9 | "CACHE" "nao" |
10 | - "olopacity" "" | |
10 | + "TIP" "CD_LEGENDA" | |
11 | 11 | "CLASSE" "SIM" |
12 | + "olopacity" "" | |
12 | 13 | "permitekmz" "sim" |
13 | 14 | "gmopacity" "" |
14 | 15 | "gmstatus" "" |
15 | 16 | "ITENSDESC" "Bioma Teste de acentuação" |
16 | - "ESCALA" "1000000" | |
17 | 17 | "TILES" "SIM" |
18 | + "ESCALA" "1000000" | |
19 | + "METAESTAT_CODIGO_TIPO_REGIAO" "" | |
18 | 20 | "arquivotemaoriginal" "" |
19 | 21 | "extensao" "-76 -39 -29 9" |
20 | - "olstatus" "" | |
21 | 22 | "nomeoriginal" "" |
23 | + "olstatus" "" | |
22 | 24 | "permitedownload" "sim" |
23 | 25 | "FILTROORIGINAL" "" |
24 | - "DATAORIGINAL" "" | |
26 | + "metaestat" "" | |
25 | 27 | "PLUGINI3GEO" "" |
26 | - "download" "SIM" | |
28 | + "DATAORIGINAL" "" | |
29 | + "download" "sim" | |
27 | 30 | "itembuscarapida" "CD_LEGENDA" |
28 | 31 | "ITENS" "CD_LEGENDA" |
29 | - "transitioneffect" "SIM" | |
30 | - "permiteogc" "sim" | |
31 | 32 | "permitekml" "sim" |
33 | + "permiteogc" "sim" | |
34 | + "transitioneffect" "SIM" | |
32 | 35 | "TEMA" "_Biomas SHP (acentução)" |
33 | 36 | END # METADATA |
34 | 37 | NAME "_lbiomashp" | ... | ... |