Commit 6c349a1f02e6e2e9b9eb4d874f74d0ee474cfeb6

Authored by Edmar Moretti
1 parent a84795b4

--no commit message

admin/admin.db
No preview for this file type
aplicmap/simptv6.map
... ... @@ -16,11 +16,11 @@ FONTSET "../symbols/fontes.txt"
16 16 METADATA
17 17 END
18 18 STYLE
19   - COLOR 0 0 0
  19 + COLOR 0 0 0
20 20 MAXSIZE 500
21 21 MINSIZE 1
22 22 SIZE 8
23   - SYMBOL "seta"
  23 + SYMBOL "ponto"
24 24 END
25 25 END
26 26 END
... ...
classesphp/classe_atributos.php
... ... @@ -199,15 +199,19 @@ $registro - Índice do registro que será consultado.
199 199 function extensaoRegistro($registro)
200 200 {
201 201 if(!$this->layer){return "erro";}
  202 + //error_reporting(E_ALL);
202 203 $this->layer->set("template","none.htm");
203 204 $this->layer->setfilter("");
204 205 $ext = "";
205 206 //procura o registro e pega a extensão geográfica
206   - if($this->v == 6)
207   - {$shape = $this->layer->getShape(new resultObj($registro));}
  207 + if($this->v == 6){
  208 + $this->layer->open();
  209 + $shape = $this->layer->getShape(new resultObj($registro));
  210 + }
208 211 else{
209 212 if (@$this->layer->open() == MS_SUCCESS)
210 213 {
  214 +
211 215 if (@$this->layer->queryByrect($this->mapa->extent) == MS_SUCCESS)
212 216 {
213 217 $this->layer->open();
... ...
classesphp/classe_legenda.php
... ... @@ -519,7 +519,7 @@ String no formato HTML com as imagens dos símbolos
519 519 {
520 520 $versao = versao();
521 521 $versao = $versao["principal"];
522   - //error_reporting(E_ALL);
  522 + error_reporting(E_ALL);
523 523 if ($tipo == 3){$tipo = 2;} //tipo raster
524 524 if($imgdir == "")
525 525 {$dir = $dir_tmp;}
... ... @@ -539,7 +539,6 @@ String no formato HTML com as imagens dos símbolos
539 539 else
540 540 {$mapatemp = ms_newMapObj($this->localaplicacao."/aplicmap/".$t);}
541 541 $ins = "";
542   -
543 542 $l = $mapatemp->getlayer(0);
544 543 $novoss = dirname($this->mapa->symbolsetfilename)."\\".basename($mapatemp->symbolsetfilename);
545 544 $this->mapa->setsymbolset($novoss);
... ...
classesphp/funcoes_gerais.php
... ... @@ -1208,7 +1208,7 @@ function pegaValoresM($mapa,$layer,$itens,$exclui="nulo",$selecionados="nao",$ch
1208 1208 $nclasses = $layer->numclasses;
1209 1209 if (@$layer->queryByrect($mapa->extent) == MS_SUCCESS)
1210 1210 {
1211   - $layer->draw();
  1211 + //$layer->draw();
1212 1212 $sopen = $layer->open();
1213 1213 if($sopen == MS_FAILURE){return "erro";}
1214 1214 $res_count = $layer->getNumresults();
... ...
classesphp/graficos.php
... ... @@ -375,6 +375,7 @@ function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$t
375 375 {
376 376 global $interface;
377 377 //pega os valores
  378 + //error_reporting(E_ALL);
378 379 $map = ms_newMapObj($map_file);
379 380 if($interface == "googlemaps")
380 381 {
... ...
documentacao/manual_de_usuario_do_i3geo.odt
No preview for this file type
ferramentas/tabela/relatorio.php
... ... @@ -145,7 +145,10 @@ if ($itemagruparel == "")
145 145 $conta = 0;
146 146 foreach($linhas as $v)
147 147 {
148   - echo "<td>$v</td>";
  148 + if(is_numeric(trim($v)))
  149 + {echo "<td style='text-align:right'>".number_format($v,2,",",".")."</td>";}
  150 + else
  151 + {echo "<td style='text-align:left'>$v</td>";}
149 152 if ($statrel == "true")
150 153 {
151 154 $v = trim($v);
... ... @@ -167,12 +170,12 @@ if ($itemagruparel == &quot;&quot;)
167 170 echo "<tr style=background-color:orange >";
168 171 echo "<td>soma</td>";
169 172 foreach($soma as $s)
170   - echo "<td>$s</td>";
  173 + echo "<td style='text-align:right'>".number_format($s,2,",",".")."</td>";
171 174 echo "</tr>";
172 175 echo "<tr style=background-color:orange >";
173 176 echo "<td>m&eacute;dia</td>";
174 177 foreach($soma as $s)
175   - echo "<td>".($s / $ocorrencias)."</td>";
  178 + echo "<td style='text-align:right'>".number_format(($s / $ocorrencias),2,",",".")."</td>";
176 179 echo "</tr>";
177 180 }
178 181 echo "</table>";
... ... @@ -213,7 +216,10 @@ else
213 216 $conta = 0;
214 217 foreach($linhas as $v)
215 218 {
216   - echo "<td>$v</td>";
  219 + if(is_numeric(trim($v)))
  220 + {echo "<td style='text-align:right'>".number_format($v,2,",",".")."</td>";}
  221 + else
  222 + {echo "<td style='text-align:left'>$v</td>";}
217 223 if ($statrel == "true")
218 224 {
219 225 $v = trim($v);
... ... @@ -235,12 +241,12 @@ else
235 241 echo "<tr style=background-color:orange >";
236 242 echo "<td>soma</td>";
237 243 foreach($soma as $s)
238   - echo "<td>$s</td>";
  244 + echo "<td style='text-align:right'>".number_format($s,2,",",".")."</td>";
239 245 echo "</tr>";
240 246 echo "<tr style=background-color:orange >";
241 247 echo "<td>m&eacute;dia</td>";
242 248 foreach($soma as $s)
243   - echo "<td>".($s / $ocorrencias)."</td>";
  249 + echo "<td style='text-align:right'>".number_format(($s / $ocorrencias),2,",",".")."</td>";
244 250 echo "</tr>";
245 251 }
246 252 echo "</table>";
... ... @@ -249,8 +255,9 @@ else
249 255 }
250 256 function calculaarea($geo)
251 257 {
  258 + global $postgis_con;
252 259 $v = versao();
253   - if (($v["principal"] != 5) && ($postgis_con == ""))
  260 + if (($v["principal"] < 5) && ($postgis_con == ""))
254 261 {return ("erro. É necessária uma versão maior que 5.0 do Mapserver.");}
255 262 $g = $geo->towkt();
256 263 $shape = ms_shapeObjFromWkt($g);
... ...
mashups/openlayers.js.php
... ... @@ -44,7 +44,8 @@ i3GEO.editorOL = {
44 44 ol_mma: new OpenLayers.Layer.WMS(
45 45 "Base cartográfica",
46 46 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map&",
47   - {layers:'baseraster',SRS:'EPSG:4291',FORMAT:'image/png'}
  47 + {layers:'baseraster',SRS:'EPSG:4291',FORMAT:'image/png'},
  48 + {singleTile:true}
48 49 ),
49 50 ol_wms: new OpenLayers.Layer.WMS.Untiled(
50 51 "OpenLayers WMS",
... ...
mashups/openlayers.php
... ... @@ -147,7 +147,7 @@ if($temas != &quot;&quot;)
147 147 $visivel = "false";
148 148 if(in_array($tema,$visiveis))
149 149 {$visivel = "true";}
150   - $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.($layern->getmetadata("tema")).'", "../ogc.php?tema='.$tema.'&",{layers:"'.implode(",",$layers).'",transparent: "true", format: "image/png"},{visibility:'.$visivel.',isBaseLayer:'.$ebase.'})';
  150 + $objOpenLayers[] = 'new OpenLayers.Layer.WMS( "'.($layern->getmetadata("tema")).'", "../ogc.php?tema='.$tema.'&",{layers:"'.implode(",",$layers).'",transparent: "true", format: "image/png"},{singleTile:true,visibility:'.$visivel.',isBaseLayer:'.$ebase.'})';
151 151 }
152 152 else
153 153 {echo $tema." não foi encontrado.<br>";}
... ...
mashups/openlayers_compacto.js
... ... @@ -3056,7 +3056,8 @@ e_wsm: new OpenLayers.Layer.ArcGIS93Rest(
3056 3056 ol_mma: new OpenLayers.Layer.WMS(
3057 3057 "Base cartográfica",
3058 3058 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map&",
3059   -{layers:'baseraster',SRS:'EPSG:4291',FORMAT:'image/png'}
  3059 +{layers:'baseraster',SRS:'EPSG:4291',FORMAT:'image/png'},
  3060 +{singleTile:true}
3060 3061 ),
3061 3062 ol_wms: new OpenLayers.Layer.WMS.Untiled(
3062 3063 "OpenLayers WMS",
... ...
mashups/openlayers_compacto.js.php
... ... @@ -3056,7 +3056,8 @@ e_wsm: new OpenLayers.Layer.ArcGIS93Rest(
3056 3056 ol_mma: new OpenLayers.Layer.WMS(
3057 3057 "Base cartográfica",
3058 3058 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map&",
3059   -{layers:'baseraster',SRS:'EPSG:4291',FORMAT:'image/png'}
  3059 +{layers:'baseraster',SRS:'EPSG:4291',FORMAT:'image/png'},
  3060 +{singleTile:true}
3060 3061 ),
3061 3062 ol_wms: new OpenLayers.Layer.WMS.Untiled(
3062 3063 "OpenLayers WMS",
... ...
ogc.php
... ... @@ -116,12 +116,13 @@ if(isset($lista) &amp;&amp; $lista == &quot;temas&quot;)
116 116 //cria o web service
117 117 //
118 118 include("classesphp/funcoes_gerais.php");
119   -error_reporting(E_ALL);
  119 +error_reporting(0);
120 120 $versao = versao();
121 121 $versao = $versao["principal"];
122 122 $req = ms_newowsrequestobj();
123 123 $tipo = "";
124 124 $_GET = array_merge($_GET,$_POST);
  125 +
125 126 if(isset($_GET["sld"]) || isset($_GET["filter"]))
126 127 {$cache = false;}
127 128 foreach ($_GET as $k=>$v)
... ...
symbols/simbolosptv6.sym
... ... @@ -569,7 +569,6 @@ TYPE TRUETYPE
569 569 FONT "arial"
570 570 CHARACTER "#"
571 571 ANTIALIAS TRUE
572   -GAP 10
573 572 END
574 573  
575 574  
... ...
temas/grid.map 0 → 100644
... ... @@ -0,0 +1,63 @@
  1 +MAP
  2 + FONTSET "c:\ms4w\apache\htdocs\i3geo\symbols\fontes.txt"
  3 + SYMBOLSET "c:\ms4w\apache\htdocs\i3geo\symbols\simbolos.sym"
  4 + LAYER
  5 + METADATA
  6 + "ltempoitemimagem" ""
  7 + "cache" "SIM"
  8 + "CLASSE" "SIM"
  9 + "ltempoitemdescricao" ""
  10 + "palletestep" ""
  11 + "ltempoiteminicio" ""
  12 + "permitekmz" "sim"
  13 + "ltempoitemtip" ""
  14 + "description_template" ""
  15 + "ltempoitemtitulo" ""
  16 + "ltempoitemlink" ""
  17 + "palletefile" ""
  18 + "NOMEORIGINAL" ""
  19 + "permitedownload" "sim"
  20 + "ltempoformatodata" ""
  21 + "ltempoitemicone" ""
  22 + "download" "SIM"
  23 + "permitekml" "sim"
  24 + "permiteogc" ""
  25 + "convcaracter" ""
  26 + "TEMA" "grade de coordenadas"
  27 + "identifica" "NAO"
  28 + "editorsql" ""
  29 + "ltempoitemfim" ""
  30 + END
  31 + NAME "grid"
  32 + STATUS OFF
  33 + TYPE LINE
  34 +PROJECTION
  35 + "init=epsg:4291"
  36 +END
  37 + CLASS
  38 + NAME "Graticule"
  39 + COLOR 0 0 0
  40 + LABEL
  41 + COLOR 255 0 0
  42 + SIZE 8
  43 + POSITION AUTO
  44 + PARTIALS FALSE
  45 + BUFFER 5
  46 + OUTLINECOLOR 255 255 255
  47 + END
  48 + END
  49 + GRID
  50 + LABELFORMAT "DDMM"
  51 + # LABELFORMAT '%g°' # dec degrees with symbol
  52 + MAXARCS 10
  53 + MAXINTERVAL 5
  54 + MAXSUBDIVIDE 2
  55 + # LABELFORMAT '%7.0f m' # nice if a projected SRS used
  56 + # MININTERVAL 20000
  57 + # MAXSUBDIVIDE 2
  58 + END
  59 +
  60 +
  61 + END
  62 +
  63 +END
0 64 \ No newline at end of file
... ...
testamapfile.php
... ... @@ -120,6 +120,7 @@ if (isset($map) &amp;&amp; $map != &quot;&quot;)
120 120 function verifica($map,$solegenda)
121 121 {
122 122 global $tipo,$locaplic,$postgis_mapa,$versao,$base;
  123 + $mapUrl = $map;
123 124 if ($tipo == "mini" && file_exists('temas/miniaturas/'.$map.".mini.png"))
124 125 {
125 126 Header("Content-type: image/png");
... ... @@ -190,8 +191,8 @@ function verifica($map,$solegenda)
190 191 eval($pegarext."(\$mapa);");
191 192 }
192 193 else{
193   - if(file_exists($tema))
194   - {$nmapa = ms_newMapObj($tema);}
  194 + if(file_exists($mapUrl))
  195 + {$nmapa = ms_newMapObj($mapUrl);}
195 196 else{
196 197 if(@ms_newMapObj($locaplic."/".$tema))
197 198 {
... ...