From 0a1fdc07d45e5ea6f6dfd96362a61a823dd8f159 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 30 Nov 2007 10:54:50 +0000 Subject: [PATCH] Criado o diretório "mobile" para o desenvolvimento do i3geo para dispositivos móveis --- mobile/in.png | Bin 0 -> 763 bytes mobile/in.svg | 361 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mobile/index.htm | 11 +++++++++++ mobile/index.html | 25 +++++++++++++++++++++++++ mobile/l.png | Bin 0 -> 535 bytes mobile/l.svg | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mobile/mobile.php | 253 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mobile/n.png | Bin 0 -> 520 bytes mobile/n.svg | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mobile/o.png | Bin 0 -> 513 bytes mobile/o.svg | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mobile/out.png | Bin 0 -> 747 bytes mobile/out.svg | 356 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mobile/s.png | Bin 0 -> 556 bytes mobile/s.svg | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 15 files changed, 1814 insertions(+), 0 deletions(-) create mode 100644 mobile/in.png create mode 100644 mobile/in.svg create mode 100644 mobile/index.htm create mode 100644 mobile/index.html create mode 100644 mobile/l.png create mode 100644 mobile/l.svg create mode 100644 mobile/mobile.php create mode 100644 mobile/n.png create mode 100644 mobile/n.svg create mode 100644 mobile/o.png create mode 100644 mobile/o.svg create mode 100644 mobile/out.png create mode 100644 mobile/out.svg create mode 100644 mobile/s.png create mode 100644 mobile/s.svg diff --git a/mobile/in.png b/mobile/in.png new file mode 100644 index 0000000..c496f2f Binary files /dev/null and b/mobile/in.png differ diff --git a/mobile/in.svg b/mobile/in.svg new file mode 100644 index 0000000..5a826fd --- /dev/null +++ b/mobile/in.svg @@ -0,0 +1,361 @@ + + + + + + + globe + A logo for the school club + + + hash + + geography + nations + extraordinary + + + + + CopyLeft + + + + + Jason Knight + + + + + CopyLeft + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/index.htm b/mobile/index.htm new file mode 100644 index 0000000..67e3bfb --- /dev/null +++ b/mobile/index.htm @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/mobile/index.html b/mobile/index.html new file mode 100644 index 0000000..d980332 --- /dev/null +++ b/mobile/index.html @@ -0,0 +1,25 @@ + + + + + + + + +
+Mapa interativo I3Geo
+Elaborado com Mapserver e PHP-Mapscript
+O I3Geo é software livre!
+Áreas: meio-ambiente, geoprocessamento, SIG
+
+
+
\ No newline at end of file
diff --git a/mobile/l.png b/mobile/l.png
new file mode 100644
index 0000000..b0d3314
Binary files /dev/null and b/mobile/l.png differ
diff --git a/mobile/l.svg b/mobile/l.svg
new file mode 100644
index 0000000..96506dc
--- /dev/null
+++ b/mobile/l.svg
@@ -0,0 +1,202 @@
+
+
+
+  
+    
+      
+        globe
+        A logo for the school club
+        
+          
+            hash
+            
+            geography
+            nations
+            extraordinary
+          
+        
+        
+          
+            CopyLeft
+          
+        
+        
+          
+            Jason Knight
+          
+        
+        
+          
+            CopyLeft
+          
+        
+        
+        image/svg+xml
+        
+        
+        en
+      
+      
+        
+        
+        
+      
+    
+  
+  
+    
+    
+      
+      
+      
+    
+    
+    
+      
+      
+    
+    
+    
+      
+      
+    
+    
+      
+      
+    
+    
+    
+  
+  
+  
+  
+
diff --git a/mobile/mobile.php b/mobile/mobile.php
new file mode 100644
index 0000000..7638237
--- /dev/null
+++ b/mobile/mobile.php
@@ -0,0 +1,253 @@
+pegaListaDeMapas($locmapas);
+	echo
+	"
+		
+		
+ +
+ "; + foreach($mapas["mapas"] as $obj) + { + echo "
".$obj["NOME"]."

