Commit cfea1f238d7c6176d0e1017eceffb3b6dd91577e
1 parent
52e778e9
Exists in
master
and in
7 other branches
$1
Showing
18 changed files
with
833 additions
and
317 deletions
Show diff stats
aplicmap/geral1debianv6.map
@@ -21,6 +21,7 @@ MAP | @@ -21,6 +21,7 @@ MAP | ||
21 | SYMBOLSET "/var/www/i3geo/symbols/simbolosv6.sym" | 21 | SYMBOLSET "/var/www/i3geo/symbols/simbolosv6.sym" |
22 | SHAPEPATH "/var/www/geodados" | 22 | SHAPEPATH "/var/www/geodados" |
23 | IMAGECOLOR 104 171 195 | 23 | IMAGECOLOR 104 171 195 |
24 | + MAXSIZE 4096 | ||
24 | # | 25 | # |
25 | #Por default, o i3geo utiliza o tipo de imagem configurado em png2 | 26 | #Por default, o i3geo utiliza o tipo de imagem configurado em png2 |
26 | #Esse tipo nao e adequado para imagens raster, mas o i3geo muda automaticamente | 27 | #Esse tipo nao e adequado para imagens raster, mas o i3geo muda automaticamente |
aplicmap/geral1fedorav6.map
@@ -21,6 +21,7 @@ MAP | @@ -21,6 +21,7 @@ MAP | ||
21 | SYMBOLSET "/var/www/html/i3geo/symbols/simbolosv6.sym" | 21 | SYMBOLSET "/var/www/html/i3geo/symbols/simbolosv6.sym" |
22 | SHAPEPATH "/var/www/html/geodados" | 22 | SHAPEPATH "/var/www/html/geodados" |
23 | IMAGECOLOR 104 171 195 | 23 | IMAGECOLOR 104 171 195 |
24 | + MAXSIZE 4096 | ||
24 | # | 25 | # |
25 | #Por default, o i3geo utiliza o tipo de imagem configurado em png2 | 26 | #Por default, o i3geo utiliza o tipo de imagem configurado em png2 |
26 | #Esse tipo nao e adequado para imagens raster, mas o i3geo muda automaticamente | 27 | #Esse tipo nao e adequado para imagens raster, mas o i3geo muda automaticamente |
@@ -41,29 +42,29 @@ MAP | @@ -41,29 +42,29 @@ MAP | ||
41 | 42 | ||
42 | OUTPUTFORMAT | 43 | OUTPUTFORMAT |
43 | NAME 'AGG_Q' | 44 | NAME 'AGG_Q' |
44 | - DRIVER AGG/PNG | ||
45 | - IMAGEMODE RGB | ||
46 | - FORMATOPTION "QUANTIZE_FORCE=ON" | ||
47 | - FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
48 | - FORMATOPTION "QUANTIZE_COLORS=256" | 45 | + DRIVER AGG/PNG |
46 | + IMAGEMODE RGB | ||
47 | + FORMATOPTION "QUANTIZE_FORCE=ON" | ||
48 | + FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
49 | + FORMATOPTION "QUANTIZE_COLORS=256" | ||
49 | FORMATOPTION "INTERLACE=OFF" | 50 | FORMATOPTION "INTERLACE=OFF" |
50 | END | 51 | END |
51 | - | 52 | + |
52 | #OUTPUTFORMAT | 53 | #OUTPUTFORMAT |
53 | - # NAME svg | ||
54 | - # MIMETYPE "image/svg+xml" | ||
55 | - # DRIVER cairo/svg | ||
56 | - # #FORMATOPTION "COMPRESSED_OUTPUT=TRUE" | ||
57 | - # #FORMATOPTION "FULL_RESOLUTION=TRUE" | ||
58 | - #END | ||
59 | - | 54 | + # NAME svg |
55 | + # MIMETYPE "image/svg+xml" | ||
56 | + # DRIVER cairo/svg | ||
57 | + # #FORMATOPTION "COMPRESSED_OUTPUT=TRUE" | ||
58 | + # #FORMATOPTION "FULL_RESOLUTION=TRUE" | ||
59 | + #END | ||
60 | + | ||
60 | OUTPUTFORMAT | 61 | OUTPUTFORMAT |
61 | - NAME jpeg | ||
62 | - DRIVER "AGG/JPEG" | ||
63 | - MIMETYPE "image/jpeg" | ||
64 | - IMAGEMODE RGB | ||
65 | - EXTENSION jpg | ||
66 | - FORMATOPTION "INTERLACE=OFF" | 62 | + NAME jpeg |
63 | + DRIVER "AGG/JPEG" | ||
64 | + MIMETYPE "image/jpeg" | ||
65 | + IMAGEMODE RGB | ||
66 | + EXTENSION jpg | ||
67 | + FORMATOPTION "INTERLACE=OFF" | ||
67 | END | 68 | END |
68 | 69 | ||
69 | OUTPUTFORMAT | 70 | OUTPUTFORMAT |
@@ -75,7 +76,7 @@ MAP | @@ -75,7 +76,7 @@ MAP | ||
75 | TRANSPARENT FALSE | 76 | TRANSPARENT FALSE |
76 | FORMATOPTION "INTERLACE=OFF" | 77 | FORMATOPTION "INTERLACE=OFF" |
77 | END | 78 | END |
78 | - | 79 | + |
79 | OUTPUTFORMAT | 80 | OUTPUTFORMAT |
80 | NAME png2 | 81 | NAME png2 |
81 | MIMETYPE image/png | 82 | MIMETYPE image/png |
@@ -85,7 +86,7 @@ MAP | @@ -85,7 +86,7 @@ MAP | ||
85 | TRANSPARENT TRUE | 86 | TRANSPARENT TRUE |
86 | FORMATOPTION "INTERLACE=OFF" | 87 | FORMATOPTION "INTERLACE=OFF" |
87 | END | 88 | END |
88 | - | 89 | + |
89 | 90 | ||
90 | PROJECTION | 91 | PROJECTION |
91 | "+proj=longlat +ellps=GRS67 +no_defs" | 92 | "+proj=longlat +ellps=GRS67 +no_defs" |
@@ -121,7 +122,7 @@ MAP | @@ -121,7 +122,7 @@ MAP | ||
121 | REFERENCE | 122 | REFERENCE |
122 | COLOR -1 -1 -1 | 123 | COLOR -1 -1 -1 |
123 | EXTENT -75.5728 -37.4751 -30.525 7.57273 | 124 | EXTENT -75.5728 -37.4751 -30.525 7.57273 |
124 | - #-79.8713331401 -41.7736536401 -26.2264448599 11.8712346401 | 125 | + #-79.8713331401 -41.7736536401 -26.2264448599 11.8712346401 |
125 | #edite o caminho se a aplicacao for movida de lugar | 126 | #edite o caminho se a aplicacao for movida de lugar |
126 | IMAGE "/var/www/html/i3geo/imagens/referencia1.png" | 127 | IMAGE "/var/www/html/i3geo/imagens/referencia1.png" |
127 | OUTLINECOLOR -1 -1 -1 | 128 | OUTLINECOLOR -1 -1 -1 |
@@ -249,7 +250,7 @@ MAP | @@ -249,7 +250,7 @@ MAP | ||
249 | # END | 250 | # END |
250 | # END # CLASS | 251 | # END # CLASS |
251 | #END # LAYER | 252 | #END # LAYER |
252 | - | 253 | + |
253 | LAYER | 254 | LAYER |
254 | METADATA | 255 | METADATA |
255 | #"TEMA" "NAO" | 256 | #"TEMA" "NAO" |
aplicmap/geral1v6.map
@@ -21,6 +21,7 @@ MAP | @@ -21,6 +21,7 @@ MAP | ||
21 | SYMBOLSET "/opt/www/html/i3geo/symbols/simbolosv6.sym" | 21 | SYMBOLSET "/opt/www/html/i3geo/symbols/simbolosv6.sym" |
22 | SHAPEPATH "/opt/www/html/geodados" | 22 | SHAPEPATH "/opt/www/html/geodados" |
23 | IMAGECOLOR 104 171 195 | 23 | IMAGECOLOR 104 171 195 |
24 | + MAXSIZE 4096 | ||
24 | # | 25 | # |
25 | #Por default, o i3geo utiliza o tipo de imagem configurado em png2 | 26 | #Por default, o i3geo utiliza o tipo de imagem configurado em png2 |
26 | #Esse tipo nao e adequado para imagens raster, mas o i3geo muda automaticamente | 27 | #Esse tipo nao e adequado para imagens raster, mas o i3geo muda automaticamente |
@@ -39,28 +40,28 @@ MAP | @@ -39,28 +40,28 @@ MAP | ||
39 | #utilize o agg apenas com mapserver 5x | 40 | #utilize o agg apenas com mapserver 5x |
40 | OUTPUTFORMAT | 41 | OUTPUTFORMAT |
41 | NAME 'AGG_Q' | 42 | NAME 'AGG_Q' |
42 | - DRIVER AGG/PNG | ||
43 | - IMAGEMODE RGB | ||
44 | - FORMATOPTION "QUANTIZE_FORCE=ON" | ||
45 | - FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
46 | - FORMATOPTION "QUANTIZE_COLORS=256" | 43 | + DRIVER AGG/PNG |
44 | + IMAGEMODE RGB | ||
45 | + FORMATOPTION "QUANTIZE_FORCE=ON" | ||
46 | + FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
47 | + FORMATOPTION "QUANTIZE_COLORS=256" | ||
47 | FORMATOPTION "INTERLACE=OFF" | 48 | FORMATOPTION "INTERLACE=OFF" |
48 | END | 49 | END |
49 | - | 50 | + |
50 | OUTPUTFORMAT | 51 | OUTPUTFORMAT |
51 | - NAME svg | ||
52 | - MIMETYPE "image/svg+xml" | ||
53 | - DRIVER cairo/svg | ||
54 | - #FORMATOPTION "COMPRESSED_OUTPUT=TRUE" | ||
55 | - #FORMATOPTION "FULL_RESOLUTION=TRUE" | ||
56 | - END | 52 | + NAME svg |
53 | + MIMETYPE "image/svg+xml" | ||
54 | + DRIVER cairo/svg | ||
55 | + #FORMATOPTION "COMPRESSED_OUTPUT=TRUE" | ||
56 | + #FORMATOPTION "FULL_RESOLUTION=TRUE" | ||
57 | + END | ||
57 | OUTPUTFORMAT | 58 | OUTPUTFORMAT |
58 | - NAME jpeg | ||
59 | - DRIVER "AGG/JPEG" | ||
60 | - MIMETYPE "image/jpeg" | ||
61 | - IMAGEMODE RGB | ||
62 | - EXTENSION jpg | ||
63 | - FORMATOPTION "INTERLACE=OFF" | 59 | + NAME jpeg |
60 | + DRIVER "AGG/JPEG" | ||
61 | + MIMETYPE "image/jpeg" | ||
62 | + IMAGEMODE RGB | ||
63 | + EXTENSION jpg | ||
64 | + FORMATOPTION "INTERLACE=OFF" | ||
64 | END | 65 | END |
65 | 66 | ||
66 | OUTPUTFORMAT | 67 | OUTPUTFORMAT |
@@ -72,7 +73,7 @@ MAP | @@ -72,7 +73,7 @@ MAP | ||
72 | TRANSPARENT FALSE | 73 | TRANSPARENT FALSE |
73 | FORMATOPTION "INTERLACE=OFF" | 74 | FORMATOPTION "INTERLACE=OFF" |
74 | END | 75 | END |
75 | - | 76 | + |
76 | OUTPUTFORMAT | 77 | OUTPUTFORMAT |
77 | NAME png2 | 78 | NAME png2 |
78 | MIMETYPE image/png | 79 | MIMETYPE image/png |
@@ -115,7 +116,7 @@ MAP | @@ -115,7 +116,7 @@ MAP | ||
115 | END | 116 | END |
116 | REFERENCE | 117 | REFERENCE |
117 | COLOR -1 -1 -1 | 118 | COLOR -1 -1 -1 |
118 | - EXTENT -75.5728 -37.4751 -30.525 7.57273#-79.8713331401 -41.7736536401 -26.2264448599 11.8712346401 | 119 | + EXTENT -75.5728 -37.4751 -30.525 7.57273#-79.8713331401 -41.7736536401 -26.2264448599 11.8712346401 |
119 | #edite o caminho se a aplicacao for movida de lugar | 120 | #edite o caminho se a aplicacao for movida de lugar |
120 | IMAGE "/opt/www/html/i3geo/imagens/referencia1.png" | 121 | IMAGE "/opt/www/html/i3geo/imagens/referencia1.png" |
121 | OUTLINECOLOR -1 -1 -1 | 122 | OUTLINECOLOR -1 -1 -1 |
@@ -242,8 +243,8 @@ MAP | @@ -242,8 +243,8 @@ MAP | ||
242 | # END | 243 | # END |
243 | # END # CLASS | 244 | # END # CLASS |
244 | #END # LAYER | 245 | #END # LAYER |
245 | - | ||
246 | - | 246 | + |
247 | + | ||
247 | LAYER | 248 | LAYER |
248 | METADATA | 249 | METADATA |
249 | #"TEMA" "NAO" | 250 | #"TEMA" "NAO" |
aplicmap/geral1windowsv6.map
@@ -20,6 +20,7 @@ MAP | @@ -20,6 +20,7 @@ MAP | ||
20 | FONTSET "c:\ms4w\apache\htdocs\i3geo\symbols\fontes.txt" | 20 | FONTSET "c:\ms4w\apache\htdocs\i3geo\symbols\fontes.txt" |
21 | SYMBOLSET "c:\ms4w\apache\htdocs\i3geo\symbols\simbolosv6.sym" | 21 | SYMBOLSET "c:\ms4w\apache\htdocs\i3geo\symbols\simbolosv6.sym" |
22 | DEBUG OFF | 22 | DEBUG OFF |
23 | + MAXSIZE 4096 | ||
23 | #DEBUG 5 | 24 | #DEBUG 5 |
24 | #CONFIG "MS_ERRORFILE" "c:\ms4w\tmp\ms_error.txt" | 25 | #CONFIG "MS_ERRORFILE" "c:\ms4w\tmp\ms_error.txt" |
25 | 26 | ||
@@ -36,29 +37,29 @@ MAP | @@ -36,29 +37,29 @@ MAP | ||
36 | 37 | ||
37 | OUTPUTFORMAT | 38 | OUTPUTFORMAT |
38 | NAME 'AGG_Q' | 39 | NAME 'AGG_Q' |
39 | - DRIVER AGG/PNG | ||
40 | - IMAGEMODE RGB | ||
41 | - FORMATOPTION "QUANTIZE_FORCE=ON" | ||
42 | - FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
43 | - FORMATOPTION "QUANTIZE_COLORS=256" | 40 | + DRIVER AGG/PNG |
41 | + IMAGEMODE RGB | ||
42 | + FORMATOPTION "QUANTIZE_FORCE=ON" | ||
43 | + FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
44 | + FORMATOPTION "QUANTIZE_COLORS=256" | ||
44 | FORMATOPTION "INTERLACE=OFF" | 45 | FORMATOPTION "INTERLACE=OFF" |
45 | END | 46 | END |
46 | 47 | ||
47 | OUTPUTFORMAT | 48 | OUTPUTFORMAT |
48 | - NAME svg | ||
49 | - MIMETYPE "image/svg+xml" | ||
50 | - DRIVER cairo/svg | 49 | + NAME svg |
50 | + MIMETYPE "image/svg+xml" | ||
51 | + DRIVER cairo/svg | ||
51 | IMAGEMODE RGB | 52 | IMAGEMODE RGB |
52 | - #FORMATOPTION "COMPRESSED_OUTPUT=TRUE" | ||
53 | - #FORMATOPTION "FULL_RESOLUTION=TRUE" | ||
54 | - END | 53 | + #FORMATOPTION "COMPRESSED_OUTPUT=TRUE" |
54 | + #FORMATOPTION "FULL_RESOLUTION=TRUE" | ||
55 | + END | ||
55 | OUTPUTFORMAT | 56 | OUTPUTFORMAT |
56 | - NAME jpeg | ||
57 | - DRIVER "AGG/JPEG" | ||
58 | - #MIMETYPE "image/jpeg" | ||
59 | - IMAGEMODE RGB | ||
60 | - EXTENSION jpg | ||
61 | - FORMATOPTION "INTERLACE=OFF" | 57 | + NAME jpeg |
58 | + DRIVER "AGG/JPEG" | ||
59 | + #MIMETYPE "image/jpeg" | ||
60 | + IMAGEMODE RGB | ||
61 | + EXTENSION jpg | ||
62 | + FORMATOPTION "INTERLACE=OFF" | ||
62 | END | 63 | END |
63 | 64 | ||
64 | OUTPUTFORMAT | 65 | OUTPUTFORMAT |
aplicmap/ogcws.map
1 | MAP | 1 | MAP |
2 | - EXTENT -76.512593 -36.948432 -29.585185 7.046013 | ||
3 | - FONTSET "../symbols/fontes.txt" | ||
4 | - IMAGECOLOR 255 255 255 | ||
5 | - IMAGETYPE png | ||
6 | - SYMBOLSET "../symbols/simbolos.sym" | ||
7 | - SHAPEPATH "/opt/www/html/geodados" | ||
8 | - SIZE 450 450 | ||
9 | - STATUS ON | ||
10 | - UNITS METERS | ||
11 | - #CONFIG MS_NONSQUARE "YES" | ||
12 | - #CONFIG MS_ERRORFILE "/ms4w/tmp/ms_error.txt" | ||
13 | - NAME "i3geoogc" | ||
14 | - #DEBUG 5 | ||
15 | - OUTPUTFORMAT | ||
16 | - NAME "png" | ||
17 | - MIMETYPE "image/png" | ||
18 | - DRIVER "GD/PNG" | ||
19 | - EXTENSION "png" | ||
20 | - IMAGEMODE "RGBA" | ||
21 | - TRANSPARENT TRUE | ||
22 | - FORMATOPTION "INTERLACE=OFF" | ||
23 | - END | 2 | + EXTENT -76.512593 -36.948432 -29.585185 7.046013 |
3 | + FONTSET "../symbols/fontes.txt" | ||
4 | + IMAGECOLOR 255 255 255 | ||
5 | + MAXSIZE 4096 | ||
6 | + IMAGETYPE png | ||
7 | + SYMBOLSET "../symbols/simbolos.sym" | ||
8 | + SHAPEPATH "/opt/www/html/geodados" | ||
9 | + SIZE 450 450 | ||
10 | + STATUS ON | ||
11 | + UNITS METERS | ||
12 | + #CONFIG MS_NONSQUARE "YES" | ||
13 | + #CONFIG MS_ERRORFILE "/ms4w/tmp/ms_error.txt" | ||
14 | + NAME "i3geoogc" | ||
15 | + #DEBUG 5 | ||
16 | + OUTPUTFORMAT | ||
17 | + NAME "png" | ||
18 | + MIMETYPE "image/png" | ||
19 | + DRIVER "GD/PNG" | ||
20 | + EXTENSION "png" | ||
21 | + IMAGEMODE "RGBA" | ||
22 | + TRANSPARENT TRUE | ||
23 | + FORMATOPTION "INTERLACE=OFF" | ||
24 | + END | ||
24 | 25 | ||
25 | - PROJECTION | ||
26 | - "+proj=longlat +ellps=GRS67 +no_defs" | ||
27 | - END | ||
28 | - LEGEND | ||
29 | - IMAGECOLOR 255 255 255 | ||
30 | - KEYSIZE 10 10 | ||
31 | - KEYSPACING 5 5 | ||
32 | - LABEL | ||
33 | - ANGLE 0.000000 | ||
34 | - ANTIALIAS TRUE | ||
35 | - FONT "verdana" | ||
36 | - MAXSIZE 256 | ||
37 | - MINSIZE 4 | ||
38 | - SIZE 10 | ||
39 | - TYPE TRUETYPE | ||
40 | - BUFFER 0 | ||
41 | - COLOR 0 0 0 | ||
42 | - FORCE FALSE | ||
43 | - MINDISTANCE -1 | ||
44 | - MINFEATURESIZE -1 | ||
45 | - OFFSET 0 0 | ||
46 | - PARTIALS FALSE | ||
47 | - END | ||
48 | - POSITION UL | ||
49 | - STATUS ON | ||
50 | - END | 26 | + PROJECTION |
27 | + "+proj=longlat +ellps=GRS67 +no_defs" | ||
28 | + END | ||
29 | + LEGEND | ||
30 | + IMAGECOLOR 255 255 255 | ||
31 | + KEYSIZE 10 10 | ||
32 | + KEYSPACING 5 5 | ||
33 | + LABEL | ||
34 | + ANGLE 0.000000 | ||
35 | + ANTIALIAS TRUE | ||
36 | + FONT "verdana" | ||
37 | + MAXSIZE 256 | ||
38 | + MINSIZE 4 | ||
39 | + SIZE 10 | ||
40 | + TYPE TRUETYPE | ||
41 | + BUFFER 0 | ||
42 | + COLOR 0 0 0 | ||
43 | + FORCE FALSE | ||
44 | + MINDISTANCE -1 | ||
45 | + MINFEATURESIZE -1 | ||
46 | + OFFSET 0 0 | ||
47 | + PARTIALS FALSE | ||
48 | + END | ||
49 | + POSITION UL | ||
50 | + STATUS ON | ||
51 | + END | ||
51 | 52 | ||
52 | - QUERYMAP | ||
53 | - COLOR 255 255 0 | ||
54 | - SIZE -1 -1 | ||
55 | - STATUS OFF | ||
56 | - STYLE HILITE | ||
57 | - END | 53 | + QUERYMAP |
54 | + COLOR 255 255 0 | ||
55 | + SIZE -1 -1 | ||
56 | + STATUS OFF | ||
57 | + STYLE HILITE | ||
58 | + END | ||
58 | 59 | ||
59 | - SCALEBAR | ||
60 | - ALIGN CENTER | ||
61 | - COLOR 0 0 0 | ||
62 | - IMAGECOLOR 255 255 255 | ||
63 | - INTERVALS 4 | ||
64 | - LABEL | ||
65 | - SIZE MEDIUM | ||
66 | - TYPE BITMAP | ||
67 | - BUFFER 0 | ||
68 | - COLOR 0 0 0 | ||
69 | - FORCE FALSE | ||
70 | - MINDISTANCE -1 | ||
71 | - MINFEATURESIZE -1 | ||
72 | - OFFSET 0 0 | ||
73 | - PARTIALS TRUE | ||
74 | - END | ||
75 | - POSITION LL | ||
76 | - SIZE 200 3 | ||
77 | - STATUS OFF | ||
78 | - STYLE 0 | ||
79 | - UNITS MILES | ||
80 | - END | 60 | + SCALEBAR |
61 | + ALIGN CENTER | ||
62 | + COLOR 0 0 0 | ||
63 | + IMAGECOLOR 255 255 255 | ||
64 | + INTERVALS 4 | ||
65 | + LABEL | ||
66 | + SIZE MEDIUM | ||
67 | + TYPE BITMAP | ||
68 | + BUFFER 0 | ||
69 | + COLOR 0 0 0 | ||
70 | + FORCE FALSE | ||
71 | + MINDISTANCE -1 | ||
72 | + MINFEATURESIZE -1 | ||
73 | + OFFSET 0 0 | ||
74 | + PARTIALS TRUE | ||
75 | + END | ||
76 | + POSITION LL | ||
77 | + SIZE 200 3 | ||
78 | + STATUS OFF | ||
79 | + STYLE 0 | ||
80 | + UNITS MILES | ||
81 | + END | ||
81 | 82 | ||
82 | - WEB | ||
83 | - IMAGEPATH "/var/tmp/ms_tmp/" | ||
84 | - IMAGEURL "/ms_tmp/" | ||
85 | - METADATA | ||
86 | - #nao coloque texto com acentuacao aqui | ||
87 | - "ows_country" "Brasil" | ||
88 | - "ows_keywordlist" "i3Geo" | ||
89 | - "ows_context_fid" "i3geo" | ||
90 | - "ows_city" "Brasilia" | ||
91 | - "ows_contactperson" "Web Master" | ||
92 | - "ows_addresstype" "uri" | ||
93 | - "ows_context_version" "1.0.0" | ||
94 | - "ows_abstract" "Web services gerados da base de dados do i3Geo. Para chamar um tema especificamente, veja o sistema de ajuda, digitando no navegador web ogc.php?ajuda=, para uma lista compacta de todos os servicos, digite ogc.php?lista=temas" | ||
95 | - "ows_contactposition" "Administrador do sitio web" | ||
96 | - "ows_stateorprovince" "DF" | ||
97 | - "ows_contactorganization" "Coordenacao Geral de TI" | ||
98 | - "ows_name" "i3geoogc" | ||
99 | - "ows_accessconstraints" "vedado o uso comercial" | ||
100 | - "ows_fees" "none" | ||
101 | - "ows_contactelectronicmailaddress" "geoprocessamento@mma.gov.br" | ||
102 | - "ows_getcontext_enabled" "1" | ||
103 | - "ows_namespace_uri" "http://www.omsug.ca/osgis2004" | ||
104 | - "ows_address" "http://www.mma.gov.br" | ||
105 | - "ows_postcode" "" | ||
106 | - "ows_enable_request" "*" | ||
107 | - END | ||
108 | - QUERYFORMAT text/html | ||
109 | - LEGENDFORMAT text/html | ||
110 | - BROWSEFORMAT text/html | ||
111 | - TEMPLATE "none.htm" | ||
112 | - END | 83 | + WEB |
84 | + IMAGEPATH "/var/tmp/ms_tmp/" | ||
85 | + IMAGEURL "/ms_tmp/" | ||
86 | + METADATA | ||
87 | + #nao coloque texto com acentuacao aqui | ||
88 | + "ows_country" "Brasil" | ||
89 | + "ows_keywordlist" "i3Geo" | ||
90 | + "ows_context_fid" "i3geo" | ||
91 | + "ows_city" "Brasilia" | ||
92 | + "ows_contactperson" "Web Master" | ||
93 | + "ows_addresstype" "uri" | ||
94 | + "ows_context_version" "1.0.0" | ||
95 | + "ows_abstract" "Web services gerados da base de dados do i3Geo. Para chamar um tema especificamente, veja o sistema de ajuda, digitando no navegador web ogc.php?ajuda=, para uma lista compacta de todos os servicos, digite ogc.php?lista=temas" | ||
96 | + "ows_contactposition" "Administrador do sitio web" | ||
97 | + "ows_stateorprovince" "DF" | ||
98 | + "ows_contactorganization" "Coordenacao Geral de TI" | ||
99 | + "ows_name" "i3geoogc" | ||
100 | + "ows_accessconstraints" "vedado o uso comercial" | ||
101 | + "ows_fees" "none" | ||
102 | + "ows_contactelectronicmailaddress" "geoprocessamento@mma.gov.br" | ||
103 | + "ows_getcontext_enabled" "1" | ||
104 | + "ows_namespace_uri" "http://www.omsug.ca/osgis2004" | ||
105 | + "ows_address" "http://www.mma.gov.br" | ||
106 | + "ows_postcode" "" | ||
107 | + "ows_enable_request" "*" | ||
108 | + END | ||
109 | + QUERYFORMAT text/html | ||
110 | + LEGENDFORMAT text/html | ||
111 | + BROWSEFORMAT text/html | ||
112 | + TEMPLATE "none.htm" | ||
113 | + END | ||
113 | 114 | ||
114 | END | 115 | END |
aplicmap/ogcwsv6.map
1 | MAP | 1 | MAP |
2 | - EXTENT -76.512593 -36.948432 -29.585185 7.046013 | ||
3 | - FONTSET "../symbols/fontes.txt" | ||
4 | - SYMBOLSET "../symbols/simbolosv6.sym" | ||
5 | - IMAGECOLOR 255 255 255 | ||
6 | - IMAGETYPE png | ||
7 | - | ||
8 | - SHAPEPATH "/opt/www/html/geodados" | ||
9 | - SIZE 450 450 | ||
10 | - STATUS ON | ||
11 | - UNITS METERS | ||
12 | - #CONFIG MS_NONSQUARE "YES" | ||
13 | - #CONFIG MS_ERRORFILE "/ms4w/tmp/ms_error.txt" | ||
14 | - NAME "i3geoogc" | ||
15 | - DEBUG OFF | ||
16 | - #DEBUG 5 | 2 | + EXTENT -76.512593 -36.948432 -29.585185 7.046013 |
3 | + FONTSET "../symbols/fontes.txt" | ||
4 | + SYMBOLSET "../symbols/simbolosv6.sym" | ||
5 | + IMAGECOLOR 255 255 255 | ||
6 | + IMAGETYPE png | ||
7 | +MAXSIZE 4096 | ||
8 | + SHAPEPATH "/opt/www/html/geodados" | ||
9 | + SIZE 450 450 | ||
10 | + STATUS ON | ||
11 | + UNITS METERS | ||
12 | + #CONFIG MS_NONSQUARE "YES" | ||
13 | + #CONFIG MS_ERRORFILE "/ms4w/tmp/ms_error.txt" | ||
14 | + NAME "i3geoogc" | ||
15 | + DEBUG OFF | ||
16 | + #DEBUG 5 | ||
17 | OUTPUTFORMAT | 17 | OUTPUTFORMAT |
18 | NAME 'png' | 18 | NAME 'png' |
19 | MIMETYPE "image/png" | 19 | MIMETYPE "image/png" |
20 | - DRIVER AGG/PNG | ||
21 | - IMAGEMODE RGBA | ||
22 | - FORMATOPTION "QUANTIZE_FORCE=ON" | ||
23 | - FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
24 | - FORMATOPTION "QUANTIZE_COLORS=256" | 20 | + DRIVER AGG/PNG |
21 | + IMAGEMODE RGBA | ||
22 | + FORMATOPTION "QUANTIZE_FORCE=ON" | ||
23 | + FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
24 | + FORMATOPTION "QUANTIZE_COLORS=256" | ||
25 | FORMATOPTION "INTERLACE=OFF" | 25 | FORMATOPTION "INTERLACE=OFF" |
26 | TRANSPARENT TRUE | 26 | TRANSPARENT TRUE |
27 | END | 27 | END |
28 | - PROJECTION | ||
29 | - "+proj=longlat +ellps=GRS67 +no_defs" | ||
30 | - END | ||
31 | - LEGEND | ||
32 | - IMAGECOLOR 255 255 255 | ||
33 | - KEYSIZE 10 10 | ||
34 | - KEYSPACING 5 5 | ||
35 | - LABEL | ||
36 | - ANGLE 0.000000 | ||
37 | - ANTIALIAS TRUE | ||
38 | - FONT "verdana" | ||
39 | - MAXSIZE 256 | ||
40 | - MINSIZE 4 | ||
41 | - SIZE 10 | ||
42 | - TYPE TRUETYPE | ||
43 | - BUFFER 0 | ||
44 | - COLOR 0 0 0 | ||
45 | - FORCE FALSE | ||
46 | - MINDISTANCE -1 | ||
47 | - MINFEATURESIZE -1 | ||
48 | - OFFSET 0 0 | ||
49 | - PARTIALS FALSE | ||
50 | - END | ||
51 | - POSITION UL | ||
52 | - STATUS ON | ||
53 | - END | 28 | + PROJECTION |
29 | + "+proj=longlat +ellps=GRS67 +no_defs" | ||
30 | + END | ||
31 | + LEGEND | ||
32 | + IMAGECOLOR 255 255 255 | ||
33 | + KEYSIZE 10 10 | ||
34 | + KEYSPACING 5 5 | ||
35 | + LABEL | ||
36 | + ANGLE 0.000000 | ||
37 | + ANTIALIAS TRUE | ||
38 | + FONT "verdana" | ||
39 | + MAXSIZE 256 | ||
40 | + MINSIZE 4 | ||
41 | + SIZE 10 | ||
42 | + TYPE TRUETYPE | ||
43 | + BUFFER 0 | ||
44 | + COLOR 0 0 0 | ||
45 | + FORCE FALSE | ||
46 | + MINDISTANCE -1 | ||
47 | + MINFEATURESIZE -1 | ||
48 | + OFFSET 0 0 | ||
49 | + PARTIALS FALSE | ||
50 | + END | ||
51 | + POSITION UL | ||
52 | + STATUS ON | ||
53 | + END | ||
54 | 54 | ||
55 | - QUERYMAP | ||
56 | - COLOR 255 255 0 | ||
57 | - SIZE -1 -1 | ||
58 | - STATUS OFF | ||
59 | - STYLE HILITE | ||
60 | - END | 55 | + QUERYMAP |
56 | + COLOR 255 255 0 | ||
57 | + SIZE -1 -1 | ||
58 | + STATUS OFF | ||
59 | + STYLE HILITE | ||
60 | + END | ||
61 | 61 | ||
62 | - SCALEBAR | ||
63 | - ALIGN CENTER | ||
64 | - COLOR 0 0 0 | ||
65 | - IMAGECOLOR 255 255 255 | ||
66 | - INTERVALS 4 | ||
67 | - LABEL | ||
68 | - SIZE MEDIUM | ||
69 | - TYPE BITMAP | ||
70 | - BUFFER 0 | ||
71 | - COLOR 0 0 0 | ||
72 | - FORCE FALSE | ||
73 | - MINDISTANCE -1 | ||
74 | - MINFEATURESIZE -1 | ||
75 | - OFFSET 0 0 | ||
76 | - PARTIALS TRUE | ||
77 | - END | ||
78 | - POSITION LL | ||
79 | - SIZE 200 3 | ||
80 | - STATUS OFF | ||
81 | - STYLE 0 | ||
82 | - UNITS MILES | ||
83 | - END | 62 | + SCALEBAR |
63 | + ALIGN CENTER | ||
64 | + COLOR 0 0 0 | ||
65 | + IMAGECOLOR 255 255 255 | ||
66 | + INTERVALS 4 | ||
67 | + LABEL | ||
68 | + SIZE MEDIUM | ||
69 | + TYPE BITMAP | ||
70 | + BUFFER 0 | ||
71 | + COLOR 0 0 0 | ||
72 | + FORCE FALSE | ||
73 | + MINDISTANCE -1 | ||
74 | + MINFEATURESIZE -1 | ||
75 | + OFFSET 0 0 | ||
76 | + PARTIALS TRUE | ||
77 | + END | ||
78 | + POSITION LL | ||
79 | + SIZE 200 3 | ||
80 | + STATUS OFF | ||
81 | + STYLE 0 | ||
82 | + UNITS MILES | ||
83 | + END | ||
84 | 84 | ||
85 | - WEB | ||
86 | - IMAGEPATH "/var/tmp/ms_tmp/" | ||
87 | - IMAGEURL "/ms_tmp/" | ||
88 | - #nao coloque texto com acentuacao aqui | ||
89 | - METADATA | ||
90 | - "ows_country" "Brasil" | ||
91 | - "ows_keywordlist" "i3Geo" | ||
92 | - "ows_context_fid" "i3geo" | ||
93 | - "ows_city" "Brasilia" | ||
94 | - "ows_contactperson" "Web Master" | ||
95 | - "ows_addresstype" "uri" | ||
96 | - "ows_context_version" "1.1.0" | ||
97 | - "wms_getcapabilities_version" "1.1.0" | ||
98 | - "ows_abstract" "Web services gerados da base de dados do i3Geo. Para chamar um tema especificamente, veja o sistema de ajuda, digitando no navegador web ogc.php?ajuda=, para uma lista compacta de todos os servicos, digite ogc.php?lista=temas" | ||
99 | - "ows_contactposition" "Administrador do sitio web" | ||
100 | - "ows_stateorprovince" "DF" | ||
101 | - "ows_contactorganization" "Coordenacao Geral de TI" | ||
102 | - "ows_name" "i3geoogc" | ||
103 | - "ows_accessconstraints" "vedado o uso comercial" | ||
104 | - "ows_fees" "none" | ||
105 | - "ows_contactelectronicmailaddress" "" | ||
106 | - "ows_getcontext_enabled" "1" | ||
107 | - "ows_namespace_uri" "http://www.omsug.ca/osgis2004" | ||
108 | - "ows_address" "http://www.mma.gov.br" | ||
109 | - "ows_postcode" "" | ||
110 | - "ows_enable_request" "*" | ||
111 | - END | ||
112 | - QUERYFORMAT text/html | ||
113 | - LEGENDFORMAT text/html | ||
114 | - BROWSEFORMAT text/html | ||
115 | - TEMPLATE "none.htm" | ||
116 | - END | 85 | + WEB |
86 | + IMAGEPATH "/var/tmp/ms_tmp/" | ||
87 | + IMAGEURL "/ms_tmp/" | ||
88 | + #nao coloque texto com acentuacao aqui | ||
89 | + METADATA | ||
90 | + "ows_country" "Brasil" | ||
91 | + "ows_keywordlist" "i3Geo" | ||
92 | + "ows_context_fid" "i3geo" | ||
93 | + "ows_city" "Brasilia" | ||
94 | + "ows_contactperson" "Web Master" | ||
95 | + "ows_addresstype" "uri" | ||
96 | + "ows_context_version" "1.1.0" | ||
97 | + "wms_getcapabilities_version" "1.1.0" | ||
98 | + "ows_abstract" "Web services gerados da base de dados do i3Geo. Para chamar um tema especificamente, veja o sistema de ajuda, digitando no navegador web ogc.php?ajuda=, para uma lista compacta de todos os servicos, digite ogc.php?lista=temas" | ||
99 | + "ows_contactposition" "Administrador do sitio web" | ||
100 | + "ows_stateorprovince" "DF" | ||
101 | + "ows_contactorganization" "Coordenacao Geral de TI" | ||
102 | + "ows_name" "i3geoogc" | ||
103 | + "ows_accessconstraints" "vedado o uso comercial" | ||
104 | + "ows_fees" "none" | ||
105 | + "ows_contactelectronicmailaddress" "" | ||
106 | + "ows_getcontext_enabled" "1" | ||
107 | + "ows_namespace_uri" "http://www.omsug.ca/osgis2004" | ||
108 | + "ows_address" "http://www.mma.gov.br" | ||
109 | + "ows_postcode" "" | ||
110 | + "ows_enable_request" "*" | ||
111 | + END | ||
112 | + QUERYFORMAT text/html | ||
113 | + LEGENDFORMAT text/html | ||
114 | + BROWSEFORMAT text/html | ||
115 | + TEMPLATE "none.htm" | ||
116 | + END | ||
117 | 117 | ||
118 | END | 118 | END |
classesphp/classe_alteraclasse.php
@@ -728,6 +728,7 @@ Include: | @@ -728,6 +728,7 @@ Include: | ||
728 | include_once($this->locaplic."/class.palette.php"); | 728 | include_once($this->locaplic."/class.palette.php"); |
729 | else | 729 | else |
730 | include_once("class.palette.php"); | 730 | include_once("class.palette.php"); |
731 | + | ||
731 | $cori = RGB2hex(explode(",",$cori)); | 732 | $cori = RGB2hex(explode(",",$cori)); |
732 | $corf = RGB2hex(explode(",",$corf)); | 733 | $corf = RGB2hex(explode(",",$corf)); |
733 | $numclasses = $this->layer->numclasses; | 734 | $numclasses = $this->layer->numclasses; |
ferramentas/saiku/cartograma.php
@@ -5,9 +5,11 @@ if(empty($_POST["g_sid"])){ | @@ -5,9 +5,11 @@ if(empty($_POST["g_sid"])){ | ||
5 | } | 5 | } |
6 | include(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); | 6 | include(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); |
7 | include(dirname(__FILE__)."/../../admin/php/classe_metaestat.php"); | 7 | include(dirname(__FILE__)."/../../admin/php/classe_metaestat.php"); |
8 | +include_once(dirname(__FILE__)."/../../classesphp/classe_estatistica.php"); | ||
8 | if(!isset($dir_tmp)){ | 9 | if(!isset($dir_tmp)){ |
9 | include(dirname(__FILE__)."/../../ms_configura.php"); | 10 | include(dirname(__FILE__)."/../../ms_configura.php"); |
10 | } | 11 | } |
12 | + | ||
11 | //pega o filtro da sessao PHP aberta pelo i3Geo | 13 | //pega o filtro da sessao PHP aberta pelo i3Geo |
12 | session_name("i3GeoPHP"); | 14 | session_name("i3GeoPHP"); |
13 | session_id($_POST["g_sid"]); | 15 | session_id($_POST["g_sid"]); |
@@ -15,6 +17,7 @@ session_start(); | @@ -15,6 +17,7 @@ session_start(); | ||
15 | //obtem os layers que sao do sistema metaestat, sao regioes e que possuem selecao | 17 | //obtem os layers que sao do sistema metaestat, sao regioes e que possuem selecao |
16 | $map_file = $_SESSION["map_file"]; | 18 | $map_file = $_SESSION["map_file"]; |
17 | $dados = (array) json_decode($_POST["dados"],true); | 19 | $dados = (array) json_decode($_POST["dados"],true); |
20 | +$opcoes = (array) json_decode($_POST["opcoes"],true); | ||
18 | 21 | ||
19 | $metadados = (array) json_decode($_POST["metadados"],true); | 22 | $metadados = (array) json_decode($_POST["metadados"],true); |
20 | $nmetadados = count($metadados); | 23 | $nmetadados = count($metadados); |
@@ -39,16 +42,29 @@ $titulolayer = mb_convert_encoding($titulolayer,"ISO-8859-1",mb_detect_encoding( | @@ -39,16 +42,29 @@ $titulolayer = mb_convert_encoding($titulolayer,"ISO-8859-1",mb_detect_encoding( | ||
39 | $conexao = $m->listaConexao($meta["codigo_estat_conexao"],true); | 42 | $conexao = $m->listaConexao($meta["codigo_estat_conexao"],true); |
40 | $conexao = "user=".$conexao["usuario"]." password=".$conexao["senha"]." dbname=".$conexao["bancodedados"]." host=".$conexao["host"]." port=".$conexao["porta"].""; | 43 | $conexao = "user=".$conexao["usuario"]." password=".$conexao["senha"]." dbname=".$conexao["bancodedados"]." host=".$conexao["host"]." port=".$conexao["porta"].""; |
41 | $colunageo = $meta["colunageo"]; | 44 | $colunageo = $meta["colunageo"]; |
45 | +$sqlColunaGeo = $meta["colunageo"]; | ||
42 | $srid = $meta["srid"]; | 46 | $srid = $meta["srid"]; |
43 | $colunastabela = $m->colunasTabela($meta["codigo_estat_conexao"],$meta["esquemadb"],$meta["tabela"],"geometry","!="); | 47 | $colunastabela = $m->colunasTabela($meta["codigo_estat_conexao"],$meta["esquemadb"],$meta["tabela"],"geometry","!="); |
44 | - | ||
45 | - | 48 | +$tipoLayer = "POLYGON"; |
49 | +//define a coluna geo correta | ||
50 | +if($opcoes["tipo"] == "raiosProporcionais" || $opcoes["tipo"] == "circulosProporcionais"){ | ||
51 | + if($meta["colunacentroide"] != ""){ | ||
52 | + $colunageo = $meta["colunacentroide"]; | ||
53 | + $sqlColunaGeo = $meta["colunacentroide"]; | ||
54 | + } | ||
55 | + else{ | ||
56 | + $sqlColunaGeo = "st_centroid(".$meta["colunageo"].")"; | ||
57 | + } | ||
58 | + $tipoLayer = "POINT"; | ||
59 | +} | ||
60 | +//var_dump($metadados);exit; | ||
46 | //constroi um sql que retorna os dados na forma de uma tabela inline | 61 | //constroi um sql que retorna os dados na forma de uma tabela inline |
47 | $nomesColunas = array(); | 62 | $nomesColunas = array(); |
48 | $valores = array(); | 63 | $valores = array(); |
49 | for($i=0;$i<$nmetadados;$i++){ | 64 | for($i=0;$i<$nmetadados;$i++){ |
50 | - $nomesColunas[] = $metadados[$i]["colName"]; | ||
51 | - //$valores[$metadados[$i]["colName"]] = array(); | 65 | + if($metadados[$i]["colName"] != ""){ |
66 | + $nomesColunas[] = $metadados[$i]["colName"]; | ||
67 | + } | ||
52 | } | 68 | } |
53 | $nomesColunas[0] = "geocodigo"; | 69 | $nomesColunas[0] = "geocodigo"; |
54 | $codigosRegioes = array(); | 70 | $codigosRegioes = array(); |
@@ -63,37 +79,176 @@ foreach($dados as $dado){ | @@ -63,37 +79,176 @@ foreach($dados as $dado){ | ||
63 | $valores[] = "(".implode(",",$linha).")"; | 79 | $valores[] = "(".implode(",",$linha).")"; |
64 | } | 80 | } |
65 | $sqldados = " | 81 | $sqldados = " |
66 | - select st_setsrid(".$colunageo.",".$srid.") as $colunageo, ".implode(",",$colunastabela).",dataset.* | ||
67 | - from ".$meta["esquemadb"].".".$meta["tabela"]." INNER JOIN | 82 | + select st_setsrid(".$sqlColunaGeo.",".$srid.") as $colunageo, ".implode(",",$colunastabela).",dataset.* |
83 | + from ".$meta["esquemadb"].".".$meta["tabela"]." INNER JOIN | ||
68 | (values ".implode(",",$valores).') as dataset ("'.implode('","',$nomesColunas).'") ON geocodigo = '.$meta["identificador"]; | 84 | (values ".implode(",",$valores).') as dataset ("'.implode('","',$nomesColunas).'") ON geocodigo = '.$meta["identificador"]; |
69 | $sqlmapa = $colunageo." from ($sqldados) as foo using unique gid using srid=$srid"; | 85 | $sqlmapa = $colunageo." from ($sqldados) as foo using unique gid using srid=$srid"; |
70 | $mapa = ms_newMapObj($map_file); | 86 | $mapa = ms_newMapObj($map_file); |
71 | -$layer = ms_newLayerObj($mapa); | 87 | +$nlayers = $mapa->numlayers; |
88 | +for($i=0;$i<$nlayers;$i++){ | ||
89 | + $ll = $mapa->getlayer($i); | ||
90 | + if($ll->getmetadata("SAIKU") == $opcoes["tipo"]){ | ||
91 | + $ll->set("status",MS_DELETE); | ||
92 | + } | ||
93 | + else{ | ||
94 | + if($ll->getmetadata("SAIKU") != ""){ | ||
95 | + $ll->set("status",MS_OFF); | ||
96 | + } | ||
97 | + } | ||
98 | +} | ||
72 | 99 | ||
100 | +$layer = ms_newLayerObj($mapa); | ||
101 | +$nomeLayer = nomeRandomico(); | ||
73 | $l = array(); | 102 | $l = array(); |
74 | $l[] = "LAYER"; | 103 | $l[] = "LAYER"; |
75 | -$l[] = ' NAME "'.nomeRandomico().'"'; | ||
76 | -$l[] = " TYPE POLYGON"; | 104 | +$l[] = ' NAME "'.$nomeLayer.'"'; |
105 | +$l[] = " TYPE $tipoLayer"; | ||
77 | $l[] = " DATA '".$sqlmapa."'"; | 106 | $l[] = " DATA '".$sqlmapa."'"; |
78 | $l[] = ' CONNECTION "'.$conexao.'"'; | 107 | $l[] = ' CONNECTION "'.$conexao.'"'; |
79 | $l[] = ' CONNECTIONTYPE POSTGIS'; | 108 | $l[] = ' CONNECTIONTYPE POSTGIS'; |
80 | $l[] = ' TEMPLATE "none.htm"'; | 109 | $l[] = ' TEMPLATE "none.htm"'; |
81 | $l[] = ' STATUS DEFAULT'; | 110 | $l[] = ' STATUS DEFAULT'; |
82 | $l[] = ' METADATA'; | 111 | $l[] = ' METADATA'; |
83 | -$l[] = ' TEMA "'.$titulolayer.' '.$_POST["tipo"].'"'; | 112 | +$l[] = ' TEMA "'.$titulolayer.' - '.$nomesColunas[1].' - '.$opcoes["tipo"].'"'; |
84 | $l[] = ' CLASSE "SIM"'; | 113 | $l[] = ' CLASSE "SIM"'; |
85 | -$l[] = ' SAIKU "SIM"'; | 114 | +$l[] = ' SAIKU "'.$opcoes["tipo"].'"'; |
86 | $l[] = ' TIP "'.$meta["colunanomeregiao"].','.implode(',',$nomesColunas).'"'; | 115 | $l[] = ' TIP "'.$meta["colunanomeregiao"].','.implode(',',$nomesColunas).'"'; |
87 | -$l[] = ' END'; | ||
88 | -$l[] = ' CLASS'; | ||
89 | -$l[] = ' NAME ""'; | ||
90 | -$l[] = ' STYLE'; | ||
91 | -$l[] = ' OUTLINECOLOR 0 255 0'; | ||
92 | -$l[] = ' COLOR 0 0 255'; | ||
93 | -$l[] = ' END'; | ||
94 | -$l[] = ' END'; | ||
95 | -$l[] = 'END'; | ||
96 | -$layer->updateFromString(implode(" ",$l)); | 116 | +$l[] = ' METAESTAT_CODIGO_TIPO_REGIAO "'.$codigo_tipo_regiao.'"'; |
117 | +$l[] = ' END '; | ||
118 | +$l = implode("",$l); | ||
119 | +if($opcoes["tipo"] == "raiosProporcionais"){ | ||
120 | + $l .= implode(" ",raiosProporcionais(1,$nomesColunas[1])); | ||
121 | +} | ||
122 | +if($opcoes["tipo"] == "circulosProporcionais"){ | ||
123 | + $l .= ' OPACITY 50'; | ||
124 | + $l .= implode(" ",circulosProporcionais(1,$nomesColunas[1])); | ||
125 | +} | ||
126 | +if($opcoes["tipo"] == "coresChapadas"){ | ||
127 | + $l .= ' OPACITY 50'; | ||
128 | + $l .= implode(" ",coresChapadas(1,$nomesColunas[1])); | ||
129 | +} | ||
130 | +$l .= 'END'; | ||
131 | +//echo $l;exit; | ||
132 | +$layer->updateFromString($l); | ||
97 | 133 | ||
98 | $mapa->save($map_file); | 134 | $mapa->save($map_file); |
135 | + | ||
136 | +if($opcoes["tipo"] == "coresChapadas"){ | ||
137 | + include(dirname(__FILE__)."/../../classesphp/classe_alteraclasse.php"); | ||
138 | + $m = new Alteraclasse($map_file,$nomeLayer); | ||
139 | + $cor = $opcoes["cores"][0]; | ||
140 | + $cori = $cor["red"].','.$cor["green"].','.$cor["blue"]; | ||
141 | + $cor = $opcoes["cores"][1]; | ||
142 | + $corf = $cor["red"].','.$cor["green"].','.$cor["blue"]; | ||
143 | + $retorno = $m->alteraCoresClasses($cori,$corf); | ||
144 | + $m->salva(); | ||
145 | +} | ||
146 | + | ||
147 | +header("Location:".$opcoes["locaplic"]."/mashups/openlayers.php?temas=".$map_file."&DESLIGACACHE=sim&botoes=legenda,pan,zoombox,zoomtot,zoomin,zoomout,distancia,area,identifica&controles=navigation,layerswitcher,scaleline,mouseposition,overviewmap,keyboarddefaults&tiles=false&mapext=".$opcoes["mapext"]); | ||
148 | + | ||
149 | +function coresChapadas($coluna,$nomeColuna){ | ||
150 | + global $opcoes; | ||
151 | + $valores = retornaDadosColuna($coluna); | ||
152 | + $cortes = quartis($valores,$nomeColuna); | ||
153 | + //var_dump($cortes);exit; | ||
154 | + $nclasses = count($cortes["nomes"]); | ||
155 | + $classes = array(); | ||
156 | + $size = 10; | ||
157 | + for($i=0;$i<$nclasses;$i++){ | ||
158 | + $nome = $cortes["nomes"][$i]; | ||
159 | + $exp = $cortes["exp"][$i]; | ||
160 | + $classes[] = PHP_EOL.'CLASS'; | ||
161 | + $classes[] = ' NAME "'.$nome.'"'; | ||
162 | + $classes[] = ' EXPRESSION '.$exp; | ||
163 | + $classes[] = ' STYLE'; | ||
164 | + $cor = $opcoes["cores"][0]; | ||
165 | + $classes[] = ' COLOR '.$cor["red"].' '.$cor["green"].' '.$cor["blue"]; | ||
166 | + $classes[] = ' SIZE '.($opcoes["size"] * $i); | ||
167 | + $classes[] = ' OUTLINECOLOR 255 255 255'; | ||
168 | + $classes[] = ' END'; | ||
169 | + $classes[] = 'END '; | ||
170 | + } | ||
171 | + return $classes; | ||
172 | +} | ||
173 | +function raiosProporcionais($coluna,$nomeColuna){ | ||
174 | + global $opcoes; | ||
175 | + $valores = retornaDadosColuna($coluna); | ||
176 | + $cortes = quartis($valores,$nomeColuna); | ||
177 | + //var_dump($cortes);exit; | ||
178 | + $nclasses = count($cortes["nomes"]); | ||
179 | + $classes = array(); | ||
180 | + $size = 10; | ||
181 | + for($i=0;$i<$nclasses;$i++){ | ||
182 | + $nome = $cortes["nomes"][$i]; | ||
183 | + $exp = $cortes["exp"][$i]; | ||
184 | + $classes[] = PHP_EOL.'CLASS'; | ||
185 | + $classes[] = ' NAME "'.$nome.'"'; | ||
186 | + $classes[] = ' EXPRESSION '.$exp; | ||
187 | + $classes[] = ' STYLE'; | ||
188 | + $cor = $opcoes["cores"][0]; | ||
189 | + $classes[] = ' OUTLINECOLOR '.$cor["red"].' '.$cor["green"].' '.$cor["blue"]; | ||
190 | + $classes[] = ' WIDTH 2'; | ||
191 | + $classes[] = ' SYMBOL "ponto"'; | ||
192 | + $classes[] = ' SIZE '.($opcoes["size"] * $i); | ||
193 | + $classes[] = ' COLOR -1 -1 -1'; | ||
194 | + $classes[] = ' END'; | ||
195 | + $classes[] = 'END '; | ||
196 | + } | ||
197 | + return $classes; | ||
198 | +} | ||
199 | +function circulosProporcionais($coluna,$nomeColuna){ | ||
200 | + global $opcoes; | ||
201 | + $valores = retornaDadosColuna($coluna); | ||
202 | + $cortes = quartis($valores,$nomeColuna); | ||
203 | + //var_dump($cortes);exit; | ||
204 | + $nclasses = count($cortes["nomes"]); | ||
205 | + $classes = array(); | ||
206 | + $size = 10; | ||
207 | + for($i=0;$i<$nclasses;$i++){ | ||
208 | + $nome = $cortes["nomes"][$i]; | ||
209 | + $exp = $cortes["exp"][$i]; | ||
210 | + $classes[] = PHP_EOL.'CLASS'; | ||
211 | + $classes[] = ' NAME "'.$nome.'"'; | ||
212 | + $classes[] = ' EXPRESSION '.$exp; | ||
213 | + $classes[] = ' STYLE'; | ||
214 | + $cor = $opcoes["cores"][0]; | ||
215 | + $classes[] = ' COLOR '.$cor["red"].' '.$cor["green"].' '.$cor["blue"]; | ||
216 | + $classes[] = ' WIDTH 1'; | ||
217 | + $classes[] = ' SYMBOL "ponto"'; | ||
218 | + $classes[] = ' SIZE '.($opcoes["size"] * $i); | ||
219 | + $classes[] = ' OUTLINECOLOR 255 255 255'; | ||
220 | + $classes[] = ' END'; | ||
221 | + $classes[] = 'END '; | ||
222 | + } | ||
223 | + return $classes; | ||
224 | +} | ||
225 | + | ||
226 | +function quartis($valores,$nomeColuna){ | ||
227 | + $estat = new estatistica(); | ||
228 | + $estat->calcula($valores); | ||
229 | + $calc = $estat->resultado; | ||
230 | + $nomes = array(); | ||
231 | + $expressao = array(); | ||
232 | + $expressao[] = "([".$nomeColuna."]<=".($calc["quartil1"]).")"; | ||
233 | + $expressao[] = "(([".$nomeColuna."]>".($calc["quartil1"]).")and([".$nomeColuna."]<=".($calc["quartil2"])."))"; | ||
234 | + if($calc["quartil3"] != 0){ | ||
235 | + $expressao[] = "(([".$nomeColuna."]>".($calc["quartil2"]).")and([".$nomeColuna."]<=".($calc["quartil3"])."))"; | ||
236 | + $expressao[] = "([".$nomeColuna."]>".($calc["quartil3"]).")"; | ||
237 | + } | ||
238 | + $nomes[] = "Q1 valor <= ".($calc["quartil1"]); | ||
239 | + $nomes[] = "Q2 valor > ".($calc["quartil1"])." e valor <= ".($calc["quartil2"]); | ||
240 | + if($calc["quartil3"] != 0){ | ||
241 | + $nomes[] = "Q3 valor > ".($calc["quartil2"])." e valor <= ".($calc["quartil3"]); | ||
242 | + $nomes[] = "Q4 valor > ".($calc["quartil3"]); | ||
243 | + } | ||
244 | + return array("nomes"=>$nomes,"exp"=>$expressao); | ||
245 | +} | ||
246 | +function retornaDadosColuna($coluna){ | ||
247 | + global $dados; | ||
248 | + $valores = array(); | ||
249 | + foreach($dados as $dado){ | ||
250 | + $valores[] = $dado[$coluna]; | ||
251 | + } | ||
252 | + return $valores; | ||
253 | +} | ||
99 | ?> | 254 | ?> |
ferramentas/saiku/dicionario.js
1 | //+$trad(1,i3GEOF.saiku.dicionario)+ | 1 | //+$trad(1,i3GEOF.saiku.dicionario)+ |
2 | i3GEOF.saiku.dicionario = { | 2 | i3GEOF.saiku.dicionario = { |
3 | 1: [{ | 3 | 1: [{ |
4 | - pt:"Você pode selecionar elementos de camadas com localidades e que tenham origem no sistema de metadados estatísticos. Caso essa camada não possua nenhum elemento selecionado, todos serão considerados. Para adicionar uma camada desse tipo utilize a opção <i>Limites e localidades</i> existente no catálogo de temas.", | 4 | + pt:"Você pode selecionar elementos de camadas com localidades e que tenham origem no sistema de metadados estatísticos. Caso essa camada não possua nenhum elemento selecionado, todos serão considerados. Para adicionar uma camada desse tipo utilize a opção <i>Limites e localidades</i> existente no catálogo de temas.<br>Atualize o mapa quando for criado algum mapa dentro da interface SAIKU.", |
5 | en:"", | 5 | en:"", |
6 | es:"", | 6 | es:"", |
7 | it:"" | 7 | it:"" |
@@ -17,5 +17,11 @@ i3GEOF.saiku.dicionario = { | @@ -17,5 +17,11 @@ i3GEOF.saiku.dicionario = { | ||
17 | en:"", | 17 | en:"", |
18 | es:"", | 18 | es:"", |
19 | it:"" | 19 | it:"" |
20 | + }], | ||
21 | + 4: [{ | ||
22 | + pt:"Atualiza o mapa", | ||
23 | + en:"", | ||
24 | + es:"", | ||
25 | + it:"" | ||
20 | }] | 26 | }] |
21 | }; | 27 | }; |
ferramentas/saiku/esquemaxml.php
@@ -8,11 +8,11 @@ include(dirname(__FILE__)."/../../admin/php/classe_metaestat.php"); | @@ -8,11 +8,11 @@ include(dirname(__FILE__)."/../../admin/php/classe_metaestat.php"); | ||
8 | if(!isset($dir_tmp)){ | 8 | if(!isset($dir_tmp)){ |
9 | include(dirname(__FILE__)."/../../ms_configura.php"); | 9 | include(dirname(__FILE__)."/../../ms_configura.php"); |
10 | } | 10 | } |
11 | -//pega o filtro da sessao PHP aberta pelo i3Geo | 11 | +//pega a sessao PHP aberta pelo i3Geo |
12 | session_name("i3GeoPHP"); | 12 | session_name("i3GeoPHP"); |
13 | session_id($_GET["g_sid"]); | 13 | session_id($_GET["g_sid"]); |
14 | session_start(); | 14 | session_start(); |
15 | -//obtem os layers que sao do sistema metaestat, sao regioes e que possuem selecao | 15 | + |
16 | $map_file = $_SESSION["map_file"]; | 16 | $map_file = $_SESSION["map_file"]; |
17 | $nomeConexao = nomeRandomico(); | 17 | $nomeConexao = nomeRandomico(); |
18 | $nomeDatasource = $dir_tmp."/saiku-datasources/".$nomeConexao; | 18 | $nomeDatasource = $dir_tmp."/saiku-datasources/".$nomeConexao; |
@@ -55,13 +55,15 @@ password={$saikuConfigDataSource["password"]} | @@ -55,13 +55,15 @@ password={$saikuConfigDataSource["password"]} | ||
55 | gravaDados(array($stringDatasource),$nomeDatasource); | 55 | gravaDados(array($stringDatasource),$nomeDatasource); |
56 | $m = new Metaestat(); | 56 | $m = new Metaestat(); |
57 | $selecaoRegiao = array(); | 57 | $selecaoRegiao = array(); |
58 | +//obtem os layers que sao do sistema metaestat, sao regioes e que possuem selecao | ||
58 | $mapa = ms_newMapObj($map_file); | 59 | $mapa = ms_newMapObj($map_file); |
59 | $c = $mapa->numlayers; | 60 | $c = $mapa->numlayers; |
61 | +$codigo_tipo_regiao = ""; | ||
60 | for ($i=0;$i < $c;++$i){ | 62 | for ($i=0;$i < $c;++$i){ |
61 | $l = $mapa->getlayer($i); | 63 | $l = $mapa->getlayer($i); |
62 | $registros = array(); | 64 | $registros = array(); |
63 | - $codigo_tipo_regiao = $l->getmetadata("METAESTAT_CODIGO_TIPO_REGIAO"); | ||
64 | - if($codigo_tipo_regiao != "" && $l->getmetadata("METAESTAT_ID_MEDIDA_VARIAVEL") == ""){ | 65 | + if($l->status == MS_DEFAULT && $l->getmetadata("METAESTAT_CODIGO_TIPO_REGIAO") != ""){ |
66 | + $codigo_tipo_regiao = $l->getmetadata("METAESTAT_CODIGO_TIPO_REGIAO"); | ||
65 | //verifica se tem selecao | 67 | //verifica se tem selecao |
66 | $qyfile = dirname($map_file)."/".$l->name.".php"; | 68 | $qyfile = dirname($map_file)."/".$l->name.".php"; |
67 | if(file_exists($qyfile)){ | 69 | if(file_exists($qyfile)){ |
@@ -84,6 +86,10 @@ for ($i=0;$i < $c;++$i){ | @@ -84,6 +86,10 @@ for ($i=0;$i < $c;++$i){ | ||
84 | } | 86 | } |
85 | } | 87 | } |
86 | } | 88 | } |
89 | +if($codigo_tipo_regiao == ""){ | ||
90 | + echo "Nenhum tema com limites ou localidades foi encontrado"; | ||
91 | + exit; | ||
92 | +} | ||
87 | $regiao = ""; | 93 | $regiao = ""; |
88 | $item = ""; | 94 | $item = ""; |
89 | $registros = ""; | 95 | $registros = ""; |
@@ -317,7 +323,7 @@ error_reporting(0); | @@ -317,7 +323,7 @@ error_reporting(0); | ||
317 | ob_end_clean(); | 323 | ob_end_clean(); |
318 | 324 | ||
319 | gravaDados(array($xml),$arquivoXmlEsquema); | 325 | gravaDados(array($xml),$arquivoXmlEsquema); |
320 | -header("Location:".$saikuUrl."/?nomeConexao=".$nomeConexao."&locaplic=".$_GET["locaplic"]."&g_sid=".$_GET["g_sid"]); | 326 | +header("Location:".$saikuUrl."/?nomeConexao=".$nomeConexao."&locaplic=".$_GET["locaplic"]."&g_sid=".$_GET["g_sid"]."&mapext=".$_GET["mapext"]); |
321 | 327 | ||
322 | function converte($texto){ | 328 | function converte($texto){ |
323 | $texto = str_replace("&","&",htmlentities($texto)); | 329 | $texto = str_replace("&","&",htmlentities($texto)); |
ferramentas/saiku/index.js
@@ -88,6 +88,10 @@ i3GEOF.saiku = { | @@ -88,6 +88,10 @@ i3GEOF.saiku = { | ||
88 | "i3GEOFsaikubotao1", | 88 | "i3GEOFsaikubotao1", |
89 | {onclick:{fn: i3GEOF.saiku.aplicar}} | 89 | {onclick:{fn: i3GEOF.saiku.aplicar}} |
90 | ); | 90 | ); |
91 | + new YAHOO.widget.Button( | ||
92 | + "i3GEOFsaikubotao2", | ||
93 | + {onclick:{fn: i3GEOF.saiku.atualizaMapa}} | ||
94 | + ); | ||
91 | } | 95 | } |
92 | catch(erro){i3GEO.janela.tempoMsg(erro);} | 96 | catch(erro){i3GEO.janela.tempoMsg(erro);} |
93 | }, | 97 | }, |
@@ -104,7 +108,8 @@ i3GEOF.saiku = { | @@ -104,7 +108,8 @@ i3GEOF.saiku = { | ||
104 | var ins = "<p class=paragrafo >Saiku: <a href=http://meteorite.bi/saiku target=_blank >http://meteorite.bi/saiku</a></p>" + | 108 | var ins = "<p class=paragrafo >Saiku: <a href=http://meteorite.bi/saiku target=_blank >http://meteorite.bi/saiku</a></p>" + |
105 | "<p class=paragrafo >" + $trad(1,i3GEOF.saiku.dicionario) + "<p>"; | 109 | "<p class=paragrafo >" + $trad(1,i3GEOF.saiku.dicionario) + "<p>"; |
106 | if(i3GEO.parametros.saikuUrl !== ""){ | 110 | if(i3GEO.parametros.saikuUrl !== ""){ |
107 | - ins += "<input id=i3GEOFsaikubotao1 size=20 type=button value='"+$trad(2,i3GEOF.saiku.dicionario)+"' />"; | 111 | + ins += "<input id=i3GEOFsaikubotao1 size=20 type=button value='"+$trad(2,i3GEOF.saiku.dicionario)+"' />" + |
112 | + "<input id=i3GEOFsaikubotao2 size=20 type=button value='"+$trad(4,i3GEOF.saiku.dicionario)+"' />"; | ||
108 | } | 113 | } |
109 | else{ | 114 | else{ |
110 | ins += "<p class=paragrafo style=color:red >" + $trad(3,i3GEOF.saiku.dicionario) + "<p>"; | 115 | ins += "<p class=paragrafo style=color:red >" + $trad(3,i3GEOF.saiku.dicionario) + "<p>"; |
@@ -126,7 +131,7 @@ i3GEOF.saiku = { | @@ -126,7 +131,7 @@ i3GEOF.saiku = { | ||
126 | //cria a janela flutuante | 131 | //cria a janela flutuante |
127 | titulo = "Saiku <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=4&idajuda=117' > </a>"; | 132 | titulo = "Saiku <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=4&idajuda=117' > </a>"; |
128 | janela = i3GEO.janela.cria( | 133 | janela = i3GEO.janela.cria( |
129 | - "300px", | 134 | + "400px", |
130 | "200px", | 135 | "200px", |
131 | "", | 136 | "", |
132 | "", | 137 | "", |
@@ -145,6 +150,9 @@ i3GEOF.saiku = { | @@ -145,6 +150,9 @@ i3GEOF.saiku = { | ||
145 | i3GEOF.saiku.inicia(divid); | 150 | i3GEOF.saiku.inicia(divid); |
146 | }, | 151 | }, |
147 | aplicar: function(){ | 152 | aplicar: function(){ |
148 | - window.open(i3GEO.configura.locaplic+"/ferramentas/saiku/esquemaxml.php?g_sid="+i3GEO.configura.sid+"&locaplic="+i3GEO.configura.locaplic); | 153 | + window.open(i3GEO.configura.locaplic+"/ferramentas/saiku/esquemaxml.php?g_sid="+i3GEO.configura.sid+"&locaplic="+i3GEO.configura.locaplic+"&mapext="+i3GEO.parametros.mapexten); |
154 | + }, | ||
155 | + atualizaMapa: function(){ | ||
156 | + i3GEO.atualiza(""); | ||
149 | } | 157 | } |
150 | }; | 158 | }; |
ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/jquery/jquery.colourPicker.css
0 → 100755
@@ -0,0 +1,62 @@ | @@ -0,0 +1,62 @@ | ||
1 | +#jquery-colour-picker { | ||
2 | + background: #fafafa; | ||
3 | + background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee)); | ||
4 | + | ||
5 | + width: 180px; | ||
6 | + padding: 10px 5px 5px 10px; | ||
7 | + | ||
8 | + border: 1px solid #666; | ||
9 | + | ||
10 | + -moz-border-radius: 10px; | ||
11 | + -webkit-border-radius: 10px; | ||
12 | + border-radius: 10px; | ||
13 | + | ||
14 | + -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3); | ||
15 | + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3); | ||
16 | + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3); | ||
17 | + | ||
18 | + z-index: 99; | ||
19 | +} | ||
20 | + | ||
21 | + #jquery-colour-picker h2 { | ||
22 | + margin: 0 0 5px 0; | ||
23 | + font-size: 14px; | ||
24 | + } | ||
25 | + | ||
26 | + #jquery-colour-picker ul { | ||
27 | + margin: 0; | ||
28 | + padding: 0; | ||
29 | + list-style-type: none; | ||
30 | + | ||
31 | + +zoom: 1; | ||
32 | + } | ||
33 | + | ||
34 | + #jquery-colour-picker ul:after { | ||
35 | + content: "."; | ||
36 | + display: block; | ||
37 | + height: 0; | ||
38 | + visibility: hidden; | ||
39 | + clear: both; | ||
40 | + } | ||
41 | + | ||
42 | + #jquery-colour-picker ul li { | ||
43 | + float: left; | ||
44 | + margin: 0 5px 5px 0; | ||
45 | + } | ||
46 | + | ||
47 | + #jquery-colour-picker ul li a { | ||
48 | + display: block; | ||
49 | + | ||
50 | + width: 13px; | ||
51 | + height: 13px; | ||
52 | + | ||
53 | + text-decoration: none; | ||
54 | + text-indent: -100000px; | ||
55 | + outline: 0; | ||
56 | + | ||
57 | + border: 1px solid #aaa; | ||
58 | + } | ||
59 | + | ||
60 | + #jquery-colour-picker ul li a:hover { | ||
61 | + border-color: #000; | ||
62 | + } | ||
0 | \ No newline at end of file | 63 | \ No newline at end of file |
ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/jquery/jquery.colourPicker.gif
0 → 100755
1.25 KB
ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/jquery/jquery.colourPicker.js
0 → 100755
@@ -0,0 +1,240 @@ | @@ -0,0 +1,240 @@ | ||
1 | +/*** | ||
2 | +@title: | ||
3 | +Colour Picker | ||
4 | + | ||
5 | +@version: | ||
6 | +2.0 | ||
7 | + | ||
8 | +@author: | ||
9 | +Andreas Lagerkvist | ||
10 | + | ||
11 | +@date: | ||
12 | +2008-09-16 | ||
13 | + | ||
14 | +@url: | ||
15 | +http://andreaslagerkvist.com/jquery/colour-picker/ | ||
16 | + | ||
17 | +@license: | ||
18 | +http://creativecommons.org/licenses/by/3.0/ | ||
19 | + | ||
20 | +@copyright: | ||
21 | +2008 Andreas Lagerkvist (andreaslagerkvist.com) | ||
22 | + | ||
23 | +@requires: | ||
24 | +jquery, jquery.colourPicker.css, jquery.colourPicker.gif | ||
25 | + | ||
26 | +@does: | ||
27 | +Use this plug-in on a normal <select>-element filled with colours to turn it in to a colour-picker widget that allows users to view all the colours in the drop-down as well as enter their own, preferred, custom colour. Only about 1k compressed. | ||
28 | + | ||
29 | +@howto: | ||
30 | +jQuery('select[name="colour"]').colourPicker({ico: 'my-icon.gif', title: 'Select a colour from the list'}); Would replace the select with 'my-icon.gif' which, when clicked, would open a dialogue with the title 'Select a colour from the list'. | ||
31 | + | ||
32 | +You can close the colour-picker without selecting a colour by clicking anywhere outside the colour-picker box. | ||
33 | + | ||
34 | +Here's a handy PHP-function to generate a list of "web-safe" colours: | ||
35 | + | ||
36 | +[code] | ||
37 | +function gwsc() { | ||
38 | + $cs = array('00', '33', '66', '99', 'CC', 'FF'); | ||
39 | + | ||
40 | + for($i=0; $i<6; $i++) { | ||
41 | + for($j=0; $j<6; $j++) { | ||
42 | + for($k=0; $k<6; $k++) { | ||
43 | + $c = $cs[$i] .$cs[$j] .$cs[$k]; | ||
44 | + echo "<option value=\"$c\">#$c</option>\n"; | ||
45 | + } | ||
46 | + } | ||
47 | + } | ||
48 | +} | ||
49 | +[/code] | ||
50 | + | ||
51 | +Use it like this: <select name="colour"><?php gwsc(); ?></select>. | ||
52 | + | ||
53 | +@exampleHTML: | ||
54 | +<p> | ||
55 | + <label> | ||
56 | + Pick a colour<br /> | ||
57 | + <select name="colour"> | ||
58 | + <option value="ffffff">#ffffff</option> | ||
59 | + <option value="ffccc9">#ffccc9</option> | ||
60 | + <option value="ffce93">#ffce93</option> | ||
61 | + <option value="fffc9e">#fffc9e</option> | ||
62 | + <option value="ffffc7">#ffffc7</option> | ||
63 | + <option value="9aff99">#9aff99</option> | ||
64 | + <option value="96fffb">#96fffb</option> | ||
65 | + <option value="cdffff">#cdffff</option> | ||
66 | + <option value="cbcefb">#cbcefb</option> | ||
67 | + <option value="cfcfcf">#cfcfcf</option> | ||
68 | + <option value="fd6864">#fd6864</option> | ||
69 | + <option value="fe996b">#fe996b</option> | ||
70 | + <option value="fffe65">#fffe65</option> | ||
71 | + <option value="fcff2f">#fcff2f</option> | ||
72 | + <option value="67fd9a">#67fd9a</option> | ||
73 | + <option value="38fff8">#38fff8</option> | ||
74 | + <option value="68fdff">#68fdff</option> | ||
75 | + <option value="9698ed">#9698ed</option> | ||
76 | + <option value="c0c0c0">#c0c0c0</option> | ||
77 | + <option value="fe0000">#fe0000</option> | ||
78 | + <option value="f8a102">#f8a102</option> | ||
79 | + <option value="ffcc67">#ffcc67</option> | ||
80 | + <option value="f8ff00">#f8ff00</option> | ||
81 | + <option value="34ff34">#34ff34</option> | ||
82 | + <option value="68cbd0">#68cbd0</option> | ||
83 | + <option value="34cdf9">#34cdf9</option> | ||
84 | + <option value="6665cd">#6665cd</option> | ||
85 | + <option value="9b9b9b">#9b9b9b</option> | ||
86 | + <option value="cb0000">#cb0000</option> | ||
87 | + <option value="f56b00">#f56b00</option> | ||
88 | + <option value="ffcb2f">#ffcb2f</option> | ||
89 | + <option value="ffc702">#ffc702</option> | ||
90 | + <option value="32cb00">#32cb00</option> | ||
91 | + <option value="00d2cb">#00d2cb</option> | ||
92 | + <option value="3166ff">#3166ff</option> | ||
93 | + <option value="6434fc">#6434fc</option> | ||
94 | + <option value="656565">#656565</option> | ||
95 | + <option value="9a0000">#9a0000</option> | ||
96 | + <option value="ce6301">#ce6301</option> | ||
97 | + <option value="cd9934">#cd9934</option> | ||
98 | + <option value="999903">#999903</option> | ||
99 | + <option value="009901">#009901</option> | ||
100 | + <option value="329a9d">#329a9d</option> | ||
101 | + <option value="3531ff">#3531ff</option> | ||
102 | + <option value="6200c9">#6200c9</option> | ||
103 | + <option value="343434">#343434</option> | ||
104 | + <option value="680100">#680100</option> | ||
105 | + <option value="963400">#963400</option> | ||
106 | + <option value="986536" selected="selected">#986536</option> | ||
107 | + <option value="646809">#646809</option> | ||
108 | + <option value="036400">#036400</option> | ||
109 | + <option value="34696d">#34696d</option> | ||
110 | + <option value="00009b">#00009b</option> | ||
111 | + <option value="303498">#303498</option> | ||
112 | + <option value="000000">#000000</option> | ||
113 | + <option value="330001">#330001</option> | ||
114 | + <option value="643403">#643403</option> | ||
115 | + <option value="663234">#663234</option> | ||
116 | + <option value="343300">#343300</option> | ||
117 | + <option value="013300">#013300</option> | ||
118 | + <option value="003532">#003532</option> | ||
119 | + <option value="010066">#010066</option> | ||
120 | + <option value="340096">#340096</option> | ||
121 | + </select> | ||
122 | + </label> | ||
123 | +</p> | ||
124 | + | ||
125 | +@exampleJS: | ||
126 | +jQuery('#jquery-colour-picker-example select').colourPicker({ | ||
127 | + ico: WEBROOT + 'aFramework/Modules/Base/gfx/jquery.colourPicker.gif', | ||
128 | + title: false | ||
129 | +}); | ||
130 | +***/ | ||
131 | +jQuery.fn.colourPicker = function (conf) { | ||
132 | + // Config for plug | ||
133 | + var config = jQuery.extend({ | ||
134 | + id: 'jquery-colour-picker', // id of colour-picker container | ||
135 | + ico: 'ico.gif', // SRC to colour-picker icon | ||
136 | + title: 'Pick a colour', // Default dialogue title | ||
137 | + inputBG: true, // Whether to change the input's background to the selected colour's | ||
138 | + speed: 500, // Speed of dialogue-animation | ||
139 | + openTxt: 'Open colour picker' | ||
140 | + }, conf); | ||
141 | + | ||
142 | + // Inverts a hex-colour | ||
143 | + var hexInvert = function (hex) { | ||
144 | + var r = hex.substr(0, 2); | ||
145 | + var g = hex.substr(2, 2); | ||
146 | + var b = hex.substr(4, 2); | ||
147 | + | ||
148 | + return 0.212671 * r + 0.715160 * g + 0.072169 * b < 0.5 ? 'ffffff' : '000000' | ||
149 | + }; | ||
150 | + | ||
151 | + // Add the colour-picker dialogue if not added | ||
152 | + var colourPicker = jQuery('#' + config.id); | ||
153 | + | ||
154 | + if (!colourPicker.length) { | ||
155 | + colourPicker = jQuery('<div id="' + config.id + '"></div>').appendTo(document.body).hide(); | ||
156 | + | ||
157 | + // Remove the colour-picker if you click outside it (on body) | ||
158 | + jQuery(document.body).click(function(event) { | ||
159 | + if (!(jQuery(event.target).is('#' + config.id) || jQuery(event.target).parents('#' + config.id).length)) { | ||
160 | + colourPicker.hide(config.speed); | ||
161 | + } | ||
162 | + }); | ||
163 | + } | ||
164 | + | ||
165 | + // For every select passed to the plug-in | ||
166 | + return this.each(function () { | ||
167 | + // Insert icon and input | ||
168 | + var select = jQuery(this); | ||
169 | + var icon = jQuery('<a href="#"><img src="' + config.ico + '" alt="' + config.openTxt + '" /></a>').insertAfter(select); | ||
170 | + var input = jQuery('<input type="text" name="' + select.attr('name') + '" value="' + select.val() + '" size="6" />').insertAfter(select); | ||
171 | + var loc = ''; | ||
172 | + | ||
173 | + // Build a list of colours based on the colours in the select | ||
174 | + jQuery('option', select).each(function () { | ||
175 | + var option = jQuery(this); | ||
176 | + var hex = option.val(); | ||
177 | + var title = option.text(); | ||
178 | + | ||
179 | + loc += '<li><a href="#" title="' | ||
180 | + + title | ||
181 | + + '" rel="' | ||
182 | + + hex | ||
183 | + + '" style="background: #' | ||
184 | + + hex | ||
185 | + + '; colour: ' | ||
186 | + + hexInvert(hex) | ||
187 | + + ';">' | ||
188 | + + title | ||
189 | + + '</a></li>'; | ||
190 | + }); | ||
191 | + | ||
192 | + // Remove select | ||
193 | + select.remove(); | ||
194 | + | ||
195 | + // If user wants to, change the input's BG to reflect the newly selected colour | ||
196 | + if (config.inputBG) { | ||
197 | + input.change(function () { | ||
198 | + input.css({background: '#' + input.val(), color: '#' + hexInvert(input.val())}); | ||
199 | + }); | ||
200 | + | ||
201 | + input.change(); | ||
202 | + } | ||
203 | + | ||
204 | + // When you click the icon | ||
205 | + icon.click(function () { | ||
206 | + // Show the colour-picker next to the icon and fill it with the colours in the select that used to be there | ||
207 | + var iconPos = icon.offset(); | ||
208 | + var heading = config.title ? '<h2>' + config.title + '</h2>' : ''; | ||
209 | + | ||
210 | + colourPicker.html(heading + '<ul>' + loc + '</ul>').css({ | ||
211 | + position: 'absolute', | ||
212 | + left: iconPos.left + 'px', | ||
213 | + top: iconPos.top + 'px' | ||
214 | + }).show(config.speed); | ||
215 | + | ||
216 | + // When you click a colour in the colour-picker | ||
217 | + jQuery('a', colourPicker).click(function () { | ||
218 | + // The hex is stored in the link's rel-attribute | ||
219 | + var hex = jQuery(this).attr('rel'); | ||
220 | + | ||
221 | + input.val(hex); | ||
222 | + | ||
223 | + // If user wants to, change the input's BG to reflect the newly selected colour | ||
224 | + if (config.inputBG) { | ||
225 | + input.css({background: '#' + hex, color: '#' + hexInvert(hex)}); | ||
226 | + } | ||
227 | + | ||
228 | + // Trigger change-event on input | ||
229 | + input.change(); | ||
230 | + | ||
231 | + // Hide the colour-picker and return false | ||
232 | + colourPicker.hide(config.speed); | ||
233 | + | ||
234 | + return false; | ||
235 | + }); | ||
236 | + | ||
237 | + return false; | ||
238 | + }); | ||
239 | + }); | ||
240 | +}; |
mashups/openlayers.js
@@ -570,7 +570,7 @@ i3GEO.editorOL = { | @@ -570,7 +570,7 @@ i3GEO.editorOL = { | ||
570 | //w.document.close(); | 570 | //w.document.close(); |
571 | if(!document.getElementById("panellegendaeditorOL")){ | 571 | if(!document.getElementById("panellegendaeditorOL")){ |
572 | YAHOO.namespace("legendaeditorOL.container"); | 572 | YAHOO.namespace("legendaeditorOL.container"); |
573 | - YAHOO.legendaeditorOL.container.panel = new YAHOO.widget.Panel("panellegendaeditorOL", {zIndex:20000, iframe:true, width:"250px", visible:false, draggable:true, close:true } ); | 573 | + YAHOO.legendaeditorOL.container.panel = new YAHOO.widget.Panel("panellegendaeditorOL", {zIndex:20000, iframe:true, width:"auto", visible:false, draggable:true, close:true } ); |
574 | YAHOO.legendaeditorOL.container.panel.setBody(ins); | 574 | YAHOO.legendaeditorOL.container.panel.setBody(ins); |
575 | YAHOO.legendaeditorOL.container.panel.setHeader("Legenda"); | 575 | YAHOO.legendaeditorOL.container.panel.setHeader("Legenda"); |
576 | YAHOO.legendaeditorOL.container.panel.setFooter(""); | 576 | YAHOO.legendaeditorOL.container.panel.setFooter(""); |
@@ -853,7 +853,14 @@ i3GEO.editorOL = { | @@ -853,7 +853,14 @@ i3GEO.editorOL = { | ||
853 | if(botoes.zoomtot===true){ | 853 | if(botoes.zoomtot===true){ |
854 | button = new OpenLayers.Control.Button({ | 854 | button = new OpenLayers.Control.Button({ |
855 | displayClass: "editorOLzoomtot", | 855 | displayClass: "editorOLzoomtot", |
856 | - trigger: function(){i3GEO.editorOL.mapa.zoomToMaxExtent();}, | 856 | + trigger: function(){ |
857 | + if(i3GEO.editorOL.mapext && i3GEO.editorOL.mapext != ""){ | ||
858 | + i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext); | ||
859 | + } | ||
860 | + else{ | ||
861 | + i3GEO.editorOL.mapa.zoomToMaxExtent(); | ||
862 | + } | ||
863 | + }, | ||
857 | title: "ajusta extensao", | 864 | title: "ajusta extensao", |
858 | type: OpenLayers.Control.TYPE_BUTTON | 865 | type: OpenLayers.Control.TYPE_BUTTON |
859 | }); | 866 | }); |
@@ -1601,7 +1608,7 @@ i3GEO.editorOL = { | @@ -1601,7 +1608,7 @@ i3GEO.editorOL = { | ||
1601 | } | 1608 | } |
1602 | } | 1609 | } |
1603 | YAHOO.editorOL.container.panel.show(); | 1610 | YAHOO.editorOL.container.panel.show(); |
1604 | - temp = $i("panelpropriedadesEditor").getElementsByTagName("div") | 1611 | + temp = $i("panelpropriedadesEditor").getElementsByTagName("div"); |
1605 | if(temp && temp[2]){ | 1612 | if(temp && temp[2]){ |
1606 | temp[2].style.overflow = "auto"; | 1613 | temp[2].style.overflow = "auto"; |
1607 | } | 1614 | } |
mashups/openlayers.php
@@ -185,15 +185,17 @@ if($temas != ""){ | @@ -185,15 +185,17 @@ if($temas != ""){ | ||
185 | } | 185 | } |
186 | } | 186 | } |
187 | if($nomeMap != ""){ | 187 | if($nomeMap != ""){ |
188 | + $layersNomes = array(); | ||
188 | $layers = array(); | 189 | $layers = array(); |
189 | $maptemp = @ms_newMapObj($nomeMap); | 190 | $maptemp = @ms_newMapObj($nomeMap); |
190 | if($maptemp){ | 191 | if($maptemp){ |
191 | $nlayers = $maptemp->numlayers; | 192 | $nlayers = $maptemp->numlayers; |
192 | for($i=0;$i<($nlayers);++$i) { | 193 | for($i=0;$i<($nlayers);++$i) { |
193 | $layern = $maptemp->getLayer($i); | 194 | $layern = $maptemp->getLayer($i); |
194 | - $layers[] = $layern->name; | 195 | + $layersNomes[] = $layern->name; |
196 | + $layers[] = $layern; | ||
195 | } | 197 | } |
196 | - $nomeLayer = implode(",",$layers); | 198 | + $nomeLayer = implode(",",$layersNomes); |
197 | $tituloLayer = $layern->getmetadata("tema"); | 199 | $tituloLayer = $layern->getmetadata("tema"); |
198 | $ebase = "false"; | 200 | $ebase = "false"; |
199 | if(isset($fundo) && $fundo != ""){ | 201 | if(isset($fundo) && $fundo != ""){ |
@@ -212,7 +214,16 @@ if($temas != ""){ | @@ -212,7 +214,16 @@ if($temas != ""){ | ||
212 | $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.$tituloLayer.'", "../ogc.php?tema='.$tema.'&DESLIGACACHE='.$DESLIGACACHE.'&",{cloneTMS:"'.$nomeLayer.'",layers:"'.$nomeLayer.'",transparent: "true", format: "image/png"},{displayInLayerSwitcher:false,singleTile:true,visibility:false,isBaseLayer:false})'; | 214 | $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.$tituloLayer.'", "../ogc.php?tema='.$tema.'&DESLIGACACHE='.$DESLIGACACHE.'&",{cloneTMS:"'.$nomeLayer.'",layers:"'.$nomeLayer.'",transparent: "true", format: "image/png"},{displayInLayerSwitcher:false,singleTile:true,visibility:false,isBaseLayer:false})'; |
213 | } | 215 | } |
214 | else{ | 216 | else{ |
215 | - $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.$tituloLayer.'", "../ogc.php?tema='.$tema.'&DESLIGACACHE='.$DESLIGACACHE.'&",{layers:"'.$nomeLayer.'",transparent: "true", format: "image/png"},{singleTile:true,visibility:'.$visivel.',isBaseLayer:'.$ebase.'})'; | 217 | + //$objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.$tituloLayer.'", "../ogc.php?tema='.$tema.'&DESLIGACACHE='.$DESLIGACACHE.'&",{layers:"'.$nomeLayer.'",transparent: "true", format: "image/png"},{singleTile:true,visibility:'.$visivel.',isBaseLayer:'.$ebase.'})'; |
218 | + foreach($layers as $l){ | ||
219 | + $tituloLayer = $l->getmetadata("tema"); | ||
220 | + $nomeLayer = $l->name; | ||
221 | + $visivel = "false"; | ||
222 | + if($l->status == MS_DEFAULT){ | ||
223 | + $visivel = "true"; | ||
224 | + } | ||
225 | + $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.$tituloLayer.'", "../ogc.php?tema='.$tema.'&DESLIGACACHE='.$DESLIGACACHE.'&",{layers:"'.$nomeLayer.'",transparent: "true", format: "image/png"},{singleTile:true,visibility:'.$visivel.',isBaseLayer:'.$ebase.'})'; | ||
226 | + } | ||
216 | } | 227 | } |
217 | //var_dump($objOpenLayers);exit; | 228 | //var_dump($objOpenLayers);exit; |
218 | } | 229 | } |
@@ -301,6 +312,7 @@ Par&acirc;metros: | @@ -301,6 +312,7 @@ Par&acirc;metros: | ||
301 | ajuda | 312 | ajuda |
302 | fecha | 313 | fecha |
303 | corta | 314 | corta |
315 | + legenda | ||
304 | 316 | ||
305 | Para ver a lista de códigos de temas, que podem ser utilizados no parâmetro 'temas', acesse: | 317 | Para ver a lista de códigos de temas, que podem ser utilizados no parâmetro 'temas', acesse: |
306 | <a href='../ogc.php?lista=temas' >lista de temas</a>. Os códigos são mostrados em vermelho. | 318 | <a href='../ogc.php?lista=temas' >lista de temas</a>. Os códigos são mostrados em vermelho. |
mashups/openlayers_compacto.js
@@ -3582,7 +3582,7 @@ catch(e){} | @@ -3582,7 +3582,7 @@ catch(e){} | ||
3582 | //w.document.close(); | 3582 | //w.document.close(); |
3583 | if(!document.getElementById("panellegendaeditorOL")){ | 3583 | if(!document.getElementById("panellegendaeditorOL")){ |
3584 | YAHOO.namespace("legendaeditorOL.container"); | 3584 | YAHOO.namespace("legendaeditorOL.container"); |
3585 | -YAHOO.legendaeditorOL.container.panel = new YAHOO.widget.Panel("panellegendaeditorOL", {zIndex:20000, iframe:true, width:"250px", visible:false, draggable:true, close:true } ); | 3585 | +YAHOO.legendaeditorOL.container.panel = new YAHOO.widget.Panel("panellegendaeditorOL", {zIndex:20000, iframe:true, width:"auto", visible:false, draggable:true, close:true } ); |
3586 | YAHOO.legendaeditorOL.container.panel.setBody(ins); | 3586 | YAHOO.legendaeditorOL.container.panel.setBody(ins); |
3587 | YAHOO.legendaeditorOL.container.panel.setHeader("Legenda"); | 3587 | YAHOO.legendaeditorOL.container.panel.setHeader("Legenda"); |
3588 | YAHOO.legendaeditorOL.container.panel.setFooter(""); | 3588 | YAHOO.legendaeditorOL.container.panel.setFooter(""); |
@@ -3861,7 +3861,14 @@ adiciona = true; | @@ -3861,7 +3861,14 @@ adiciona = true; | ||
3861 | if(botoes.zoomtot===true){ | 3861 | if(botoes.zoomtot===true){ |
3862 | button = new OpenLayers.Control.Button({ | 3862 | button = new OpenLayers.Control.Button({ |
3863 | displayClass: "editorOLzoomtot", | 3863 | displayClass: "editorOLzoomtot", |
3864 | -trigger: function(){i3GEO.editorOL.mapa.zoomToMaxExtent();}, | 3864 | +trigger: function(){ |
3865 | +if(i3GEO.editorOL.mapext && i3GEO.editorOL.mapext != ""){ | ||
3866 | +i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext); | ||
3867 | +} | ||
3868 | +else{ | ||
3869 | +i3GEO.editorOL.mapa.zoomToMaxExtent(); | ||
3870 | +} | ||
3871 | +}, | ||
3865 | title: "ajusta extensao", | 3872 | title: "ajusta extensao", |
3866 | type: OpenLayers.Control.TYPE_BUTTON | 3873 | type: OpenLayers.Control.TYPE_BUTTON |
3867 | }); | 3874 | }); |
@@ -4606,7 +4613,7 @@ temp.onclick = function(){i3GEO.janela.minimiza("panelpropriedadesEditor");}; | @@ -4606,7 +4613,7 @@ temp.onclick = function(){i3GEO.janela.minimiza("panelpropriedadesEditor");}; | ||
4606 | } | 4613 | } |
4607 | } | 4614 | } |
4608 | YAHOO.editorOL.container.panel.show(); | 4615 | YAHOO.editorOL.container.panel.show(); |
4609 | -temp = $i("panelpropriedadesEditor").getElementsByTagName("div") | 4616 | +temp = $i("panelpropriedadesEditor").getElementsByTagName("div"); |
4610 | if(temp && temp[2]){ | 4617 | if(temp && temp[2]){ |
4611 | temp[2].style.overflow = "auto"; | 4618 | temp[2].style.overflow = "auto"; |
4612 | } | 4619 | } |
mashups/openlayers_compacto.js.php
@@ -3582,7 +3582,7 @@ catch(e){} | @@ -3582,7 +3582,7 @@ catch(e){} | ||
3582 | //w.document.close(); | 3582 | //w.document.close(); |
3583 | if(!document.getElementById("panellegendaeditorOL")){ | 3583 | if(!document.getElementById("panellegendaeditorOL")){ |
3584 | YAHOO.namespace("legendaeditorOL.container"); | 3584 | YAHOO.namespace("legendaeditorOL.container"); |
3585 | -YAHOO.legendaeditorOL.container.panel = new YAHOO.widget.Panel("panellegendaeditorOL", {zIndex:20000, iframe:true, width:"250px", visible:false, draggable:true, close:true } ); | 3585 | +YAHOO.legendaeditorOL.container.panel = new YAHOO.widget.Panel("panellegendaeditorOL", {zIndex:20000, iframe:true, width:"auto", visible:false, draggable:true, close:true } ); |
3586 | YAHOO.legendaeditorOL.container.panel.setBody(ins); | 3586 | YAHOO.legendaeditorOL.container.panel.setBody(ins); |
3587 | YAHOO.legendaeditorOL.container.panel.setHeader("Legenda"); | 3587 | YAHOO.legendaeditorOL.container.panel.setHeader("Legenda"); |
3588 | YAHOO.legendaeditorOL.container.panel.setFooter(""); | 3588 | YAHOO.legendaeditorOL.container.panel.setFooter(""); |
@@ -3861,7 +3861,14 @@ adiciona = true; | @@ -3861,7 +3861,14 @@ adiciona = true; | ||
3861 | if(botoes.zoomtot===true){ | 3861 | if(botoes.zoomtot===true){ |
3862 | button = new OpenLayers.Control.Button({ | 3862 | button = new OpenLayers.Control.Button({ |
3863 | displayClass: "editorOLzoomtot", | 3863 | displayClass: "editorOLzoomtot", |
3864 | -trigger: function(){i3GEO.editorOL.mapa.zoomToMaxExtent();}, | 3864 | +trigger: function(){ |
3865 | +if(i3GEO.editorOL.mapext && i3GEO.editorOL.mapext != ""){ | ||
3866 | +i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext); | ||
3867 | +} | ||
3868 | +else{ | ||
3869 | +i3GEO.editorOL.mapa.zoomToMaxExtent(); | ||
3870 | +} | ||
3871 | +}, | ||
3865 | title: "ajusta extensao", | 3872 | title: "ajusta extensao", |
3866 | type: OpenLayers.Control.TYPE_BUTTON | 3873 | type: OpenLayers.Control.TYPE_BUTTON |
3867 | }); | 3874 | }); |
@@ -4606,7 +4613,7 @@ temp.onclick = function(){i3GEO.janela.minimiza("panelpropriedadesEditor");}; | @@ -4606,7 +4613,7 @@ temp.onclick = function(){i3GEO.janela.minimiza("panelpropriedadesEditor");}; | ||
4606 | } | 4613 | } |
4607 | } | 4614 | } |
4608 | YAHOO.editorOL.container.panel.show(); | 4615 | YAHOO.editorOL.container.panel.show(); |
4609 | -temp = $i("panelpropriedadesEditor").getElementsByTagName("div") | 4616 | +temp = $i("panelpropriedadesEditor").getElementsByTagName("div"); |
4610 | if(temp && temp[2]){ | 4617 | if(temp && temp[2]){ |
4611 | temp[2].style.overflow = "auto"; | 4618 | temp[2].style.overflow = "auto"; |
4612 | } | 4619 | } |