Commit 4ded9b39bc9bd94dc0a38bbec94867cb99cef617
1 parent
d5d4ad86
Exists in
master
and in
7 other branches
Inclusão do item fonte e legenda no acesso aos dados do i3geo via kml
Showing
2 changed files
with
13 additions
and
5 deletions
Show diff stats
aplicmap/ogcws.map
... | ... | @@ -14,7 +14,7 @@ MAP |
14 | 14 | FONTSET "../symbols/fontes.txt" |
15 | 15 | LEGEND |
16 | 16 | IMAGECOLOR 255 255 255 |
17 | - KEYSIZE 15 10 | |
17 | + KEYSIZE 25 25 | |
18 | 18 | KEYSPACING 5 5 |
19 | 19 | LABEL |
20 | 20 | SIZE 8 |
... | ... | @@ -25,10 +25,10 @@ MAP |
25 | 25 | FORCE FALSE |
26 | 26 | MINDISTANCE -1 |
27 | 27 | MINFEATURESIZE -1 |
28 | - OFFSET 0 -2 | |
29 | - PARTIALS TRUE | |
28 | + OFFSET 0 0 | |
29 | + PARTIALS FALSE | |
30 | 30 | END |
31 | - POSITION LL | |
31 | + POSITION UL | |
32 | 32 | STATUS on |
33 | 33 | END |
34 | 34 | ... | ... |
kml.php
... | ... | @@ -34,7 +34,11 @@ echo '<?xml version="1.0" encoding="UTF-8"?>'; |
34 | 34 | echo "<kml xmlns='http://earth.google.com/kml/2.2'>"; |
35 | 35 | $protocolo = explode("/",$_SERVER['SERVER_PROTOCOL']); |
36 | 36 | $protocolo = $protocolo[0]; |
37 | +$protocolo1 = strtolower($protocolo . '://'.$_SERVER['SERVER_NAME']); | |
38 | + | |
37 | 39 | $protocolo = $protocolo . '://'.$_SERVER['SERVER_NAME'] .":". $_SERVER['SERVER_PORT']; |
40 | + | |
41 | + | |
38 | 42 | if ($menutemas == "") |
39 | 43 | {$menus[] = "menutemas/menutemas.xml";} |
40 | 44 | else |
... | ... | @@ -68,6 +72,7 @@ foreach ($menus as $menu) |
68 | 72 | $nome = mb_convert_encoding($tema->TNOME,"auto","auto"); |
69 | 73 | $desc = mb_convert_encoding($tema->TDESC,"auto","auto"); |
70 | 74 | $id = mb_convert_encoding($tema->TID,"auto","auto"); |
75 | + $fonte = mb_convert_encoding($tema->TLINK,"auto","auto"); | |
71 | 76 | $ogc = sim; |
72 | 77 | if($tema->TID) |
73 | 78 | { |
... | ... | @@ -77,7 +82,10 @@ foreach ($menus as $menu) |
77 | 82 | { |
78 | 83 | echo "<GroundOverlay>"; |
79 | 84 | echo "<name>$nome</name>"; |
80 | - echo "<description>$desc</description>"; | |
85 | + $fonte = "<a href='$fonte' >Fonte </a>"; | |
86 | + $legenda = "<a href='$protocolo1/i3geo/ogc.php?tema=$id&layer=$id&request=getlegendgraphic&service=wms&format=image/jpeg' >Legenda </a>"; | |
87 | + //$legenda = "<a href=http://localhost >Legenda</a>"; | |
88 | + echo "<description><![CDATA[".$fonte.$legenda.$desc."]]></description>"; | |
81 | 89 | echo "<visibility>0</visibility>"; |
82 | 90 | echo "<Icon>"; |
83 | 91 | $l = $protocolo."/i3geo/ogc.php?tema=$id&width=1500&height=1500&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&STYLES=&BGCOLOR=0xFFFFFF&FORMAT=image/png&TRANSPARENT=TRUE&layers=$id"; | ... | ... |