"; + $i = $obj["IMAGEM"]; + echo "
"; + } + echo " +
+ + + + + +
+ + + "; +} +else +{ + include("../ms_configura.php"); + if (isset($opcoes) && $opcoes != "") + { + echo "ok"; + exit; + } + if (isset($ligar)) + { + $temasa = $ligar; + incluiTemasIniciais2(); + } + $mapa = ms_newMapObj($tmpfname); + if ($tipo=="") + { + $mapa->setsize($w-5,$h-5); + $mapa->save($tmpfname); + } + if ($tipo=="zoommais") + { + include("../classesphp/classe_navegacao.php"); + $m = new Navegacao($tmpfname); + $m->aproxima(2); + $m->salva(); + } + if ($tipo=="zoommenos") + { + include("../classesphp/classe_navegacao.php"); + $m = new Navegacao($tmpfname); + $m->afasta(2); + $m->salva(); + } + if ($tipo=="norte") + { + include("../classesphp/classe_navegacao.php"); + $m = new Navegacao($tmpfname); + $x = $mapa->width; + $x = $x/2; + $y = 0; + $m->pan($x,$y,"",""); + $m->salva(); + } + if ($tipo=="sul") + { + include("../classesphp/classe_navegacao.php"); + $m = new Navegacao($tmpfname); + $x = $mapa->width; + $x = $x/2; + $y = $mapa->height; + $m->pan($x,$y,"",""); + $m->salva(); + } + if ($tipo=="leste") + { + include("../classesphp/classe_navegacao.php"); + $m = new Navegacao($tmpfname); + $x = $mapa->width; + $y = $mapa->height/2; + $m->pan($x,$y,"",""); + $m->salva(); + } + if ($tipo=="oeste") + { + include("../classesphp/classe_navegacao.php"); + $m = new Navegacao($tmpfname); + $x = 0; + $y = $mapa->height/2; + $m->pan($x,$y,"",""); + $m->salva(); + } + $nomeimagem = desenhaImagem(); + retornaMapa(); +} + +function retornaMapa() +{ + global $nomeimagem,$tmpfname,$tipo; + echo + " + +
+   +   +   +   +   +   + +
+ +
+ + + +
+ + + + + "; +} +function desenhaImagem() +{ + global $tmpfname; + $mapa = ms_newMapObj($tmpfname); + $imgo = $mapa->draw(); + $nome = ($imgo->imagepath).nomeRandomico().".png"; + $imgo->saveImage($nome); + $nome = ($imgo->imageurl).basename($nome); + $imgo->free(); + return $nome; +} +function incluiTemasIniciais2() +{ + global $temasa,$temasaplic,$temasdir,$tmpfname; + $mapa = ms_newMapObj($tmpfname); + $estadosl = "estadosl"; + if (!isset($temasa)){$temasa = $estadosl;} + $temasa = str_replace(','," ",$temasa); + $alayers = explode(" ",$temasa); + foreach ($alayers as $arqt) + { + $arqtemp = ""; + $arqt = trim($arqt); + if ($arqt == "") + {continue;} + if (file_exists($arqt)) + {$arqtemp = $arqt;} + if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasaplic."\\".$arqt.".map"))) + {$arqtemp = $temasaplic."\\".$arqt.".map";} + elseif (file_exists($temasaplic."/".$arqt.".map")) + {$arqtemp = $temasaplic."/".$arqt.".map";} + if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasdir."\\".$arqt.".map"))) + {$arqtemp = $temasdir."\\".$arqt.".map";} + elseif (file_exists($temasdir."/".$arqt.".map")) + {$arqtemp = $temasdir."/".$arqt.".map";} + if (($arqtemp != "") && (file_exists($arqtemp))) + { + $maptemp = @ms_newMapObj($arqtemp); + for($i=0;$i<($maptemp->numlayers);$i++) + { + $layern = $maptemp->getLayer($i); + $layern->setmetadata("NOMEORIGINAL",$layern->name); + if ($layern->name == "estadosl") + {$layern->set("data",$temasaplic."/dados/estados.shp");} + $layern->set("status",MS_DEFAULT); + ms_newLayerObj($mapa, $layern); + } + } + } + $mapa->save($tmpfname); +} + +?> \ No newline at end of file diff --git a/mobile/n.png b/mobile/n.png new file mode 100644 index 0000000..5a9fab9 Binary files /dev/null and b/mobile/n.png differ diff --git a/mobile/n.svg b/mobile/n.svg new file mode 100644 index 0000000..45275cb --- /dev/null +++ b/mobile/n.svg @@ -0,0 +1,202 @@ + + + + + + + globe + A logo for the school club + + + hash + + geography + nations + extraordinary + + + + + CopyLeft + + + + + Jason Knight + + + + + CopyLeft + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/o.png b/mobile/o.png new file mode 100644 index 0000000..47b2d17 Binary files /dev/null and b/mobile/o.png differ diff --git a/mobile/o.svg b/mobile/o.svg new file mode 100644 index 0000000..20fe77e --- /dev/null +++ b/mobile/o.svg @@ -0,0 +1,202 @@ + + + + + + + globe + A logo for the school club + + + hash + + geography + nations + extraordinary + + + + + CopyLeft + + + + + Jason Knight + + + + + CopyLeft + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/out.png b/mobile/out.png new file mode 100644 index 0000000..203f299 Binary files /dev/null and b/mobile/out.png differ diff --git a/mobile/out.svg b/mobile/out.svg new file mode 100644 index 0000000..9b55854 --- /dev/null +++ b/mobile/out.svg @@ -0,0 +1,356 @@ + + + + + + + globe + A logo for the school club + + + hash + + geography + nations + extraordinary + + + + + CopyLeft + + + + + Jason Knight + + + + + CopyLeft + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + diff --git a/mobile/s.png b/mobile/s.png new file mode 100644 index 0000000..4b33e26 Binary files /dev/null and b/mobile/s.png differ diff --git a/mobile/s.svg b/mobile/s.svg new file mode 100644 index 0000000..96c966c --- /dev/null +++ b/mobile/s.svg @@ -0,0 +1,202 @@ + + + + + + + globe + A logo for the school club + + + hash + + geography + nations + extraordinary + + + + + CopyLeft + + + + + Jason Knight + + + + + CopyLeft + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- libgit2 0.21.2