Commit 39049f6d12b6b6e75350351f5bd81cfa550e569d

Authored by Edmar Moretti
1 parent 4f0aa56b

Correção na opção de inclusão de toponímia em classes

classesphp/classe_temas.php
... ... @@ -1286,7 +1286,7 @@ function: adicionaLabel
1286 1286 Adiciona LABEL em uma classe de um tema
1287 1287 */
1288 1288 function adicionaLabel($novac,$wrap,$fonte,$tamanho,$angulo,$fundo,$sombra,$cor,$outlinecolor,$shadowcolor,$shadowsizex,$shadowsizey,$force,$mindistance,$minfeaturesize,$offsetx,$offsety,$partials,$position,$texto=""){
1289   - if($this->vi >= 60300){
  1289 + if($this->vi >= 60300){
1290 1290 while($novac->numlabels > 0){
1291 1291 $novac->removeLabel(0);
1292 1292 }
... ... @@ -1307,7 +1307,6 @@ Adiciona LABEL em uma classe de um tema
1307 1307 }
1308 1308 else{
1309 1309 $s = "CLASS LABEL TEXT '".$texto."' END END";
1310   - //$s = "CLASS LABEL TEXT '[".$texto."]' END END";
1311 1310 $novac->updateFromString($s);
1312 1311 }
1313 1312 }
... ... @@ -1316,6 +1315,7 @@ Adiciona LABEL em uma classe de um tema
1316 1315 }
1317 1316 else{
1318 1317 $label = $novac->label;
  1318 + $novac->settext("'".$texto."'");
1319 1319 }
1320 1320 if($wrap != ""){
1321 1321 $label->set("maxlength",1);
... ... @@ -1370,10 +1370,19 @@ Adiciona LABEL em uma classe de um tema
1370 1370 }
1371 1371 }
1372 1372 function removeLabel($iclasse){
1373   - $classe = $this->layer->getclass($iclasse);
1374   - while($classe->numlabels > 0){
1375   - $classe->removeLabel(0);
1376   - }
  1373 + $classe = $this->layer->getclass($iclasse);
  1374 + if($this->vi >= 60300){
  1375 + while($classe->numlabels > 0){
  1376 + $classe->removeLabel(0);
  1377 + }
  1378 + } else {
  1379 + $label = $classe->label;
  1380 + $label->set("type",MS_TRUETYPE);
  1381 + $label->set("font","arial");
  1382 + $label->set("size",0);
  1383 + $label->removeBinding(0);
  1384 + $classe->settext($texto);
  1385 + }
1377 1386 /*
1378 1387 $nlabel = $classe->numlabels;
1379 1388 for($i=0;$i<$nlabel;$i++){
... ...
testainstal/index.php
... ... @@ -102,7 +102,7 @@ include &quot;../init/head.php&quot;;
102 102  
103 103 if(empty($_POST["senha"]) || empty($_POST["usuario"])){
104 104 //opcoes de criacao de pastas
105   - if (strtoupper(substr(PHP_OS, 0, 3) != 'WIN')){
  105 + //if (strtoupper(substr(PHP_OS, 0, 3) != 'WIN')){
106 106  
107 107 $d = dirname(dirname(__FILE__));
108 108 echo <<<HTML
... ... @@ -145,7 +145,7 @@ echo &lt;&lt;&lt;HTML
145 145 $.material.init();
146 146 </script>
147 147 HTML;
148   - }
  148 + //}
149 149 exit;
150 150 }
151 151 else{
... ...