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,6 +92,9 @@ function ckCamada(camadas,templateCamadas){ | ||
92 | var ncamadas = []; | 92 | var ncamadas = []; |
93 | $(camadas).each(function() { | 93 | $(camadas).each(function() { |
94 | if(this.ogc_tema != "NAO"){ | 94 | if(this.ogc_tema != "NAO"){ |
95 | + if(this.link_tema == ""){ | ||
96 | + this.hidden = "hidden"; | ||
97 | + } | ||
95 | ncamadas.push(this); | 98 | ncamadas.push(this); |
96 | } | 99 | } |
97 | }); | 100 | }); |
@@ -106,3 +109,38 @@ function ckCamada(camadas,templateCamadas){ | @@ -106,3 +109,38 @@ function ckCamada(camadas,templateCamadas){ | ||
106 | return ""; | 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 | \ No newline at end of file | 147 | \ No newline at end of file |
ogc/index.php
@@ -30,25 +30,27 @@ include "../init/head.php"; | @@ -30,25 +30,27 @@ include "../init/head.php"; | ||
30 | </style> | 30 | </style> |
31 | <script id="templateCamadas" type="x-tmpl-mustache"> | 31 | <script id="templateCamadas" type="x-tmpl-mustache"> |
32 | <div class="list-group-item"> | 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 | <i class="material-icons">launch</i> | 35 | <i class="material-icons">launch</i> |
36 | </a> | 36 | </a> |
37 | </div> | 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 | </div> | 43 | </div> |
42 | </div> | 44 | </div> |
43 | <div class="list-group-separator"></div> | 45 | <div class="list-group-separator"></div> |
44 | </script> | 46 | </script> |
45 | <script id="templateMenu" type="x-tmpl-mustache"> | 47 | <script id="templateMenu" type="x-tmpl-mustache"> |
46 | <div class="panel-group" id="menu{{idmenu}}" role="tablist" aria-multiselectable="true"> | 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 | <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> | 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 | </div> | 54 | </div> |
53 | <div class="panel-body"> | 55 | <div class="panel-body"> |
54 | <div id="corpoMenu{{idmenu}}" class="panel-collapse collapse" role="tabpanel" aria-multiselectable="true"> | 56 | <div id="corpoMenu{{idmenu}}" class="panel-collapse collapse" role="tabpanel" aria-multiselectable="true"> |
@@ -60,13 +62,13 @@ include "../init/head.php"; | @@ -60,13 +62,13 @@ include "../init/head.php"; | ||
60 | </div> | 62 | </div> |
61 | </div> | 63 | </div> |
62 | </div> | 64 | </div> |
63 | - | ||
64 | </div> | 65 | </div> |
65 | </div> | 66 | </div> |
66 | </script> | 67 | </script> |
67 | <script id="templateGrupos" type="x-tmpl-mustache"> | 68 | <script id="templateGrupos" type="x-tmpl-mustache"> |
69 | +<div class="list-group"> | ||
68 | <div class="panel panel-default"> | 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 | <h4 class="panel-title"> | 72 | <h4 class="panel-title"> |
71 | <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> | 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 | </h4> | 74 | </h4> |
@@ -80,10 +82,12 @@ include "../init/head.php"; | @@ -80,10 +82,12 @@ include "../init/head.php"; | ||
80 | </div> | 82 | </div> |
81 | </div> | 83 | </div> |
82 | </div> | 84 | </div> |
85 | +</div> | ||
83 | </script> | 86 | </script> |
84 | <script id="templateSubGrupos" type="x-tmpl-mustache"> | 87 | <script id="templateSubGrupos" type="x-tmpl-mustache"> |
88 | +<div class="list-group"> | ||
85 | <div class="panel panel-default"> | 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 | <h4 class="panel-title"> | 91 | <h4 class="panel-title"> |
88 | <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> | 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 | </h4> | 93 | </h4> |
@@ -93,6 +97,7 @@ include "../init/head.php"; | @@ -93,6 +97,7 @@ include "../init/head.php"; | ||
93 | </div> | 97 | </div> |
94 | </div> | 98 | </div> |
95 | </div> | 99 | </div> |
100 | +</div> | ||
96 | </script> | 101 | </script> |
97 | <body style="background-color: #eeeeee; padding-top: 55px;"> | 102 | <body style="background-color: #eeeeee; padding-top: 55px;"> |
98 | <nav class="navbar navbar-fixed-top navbar-inverse" role="navigation"> | 103 | <nav class="navbar navbar-fixed-top navbar-inverse" role="navigation"> |
@@ -125,6 +130,19 @@ include "../init/head.php"; | @@ -125,6 +130,19 @@ include "../init/head.php"; | ||
125 | </div> | 130 | </div> |
126 | </div> | 131 | </div> |
127 | </nav> | 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 | <script type="text/javascript" src="../classesjs/i3geo_tudo_compacto6.js.php"></script> | 146 | <script type="text/javascript" src="../classesjs/i3geo_tudo_compacto6.js.php"></script> |
129 | <script src='index.js'></script> | 147 | <script src='index.js'></script> |
130 | <script> | 148 | <script> |
temas/_lbiomashp.map
@@ -5,30 +5,33 @@ MAP | @@ -5,30 +5,33 @@ MAP | ||
5 | CONNECTION "" | 5 | CONNECTION "" |
6 | DATA "/var/www/i3geo/aplicmap/dados/biomas.shp" | 6 | DATA "/var/www/i3geo/aplicmap/dados/biomas.shp" |
7 | METADATA | 7 | METADATA |
8 | - "TIP" "CD_LEGENDA" | 8 | + "METAESTAT_ID_MEDIDA_VARIAVEL" "" |
9 | "CACHE" "nao" | 9 | "CACHE" "nao" |
10 | - "olopacity" "" | 10 | + "TIP" "CD_LEGENDA" |
11 | "CLASSE" "SIM" | 11 | "CLASSE" "SIM" |
12 | + "olopacity" "" | ||
12 | "permitekmz" "sim" | 13 | "permitekmz" "sim" |
13 | "gmopacity" "" | 14 | "gmopacity" "" |
14 | "gmstatus" "" | 15 | "gmstatus" "" |
15 | "ITENSDESC" "Bioma Teste de acentuação" | 16 | "ITENSDESC" "Bioma Teste de acentuação" |
16 | - "ESCALA" "1000000" | ||
17 | "TILES" "SIM" | 17 | "TILES" "SIM" |
18 | + "ESCALA" "1000000" | ||
19 | + "METAESTAT_CODIGO_TIPO_REGIAO" "" | ||
18 | "arquivotemaoriginal" "" | 20 | "arquivotemaoriginal" "" |
19 | "extensao" "-76 -39 -29 9" | 21 | "extensao" "-76 -39 -29 9" |
20 | - "olstatus" "" | ||
21 | "nomeoriginal" "" | 22 | "nomeoriginal" "" |
23 | + "olstatus" "" | ||
22 | "permitedownload" "sim" | 24 | "permitedownload" "sim" |
23 | "FILTROORIGINAL" "" | 25 | "FILTROORIGINAL" "" |
24 | - "DATAORIGINAL" "" | 26 | + "metaestat" "" |
25 | "PLUGINI3GEO" "" | 27 | "PLUGINI3GEO" "" |
26 | - "download" "SIM" | 28 | + "DATAORIGINAL" "" |
29 | + "download" "sim" | ||
27 | "itembuscarapida" "CD_LEGENDA" | 30 | "itembuscarapida" "CD_LEGENDA" |
28 | "ITENS" "CD_LEGENDA" | 31 | "ITENS" "CD_LEGENDA" |
29 | - "transitioneffect" "SIM" | ||
30 | - "permiteogc" "sim" | ||
31 | "permitekml" "sim" | 32 | "permitekml" "sim" |
33 | + "permiteogc" "sim" | ||
34 | + "transitioneffect" "SIM" | ||
32 | "TEMA" "_Biomas SHP (acentução)" | 35 | "TEMA" "_Biomas SHP (acentução)" |
33 | END # METADATA | 36 | END # METADATA |
34 | NAME "_lbiomashp" | 37 | NAME "_lbiomashp" |