Commit c3998a016e25967a1ee21b1604302c80162cf406
1 parent
6b2be02c
Exists in
master
and in
7 other branches
$1
Showing
6 changed files
with
39 additions
and
23 deletions
Show diff stats
admin/admin.db
No preview for this file type
instalsw.sh
... | ... | @@ -11,7 +11,7 @@ apt-get --assume-yes install apache2 apache2-doc apache2-utils |
11 | 11 | |
12 | 12 | apt-get --assume-yes install cgi-mapserver mapserver-bin |
13 | 13 | |
14 | -apt-get --assume-yes install postgresql postgis postgresql-9.1-postgis | |
14 | +apt-get --assume-yes install postgresql postgis postgresql-9.1-postgis pgadmin3 | |
15 | 15 | |
16 | 16 | apt-get --assume-yes install sqlite |
17 | 17 | |
... | ... | @@ -41,28 +41,25 @@ ln -s /tmp/ms_tmp /var/www/ms_tmp |
41 | 41 | |
42 | 42 | chmod -R u=rw,g=rw,o=rw /var/www/ms_tmp |
43 | 43 | |
44 | -su postgres | |
44 | +su postgres -c "psql -c \"ALTER USER postgres WITH PASSWORD 'postgres'\"" | |
45 | 45 | |
46 | -psql | |
46 | +su postgres -c "createdb i3geosaude" | |
47 | 47 | |
48 | -ALTER USER postgres WITH PASSWORD ‘postgres’; \q | |
48 | +su postgres -c "createlang -d i3geosaude plpgsql" | |
49 | 49 | |
50 | -createdb -E UTF8 i3geosaude | |
50 | +su postgres -c "psql -d i3geosaude -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql" | |
51 | 51 | |
52 | -createlang -d i3geosaude plpgsql | |
52 | +su postgres -c "psql -d i3geosaude -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql" | |
53 | 53 | |
54 | -psql -d i3geosaude -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql | |
54 | +su postgres -c "psql -d i3geosaude -c 'GRANT ALL ON geometry_columns TO PUBLIC;'" | |
55 | 55 | |
56 | -psql -d i3geosaude -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql | |
56 | +su postgres -c "psql -d i3geosaude -c 'GRANT ALL ON geography_columns TO PUBLIC;'" | |
57 | 57 | |
58 | -psql -d i3geosaude -c "GRANT ALL ON geometry_columns TO PUBLIC;" | |
58 | +su postgres -c "psql -d i3geosaude -c 'GRANT ALL ON spatial_ref_sys TO PUBLIC;'" | |
59 | 59 | |
60 | -psql -d i3geosaude -c "GRANT ALL ON geography_columns TO PUBLIC;" | |
60 | +/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --schema-only --list "/var/www/databasei3geosaude.backup" | |
61 | 61 | |
62 | -psql -d i3geosaude -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;" | |
62 | +/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --data-only --list "/var/www/databasei3geosaude.backup" | |
63 | 63 | |
64 | -/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --schema-only --list "/tmp/temp/databasei3geosaude.backup" | |
65 | - | |
66 | -/usr/bin/pg_restore --host localhost --port 5432 --username "postgres" --dbname "i3geosaude" --no-password --data-only --list "/tmp/temp/databasei3geosaude.backup" | |
67 | 64 | |
68 | 65 | rm -Rf /tmp/temp |
69 | 66 | \ No newline at end of file | ... | ... |
interface/black_gm.phtml
... | ... | @@ -146,6 +146,8 @@ i3GEO.guias.TIPO = "movel"; |
146 | 146 | i3GEO.guias.guiaMovel.config.topGuiaMovel = 36; |
147 | 147 | i3GEO.janela.ativaAlerta(); |
148 | 148 | |
149 | +//i3GEO.Interface.googlemaps.TIPOMAPA = "satellite"; | |
150 | + | |
149 | 151 | i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true; |
150 | 152 | i3GEO.janela.TRANSICAOSUAVE = true; |
151 | 153 | ... | ... |
pacotes/gvsig/gvsig2mapfile/upload.htm
... | ... | @@ -16,8 +16,8 @@ |
16 | 16 | <a href='http://svn.softwarepublico.gov.br/trac/i3geo/browser/i3geo/pacotes/gvsig/gvsig2mapfile' >Código fonte</a><br> |
17 | 17 | <form id=i3GEOupload target="i3GEOuploadiframe" action="upload.php" method="post" ENCTYPE="multipart/form-data"> |
18 | 18 | <p class="paragrafo" >Arquivo de projeto gvSig (.gvp). Serão utilizadas todas as vistas existentes no projeto.<br> |
19 | - A conversão ainda é experimental, caso ocorra algum erro, envie o seu projeto para o e-mail: edmar.moretti@gmail.com<br> | |
20 | - Não há garantias de sigilo em relação ao arquivo enviado ao servidor. Evite utilizar dados restritos, como endereços e senhas.<br> | |
19 | + A conversão ainda é experimental, caso ocorra algum erro, envie o seu projeto para o e-mail: edmar.moretti@gmail.com<br> | |
20 | + Não há garantias de sigilo em relação ao arquivo enviado ao servidor. Evite utilizar dados restritos, como endereços e senhas.<br> | |
21 | 21 | No caso de camadas baseadas em conexões com banco de dados, a senha colocada em CONNECTION é igual ao nome do usuário, uma vez |
22 | 22 | que não é armazenada no arquivo .gvp. No final da lista de vistas e layers deve aparecer o mapfile gerado<br><br> |
23 | 23 | <input type="file" size=42 name="i3GEOuploadfile" style="top:0px;left:0px;cursor:pointer;"></p> | ... | ... |
pacotes/gvsig/gvsig2mapfile/upload.php
... | ... | @@ -31,14 +31,16 @@ if (isset($_FILES['i3GEOuploadfile']['name'])) |
31 | 31 | if(!file_exists($base)) |
32 | 32 | {$base = $locaplic."/aplicmap/".$base;} |
33 | 33 | } |
34 | + | |
34 | 35 | $mapn = ms_newMapObj($base); |
35 | 36 | |
36 | 37 | //echo "<p>Carregando o arquivo...</p>"; |
37 | 38 | //verifica nomes |
38 | - verificaNome($_FILES['i3GEOuploadfile']['name']); | |
39 | + $upl = $_FILES['i3GEOuploadfile']; | |
40 | + verificaNome($upl['name']); | |
39 | 41 | //sobe arquivo |
40 | - $Arquivo = $_FILES['i3GEOuploadfile']['tmp_name']; | |
41 | - $Arquivon = $dir_tmp."/".$_FILES['i3GEOuploadfile']['name']; | |
42 | + $Arquivo = $upl['tmp_name']; | |
43 | + $Arquivon = $dir_tmp."/".$upl['name']; | |
42 | 44 | $status = move_uploaded_file($Arquivo,$Arquivon); |
43 | 45 | if($status != 1) |
44 | 46 | {ob_clean();echo "Ocorreu um erro no envio do arquivo";exit;} |
... | ... | @@ -94,4 +96,4 @@ function verificaNome($nome) |
94 | 96 | } |
95 | 97 | ?> |
96 | 98 | </body> |
97 | -</html> | |
98 | 99 | \ No newline at end of file |
100 | +</html> | ... | ... |
temas/curso_1.map
... | ... | @@ -8,22 +8,37 @@ MAP |
8 | 8 | "METAESTAT_ID_MEDIDA_VARIAVEL" "" |
9 | 9 | "cache" "" |
10 | 10 | "CLASSE" "SIM" |
11 | + "olopacity" "" | |
12 | + "permitekmz" "" | |
13 | + "gmopacity" "" | |
14 | + "gmstatus" "" | |
11 | 15 | "METAESTAT_CODIGO_TIPO_REGIAO" "" |
16 | + "arquivotemaoriginal" "" | |
17 | + "nomeoriginal" "" | |
18 | + "olstatus" "" | |
19 | + "permitedownload" "" | |
12 | 20 | "metaestat" "" |
13 | - "TEMA" "Teste do curso" | |
21 | + "permitekml" "" | |
22 | + "permiteogc" "" | |
14 | 23 | "convcaracter" "" |
24 | + "TEMA" "Teste do curso" | |
15 | 25 | END # METADATA |
16 | 26 | NAME "curso_1" |
17 | - STATUS OFF | |
27 | + PROCESSING "LABEL_NO_CLIP=True" | |
28 | + PROCESSING "POLYLINE_NO_CLIP=True" | |
29 | + STATUS DEFAULT | |
18 | 30 | TEMPLATE "none.htm" |
31 | + TILEITEM "location" | |
19 | 32 | TYPE POLYGON |
20 | 33 | UNITS METERS |
21 | 34 | CLASS |
22 | 35 | NAME "" |
23 | 36 | STYLE |
24 | - COLOR 0 0 0 | |
37 | + COLOR 0 255 0 | |
38 | + OUTLINECOLOR 0 0 0 | |
25 | 39 | SIZE 12 |
26 | 40 | END # STYLE |
41 | + TITLE "" | |
27 | 42 | END # CLASS |
28 | 43 | END # LAYER |
29 | 44 | ... | ... |