Commit e8b9c39cdaf5bca95e3a757b4aadc43c883b258a
1 parent
c821f80e
Exists in
master
and in
7 other branches
#242
Showing
17 changed files
with
95 additions
and
95 deletions
Show diff stats
admin/php/editormapfile.php
| ... | ... | @@ -580,21 +580,21 @@ function pegaGeral() |
| 580 | 580 | $mapa = ms_newMapObj($mapfile); |
| 581 | 581 | $layer = $mapa->getlayerbyname($codigoLayer); |
| 582 | 582 | $dados["type"] = $layer->type; |
| 583 | - $dados["filter"] = $layer->getfilter(); | |
| 583 | + $dados["filter"] = $layer->getfilterstring(); | |
| 584 | 584 | if($dados["filter"]== ""){$dados["filter"] = "";} |
| 585 | 585 | $dados["filteritem"] = $layer->filteritem; |
| 586 | 586 | $dados["group"] = $layer->group; |
| 587 | 587 | //$dados["labelangleitem"] = $layer->labelangleitem; |
| 588 | 588 | $dados["labelitem"] = $layer->labelitem; |
| 589 | - $dados["labelmaxscale"] = $layer->labelmaxscale; | |
| 590 | - $dados["labelmaxscale"] = $layer->labelmaxscale; | |
| 591 | - $dados["labelminscale"] = $layer->labelminscale; | |
| 589 | + $dados["labelmaxscale"] = $layer->labelmaxscaledenom; | |
| 590 | + $dados["labelmaxscale"] = $layer->labelmaxscaledenom; | |
| 591 | + $dados["labelminscale"] = $layer->labelminscaledenom; | |
| 592 | 592 | //$dados["labelsizeitem"] = $layer->labelsizeitem; |
| 593 | - $dados["maxscale"] = $layer->maxscale; | |
| 594 | - $dados["minscale"] = $layer->minscale; | |
| 593 | + $dados["maxscale"] = $layer->maxscaledenom; | |
| 594 | + $dados["minscale"] = $layer->minscaledenom; | |
| 595 | 595 | $dados["offsite"] = $layer->offsite->red.",".$layer->offsite->green.",".$layer->offsite->blue; |
| 596 | 596 | $v["principal"] == "4" ? $dados["opacity"] = $layer->transparency : $dados["opacity"] = $layer->opacity; |
| 597 | - $dados["symbolscale"] = $layer->symbolscale; | |
| 597 | + $dados["symbolscale"] = $layer->symbolscaledenom; | |
| 598 | 598 | $dados["tolerance"] = $layer->tolerance; |
| 599 | 599 | $dados["toleranceunits"] = $layer->toleranceunits; |
| 600 | 600 | $dados["status"] = $layer->status; |
| ... | ... | @@ -629,11 +629,11 @@ function alterarGeral() |
| 629 | 629 | $layer->set("group",$group); |
| 630 | 630 | //$layer->set("labelangleitem",$labelangleitem); |
| 631 | 631 | $layer->set("labelitem",$labelitem); |
| 632 | - $layer->set("labelmaxscale",$labelmaxscale); | |
| 633 | - $layer->set("labelminscale",$labelminscale); | |
| 632 | + $layer->set("labelmaxscaledenom",$labelmaxscale); | |
| 633 | + $layer->set("labelminscaledenom",$labelminscale); | |
| 634 | 634 | //$layer->set("labelsizeitem",$labelsizeitem); |
| 635 | - $layer->set("maxscale",$maxscale); | |
| 636 | - $layer->set("minscale",$minscale); | |
| 635 | + $layer->set("maxscaledenom",$maxscale); | |
| 636 | + $layer->set("minscaledenom",$minscale); | |
| 637 | 637 | $cor = $layer->offsite; |
| 638 | 638 | $c = explode(",",$offsite); |
| 639 | 639 | if(count($c) < 3) |
| ... | ... | @@ -642,7 +642,7 @@ function alterarGeral() |
| 642 | 642 | $layer->offsite->red.",".$layer->offsite->green.",".$layer->offsite->blue; |
| 643 | 643 | $v["principal"] == "4" ? $layer->set("transparency",$opacity) : $layer->set("opacity",$opacity); |
| 644 | 644 | |
| 645 | - $layer->set("symbolscale",$symbolscale); | |
| 645 | + $layer->set("symbolscaledenom",$symbolscale); | |
| 646 | 646 | $layer->set("tolerance",$tolerance); |
| 647 | 647 | $layer->set("toleranceunits",$toleranceunits); |
| 648 | 648 | $layer->set("status",$status); |
| ... | ... | @@ -679,15 +679,15 @@ function pegaClasseGeral() |
| 679 | 679 | $classe = $layer->getclass($indiceClasse); |
| 680 | 680 | $dados["name"] = $classe->name; |
| 681 | 681 | $dados["title"] = $classe->title; |
| 682 | - $temp = $classe->getExpression(); | |
| 682 | + $temp = $classe->getExpressionString(); | |
| 683 | 683 | $temp = str_replace("[","_C",$temp); |
| 684 | 684 | $temp = str_replace("]","C_",$temp); |
| 685 | 685 | $temp = str_replace("'","_A_",$temp); |
| 686 | 686 | //substitui caracteres que dão problemas |
| 687 | 687 | $dados["expression"] = $temp; |
| 688 | 688 | $dados["keyimage"] = $classe->keyimage; |
| 689 | - $dados["maxscale"] = $classe->maxscale; | |
| 690 | - $dados["minscale"] = $classe->minscale; | |
| 689 | + $dados["maxscale"] = $classe->maxscaledenom; | |
| 690 | + $dados["minscale"] = $classe->minscaledenom; | |
| 691 | 691 | $dados["status"] = $classe->status; |
| 692 | 692 | //$dados["text"] = $classe->getTextString(); |
| 693 | 693 | $dados["codigoMap"] = $codigoMap; |
| ... | ... | @@ -711,8 +711,8 @@ function alterarClasseGeral() |
| 711 | 711 | $temp = str_replace("_A_","'",$temp); |
| 712 | 712 | $classe->setexpression($temp); |
| 713 | 713 | $classe->set("keyimage",$keyimage); |
| 714 | - $classe->set("maxscale",$maxscale); | |
| 715 | - $classe->set("minscale",$minscale); | |
| 714 | + $classe->set("maxscaledenom",$maxscale); | |
| 715 | + $classe->set("minscaledenom",$minscale); | |
| 716 | 716 | $classe->set("status",$status); |
| 717 | 717 | $mapa->save($mapfile); |
| 718 | 718 | removeCabecalho($mapfile); | ... | ... |
admin/php/parsemapfile.php
| ... | ... | @@ -60,7 +60,7 @@ function tipoLegenda($layername) |
| 60 | 60 | if($nclasses == 1) |
| 61 | 61 | { |
| 62 | 62 | $classe = $layer->getclass(0); |
| 63 | - $expressao = $classe->getExpression(); | |
| 63 | + $expressao = $classe->getExpressionString(); | |
| 64 | 64 | if($expressao == "") |
| 65 | 65 | {return "simples";exit;} |
| 66 | 66 | $expressao = str_replace("'eq'","="); |
| ... | ... | @@ -74,7 +74,7 @@ function tipoLegenda($layername) |
| 74 | 74 | for($i=0;$i<$nclasses;++$i) |
| 75 | 75 | { |
| 76 | 76 | $classe = $layer->getclass($i); |
| 77 | - $expressao = $classe->getExpression(); | |
| 77 | + $expressao = $classe->getExpressionString(); | |
| 78 | 78 | if(count(explode("[",$expressao)) > 2) |
| 79 | 79 | { |
| 80 | 80 | return "intervalo"; |
| ... | ... | @@ -114,7 +114,7 @@ function legendaValorUnico($layername) |
| 114 | 114 | $outlinecolor[] = "'".$cor->red.",".$cor->green.",".$cor->blue.",255'"; |
| 115 | 115 | $cor = $estilo->color; |
| 116 | 116 | $color[] = "'".$cor->red.",".$cor->green.",".$cor->blue.",255'"; |
| 117 | - $expressao = $classe->getExpression(); | |
| 117 | + $expressao = $classe->getExpressionString(); | |
| 118 | 118 | $expressao = str_replace("'eq","=",$expressao); |
| 119 | 119 | $expressao = str_replace("'eq ","=",$expressao); |
| 120 | 120 | $expressao = str_replace("' eq","=",$expressao); |
| ... | ... | @@ -339,22 +339,22 @@ function mapfile() |
| 339 | 339 | $xml .= "<tabela>".$esquemaTabela[1]."</tabela>"; |
| 340 | 340 | $xml .= "<where>".$s[1]."</where>"; |
| 341 | 341 | $xml .= "<type>".$objlayertypes[$layer->type]."</type>\n"; |
| 342 | - $xml .= "<filter>".$layer->getfilter()."</filter>\n"; | |
| 342 | + $xml .= "<filter>".$layer->getfilterstring()."</filter>\n"; | |
| 343 | 343 | $xml .= "<filteritem>$layer->filteritem</filteritem>\n"; |
| 344 | 344 | $xml .= "<labelangleitem>$layer->labelangleitem</labelangleitem>\n"; |
| 345 | 345 | $xml .= "<labelitem>$layer->labelitem</labelitem>\n"; |
| 346 | - $xml .= "<labelmaxscale>$layer->labelmaxscale</labelmaxscale>\n"; | |
| 347 | - $xml .= "<labelminscale>$layer->labelminscale</labelminscale>\n"; | |
| 348 | - $xml .= "<labelsizeitem>$layer->labelsizeitem</labelsizeitem>\n"; | |
| 346 | + $xml .= "<labelmaxscale>$layer->labelmaxscaledenom</labelmaxscale>\n"; | |
| 347 | + $xml .= "<labelminscale>$layer->labelminscaledenom</labelminscale>\n"; | |
| 348 | + $xml .= "<labelsizeitem></labelsizeitem>\n"; | |
| 349 | 349 | } |
| 350 | 350 | $xml .= "<group>$layer->group</group>\n"; |
| 351 | - $xml .= "<maxscale>$layer->maxscale</maxscale>\n"; | |
| 352 | - $xml .= "<minscale>$layer->minscale</minscale>\n"; | |
| 351 | + $xml .= "<maxscale>$layer->maxscaledenom</maxscale>\n"; | |
| 352 | + $xml .= "<minscale>$layer->minscaledenom</minscale>\n"; | |
| 353 | 353 | $xml .= "<offsite>".$layer->offsite->red.",".$layer->offsite->green.",".$layer->offsite->blue."</offsite>\n"; |
| 354 | 354 | $xml .= "<opacity>$layer->opacity</opacity>\n"; |
| 355 | 355 | if($ct != "MS_WMS") |
| 356 | 356 | { |
| 357 | - $xml .= "<symbolscale>$layer->symbolscale</symbolscale>\n"; | |
| 357 | + $xml .= "<symbolscale>$layer->symbolscaledenom</symbolscale>\n"; | |
| 358 | 358 | $xml .= "<tileindex>$layer->tileindex</tileindex>\n"; |
| 359 | 359 | $xml .= "<tileitem>$layer->tileitem</tileitem>\n"; |
| 360 | 360 | $xml .= "<tolerance>$layer->tolerance</tolerance>\n"; |
| ... | ... | @@ -381,7 +381,7 @@ function pegaClasses($xml) |
| 381 | 381 | $xml .= "<classe>\n"; |
| 382 | 382 | $classe = $layer->getclass($i); |
| 383 | 383 | $xml .= "<name>".mb_convert_encoding(($classe->name),"UTF-8","ISO-8859-1")."</name>\n"; |
| 384 | - $xml .= "<expression>".$classe->getExpression()."</expression>\n"; | |
| 384 | + $xml .= "<expression>".$classe->getExpressionString()."</expression>\n"; | |
| 385 | 385 | $xml .= "<keyimage>$classe->keyimage</keyimage>\n"; |
| 386 | 386 | $xml .= "<size>$classe->size</size>\n"; |
| 387 | 387 | $xml .= "<symbolname>$classe->symbolname</symbolname>\n"; | ... | ... |
admin/php/temas.php
| ... | ... | @@ -413,21 +413,21 @@ function pegaCaracteristicasGerais() |
| 413 | 413 | $dados["connectiontype"] = $layer->connectiontype; |
| 414 | 414 | $dados["data"] = $layer->data; |
| 415 | 415 | $dados["type"] = $layer->type; |
| 416 | - $dados["filter"] = $layer->getfilter(); | |
| 416 | + $dados["filter"] = $layer->getfilterstring(); | |
| 417 | 417 | if($dados["filter"]== ""){$dados["filter"] = "";} |
| 418 | 418 | $dados["filteritem"] = $layer->filteritem; |
| 419 | 419 | $dados["group"] = $layer->group; |
| 420 | 420 | $dados["labelangleitem"] = $layer->labelangleitem; |
| 421 | 421 | $dados["labelitem"] = $layer->labelitem; |
| 422 | - $dados["labelmaxscale"] = $layer->labelmaxscale; | |
| 423 | - $dados["labelmaxscale"] = $layer->labelmaxscale; | |
| 424 | - $dados["labelminscale"] = $layer->labelminscale; | |
| 425 | - $dados["labelsizeitem"] = $layer->labelsizeitem; | |
| 426 | - $dados["maxscale"] = $layer->maxscale; | |
| 427 | - $dados["minscale"] = $layer->minscale; | |
| 422 | + $dados["labelmaxscale"] = $layer->labelmaxscaledenom; | |
| 423 | + $dados["labelmaxscale"] = $layer->labelmaxscaledenom; | |
| 424 | + $dados["labelminscale"] = $layer->labelminscaledenom; | |
| 425 | + //$dados["labelsizeitem"] = $layer->labelsizeitem; | |
| 426 | + $dados["maxscale"] = $layer->maxscaledenom; | |
| 427 | + $dados["minscale"] = $layer->minscaledenom; | |
| 428 | 428 | $dados["offsite"] = $layer->offsite->red.",".$layer->offsite->green.",".$layer->offsite->blue; |
| 429 | 429 | $dados["opacity"] = $layer->opacity; |
| 430 | - $dados["symbolscale"] = $layer->symbolscale; | |
| 430 | + $dados["symbolscale"] = $layer->symbolscaledenom; | |
| 431 | 431 | $dados["tileindex"] = $layer->tileindex; |
| 432 | 432 | $dados["tileitem"] = $layer->tileitem; |
| 433 | 433 | $dados["tolerance"] = $layer->tolerance; |
| ... | ... | @@ -484,10 +484,10 @@ function pegaClasses() |
| 484 | 484 | { |
| 485 | 485 | $classe = $layer->getclass($i); |
| 486 | 486 | $temp["name"] = mb_convert_encoding(($classe->name),"UTF-8","ISO-8859-1"); |
| 487 | - $temp["expression"] = $classe->getExpression(); | |
| 487 | + $temp["expression"] = $classe->getExpressionString(); | |
| 488 | 488 | $temp["keyimage"] = $classe->keyimage; |
| 489 | - $temp["maxscale"] = $classe->maxscale; | |
| 490 | - $temp["minscale"] = $classe->minscale; | |
| 489 | + $temp["maxscale"] = $classe->maxscaledenom; | |
| 490 | + $temp["minscale"] = $classe->minscaledenom; | |
| 491 | 491 | $temp["maxsize"] = $classe->maxsize; |
| 492 | 492 | $temp["minsize"] = $classe->minsize; |
| 493 | 493 | $temp["size"] = $classe->size; | ... | ... |
classesphp/classe_analise.php
| ... | ... | @@ -969,7 +969,7 @@ $locaplic - Localização do I3geo. |
| 969 | 969 | { |
| 970 | 970 | $result = $layerPt->getResult($i); |
| 971 | 971 | $shp_index = $result->shapeindex; |
| 972 | - $shape = $layerPt->getshape(-1, $shp_index); | |
| 972 | + $shape = $layerPt->getfeature($shp_index,-1); | |
| 973 | 973 | $pontos[] = $shape; |
| 974 | 974 | } |
| 975 | 975 | $layerPt->close(); |
| ... | ... | @@ -1032,7 +1032,7 @@ $locaplic - Localização do I3geo. |
| 1032 | 1032 | { |
| 1033 | 1033 | $result = $layer->getResult(0); |
| 1034 | 1034 | $shp_index = $result->shapeindex; |
| 1035 | - $shape = $layer->getshape(-1, $shp_index); | |
| 1035 | + $shape = $layer->getfeature($shp_index,-1); | |
| 1036 | 1036 | foreach ($itens as $item) |
| 1037 | 1037 | {$reg[] = $shape->values[$item];} |
| 1038 | 1038 | } |
| ... | ... | @@ -1231,7 +1231,7 @@ nome do layer criado com o buffer. |
| 1231 | 1231 | { |
| 1232 | 1232 | $result = $this->layer->getResult($i); |
| 1233 | 1233 | $shp_index = $result->shapeindex; |
| 1234 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 1234 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 1235 | 1235 | //calcula a extensão geografica |
| 1236 | 1236 | $rect = $shape->bounds; |
| 1237 | 1237 | $projInObj = ms_newprojectionobj("proj=latlong"); |
| ... | ... | @@ -1344,7 +1344,7 @@ $locaplic - Localização do I3geo. |
| 1344 | 1344 | { |
| 1345 | 1345 | $result = $this->layer->getResult($i); |
| 1346 | 1346 | $shp_index = $result->shapeindex; |
| 1347 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 1347 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 1348 | 1348 | $LineObj = ms_newLineObj(); |
| 1349 | 1349 | $LineObj->add($shape->getCentroid()); |
| 1350 | 1350 | $ShapeObj = ms_newShapeObj(MS_SHAPE_POINT); |
| ... | ... | @@ -1645,7 +1645,7 @@ $npty - Número de pontos em Y (opcional) |
| 1645 | 1645 | $novolayer->set("data",$nomeshp.".shp"); |
| 1646 | 1646 | $novolayer->setmetadata("DOWNLOAD","SIM"); |
| 1647 | 1647 | $novolayer->setmetadata("TEMALOCAL","SIM"); |
| 1648 | - $novolayer->set("transparency","50"); | |
| 1648 | + $novolayer->set("opacity","50"); | |
| 1649 | 1649 | if (file_exists(($this->arquivo)."qy")) |
| 1650 | 1650 | {unlink (($this->arquivo)."qy");} |
| 1651 | 1651 | return("ok"); |
| ... | ... | @@ -1798,7 +1798,7 @@ $npty - Número de pontos em Y (opcional) |
| 1798 | 1798 | $novolayer->set("data",$nomeshp.".shp"); |
| 1799 | 1799 | $novolayer->setmetadata("DOWNLOAD","SIM"); |
| 1800 | 1800 | $novolayer->setmetadata("TEMALOCAL","SIM"); |
| 1801 | - $novolayer->set("transparency","50"); | |
| 1801 | + $novolayer->set("opacity","50"); | |
| 1802 | 1802 | if (file_exists(($this->arquivo)."qy")) |
| 1803 | 1803 | {unlink (($this->arquivo)."qy");} |
| 1804 | 1804 | return("ok"); |
| ... | ... | @@ -1867,7 +1867,7 @@ $locaplic - Localização do I3geo |
| 1867 | 1867 | $novolayer->set("data",$nomeshp.".shp"); |
| 1868 | 1868 | $novolayer->setmetadata("DOWNLOAD","SIM"); |
| 1869 | 1869 | $novolayer->setmetadata("TEMALOCAL","SIM"); |
| 1870 | - $novolayer->set("transparency","80"); | |
| 1870 | + $novolayer->set("opacity","80"); | |
| 1871 | 1871 | if (file_exists(($this->arquivo)."qy")) |
| 1872 | 1872 | {unlink (($this->arquivo)."qy");} |
| 1873 | 1873 | return("ok"); |
| ... | ... | @@ -1903,7 +1903,7 @@ Salva o mapa acrescentando um novo layer com o resultado. |
| 1903 | 1903 | { |
| 1904 | 1904 | $result = $this->layer->getResult($i); |
| 1905 | 1905 | $shp_index = $result->shapeindex; |
| 1906 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 1906 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 1907 | 1907 | if($item != "") |
| 1908 | 1908 | $valor = $shape->values[$item]; |
| 1909 | 1909 | else |
| ... | ... | @@ -1921,7 +1921,7 @@ Salva o mapa acrescentando um novo layer com o resultado. |
| 1921 | 1921 | { |
| 1922 | 1922 | foreach ($i as $indice) |
| 1923 | 1923 | { |
| 1924 | - $shape = $this->layer->getshape(-1, $indice); | |
| 1924 | + $shape = $this->layer->getfeature($indice,-1); | |
| 1925 | 1925 | if($item != "") |
| 1926 | 1926 | $valor = $shape->values[$item]; |
| 1927 | 1927 | else |
| ... | ... | @@ -2023,7 +2023,7 @@ $locaplic - Localização do I3geo |
| 2023 | 2023 | { |
| 2024 | 2024 | $result = $this->layer->getResult($i); |
| 2025 | 2025 | $shp_index = $result->shapeindex; |
| 2026 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 2026 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 2027 | 2027 | if($item != "") |
| 2028 | 2028 | $valor = $shape->values[$item]; |
| 2029 | 2029 | else |
| ... | ... | @@ -2044,7 +2044,7 @@ $locaplic - Localização do I3geo |
| 2044 | 2044 | { |
| 2045 | 2045 | foreach ($i as $indice) |
| 2046 | 2046 | { |
| 2047 | - $shape = $this->layer->getshape(-1, $indice); | |
| 2047 | + $shape = $this->layer->getfeature($indice,-1); | |
| 2048 | 2048 | if($item != "") |
| 2049 | 2049 | $valor = $shape->values[$item]; |
| 2050 | 2050 | else |
| ... | ... | @@ -2427,7 +2427,7 @@ function gravaCoordenadasPt($tema,$limitepontos="TRUE",$extendelimite) |
| 2427 | 2427 | { |
| 2428 | 2428 | $result = $layerPt->getResult($i); |
| 2429 | 2429 | $shp_index = $result->shapeindex; |
| 2430 | - $shape = $layerPt->getshape(-1, $shp_index); | |
| 2430 | + $shape = $layerPt->getfeature($shp_index,-1); | |
| 2431 | 2431 | $lineo = $shape->line(0); |
| 2432 | 2432 | $pt = $lineo->point(0); |
| 2433 | 2433 | if (($prjTema != "") && ($prjMapa != $prjTema)) | ... | ... |
classesphp/classe_atributos.php
| ... | ... | @@ -156,7 +156,7 @@ $registro - Índice do registro que será consultado. |
| 156 | 156 | if (@$this->layer->queryByrect($this->mapa->extent) == MS_SUCCESS) |
| 157 | 157 | { |
| 158 | 158 | $this->layer->open(); |
| 159 | - $shape = $this->layer->getshape(-1, $registro); | |
| 159 | + $shape = $this->layer->getfeature($registro,-1); | |
| 160 | 160 | $fechou = $this->layer->close(); |
| 161 | 161 | $ext = $this->extensaoShape($shape); |
| 162 | 162 | } |
| ... | ... | @@ -230,7 +230,7 @@ $tipo - Tipo de busca brasil|null |
| 230 | 230 | { |
| 231 | 231 | $result = $this->layer->getResult($i); |
| 232 | 232 | $shp_index = $result->shapeindex; |
| 233 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 233 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 234 | 234 | $v = trim($shape->values[$item]); |
| 235 | 235 | if (function_exists("mb_convert_encoding")) |
| 236 | 236 | {$v = mb_convert_encoding($v,"UTF-8","ISO-8859-1");} |
| ... | ... | @@ -304,7 +304,7 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona |
| 304 | 304 | { |
| 305 | 305 | $result = $this->layer->getResult($i); |
| 306 | 306 | $shp_index = $result->shapeindex; |
| 307 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 307 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 308 | 308 | $valori = trim($shape->values[$item]); |
| 309 | 309 | if (function_exists("mb_convert_encoding")) |
| 310 | 310 | {$valori = mb_convert_encoding($valori,"UTF-8","ISO-8859-1");} |
| ... | ... | @@ -342,7 +342,7 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona |
| 342 | 342 | { |
| 343 | 343 | $result = $this->layer->getResult($i); |
| 344 | 344 | $shp_index = $result->shapeindex; |
| 345 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 345 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 346 | 346 | $valori = ""; |
| 347 | 347 | if(@$shape->values[$item]) |
| 348 | 348 | { |
| ... | ... | @@ -411,7 +411,7 @@ $onde - Tipo de abrangência espacial (brasil ou mapa) |
| 411 | 411 | $this->layer = $l; |
| 412 | 412 | if ($l->data == "") |
| 413 | 413 | {return "Erro. O tema não tem tabela";} |
| 414 | - $filtro = $l->getfilter(); | |
| 414 | + $filtro = $l->getfilterstring(); | |
| 415 | 415 | if ($filtro != ""){$l->setfilter("");} |
| 416 | 416 | $buscas = "ÁÃÓÕÔáàãâóòôõúûíéêç"; |
| 417 | 417 | $buscasUTF = mb_convert_encoding($buscas,"UTF-8","ISO-8859-1"); |
| ... | ... | @@ -481,7 +481,7 @@ Include: |
| 481 | 481 | $this->layer->set("template","none.htm"); |
| 482 | 482 | $items = pegaItens($this->layer); |
| 483 | 483 | $valores = array(); |
| 484 | - $filtro = $this->layer->getfilter(); | |
| 484 | + $filtro = $this->layer->getfilterstring(); | |
| 485 | 485 | if ($filtro != ""){$this->layer->setfilter("");} |
| 486 | 486 | //le o arquivo de query se existir e checa se existe seleção para o tema |
| 487 | 487 | $existesel = "nao"; |
| ... | ... | @@ -498,7 +498,7 @@ Include: |
| 498 | 498 | { |
| 499 | 499 | $result = $this->layer->getResult($i); |
| 500 | 500 | $shp_index = $result->shapeindex; |
| 501 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 501 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 502 | 502 | $v = $shape->values[$item]; |
| 503 | 503 | $valores[] = $v; |
| 504 | 504 | } |
| ... | ... | @@ -1020,7 +1020,7 @@ function identificaQBP($tema,$x,$y,$map_file,$resolucao,$item="",$tiporetorno="" |
| 1020 | 1020 | $valori = array(); |
| 1021 | 1021 | $result = $layer->getResult($i); |
| 1022 | 1022 | $shp_index = $result->shapeindex; |
| 1023 | - $shape = $layer->getshape(-1, $shp_index); | |
| 1023 | + $shape = $layer->getfeature($shp_index,-1); | |
| 1024 | 1024 | if ($tiporetorno == "shape") |
| 1025 | 1025 | { |
| 1026 | 1026 | $layer->close(); |
| ... | ... | @@ -1259,7 +1259,7 @@ function identificaQBP2($tema,$x,$y,$map_file,$resolucao,$item="",$tiporetorno=" |
| 1259 | 1259 | $valori = array(); |
| 1260 | 1260 | $result = $layer->getResult($i); |
| 1261 | 1261 | $shp_index = $result->shapeindex; |
| 1262 | - $shape = $layer->getshape(-1, $shp_index); | |
| 1262 | + $shape = $layer->getfeature($shp_index,-1); | |
| 1263 | 1263 | $conta = 0; |
| 1264 | 1264 | foreach ($itens as $it) |
| 1265 | 1265 | { | ... | ... |
classesphp/classe_legenda.php
| ... | ... | @@ -306,7 +306,7 @@ array |
| 306 | 306 | $nomeclasse = $classe->name; |
| 307 | 307 | if (function_exists("mb_convert_encoding")) |
| 308 | 308 | {$nomeclasse = mb_convert_encoding($nomeclasse,"UTF-8","ISO-8859-1");} |
| 309 | - $nomeexp = $classe->getexpression(); | |
| 309 | + $nomeexp = $classe->getExpressionString(); | |
| 310 | 310 | if (function_exists("mb_convert_encoding")) |
| 311 | 311 | {$nomeexp = mb_convert_encoding($nomeexp,"UTF-8","ISO-8859-1");} |
| 312 | 312 | ... | ... |
classesphp/classe_mapa.php
| ... | ... | @@ -125,7 +125,7 @@ Grava a imagem do mapa atual |
| 125 | 125 | $nome = ($imgo->imagepath).nomeRandomico().".png"; |
| 126 | 126 | $imgo->saveImage($nome); |
| 127 | 127 | $nome = ($imgo->imageurl).basename($nome); |
| 128 | - $imgo->free(); | |
| 128 | + //$imgo->free(); | |
| 129 | 129 | return ($nome); |
| 130 | 130 | } |
| 131 | 131 | /* |
| ... | ... | @@ -185,13 +185,13 @@ string - javascript com os parametros |
| 185 | 185 | //verifica se existe restrição de escala |
| 186 | 186 | // |
| 187 | 187 | $contextoescala = "nao"; |
| 188 | - if(($oLayer->minscale > 0) || ($oLayer->maxscale > 0)) | |
| 188 | + if(($oLayer->minscaledenom > 0) || ($oLayer->maxscaledenom > 0)) | |
| 189 | 189 | {$contextoescala = "sim";} |
| 190 | 190 | $temas[] = array( |
| 191 | 191 | "name"=>($oLayer->name), |
| 192 | 192 | "status"=>($oLayer->status), |
| 193 | 193 | "tema"=>(mb_convert_encoding(($oLayer->getmetadata("tema")),"UTF-8","ISO-8859-1")), |
| 194 | - "transparency"=>($oLayer->transparency), | |
| 194 | + "transparency"=>($oLayer->opacity), | |
| 195 | 195 | "type"=>($oLayer->type), |
| 196 | 196 | "sel"=>$sel, |
| 197 | 197 | "escala"=>$escala, |
| ... | ... | @@ -345,7 +345,7 @@ Include: |
| 345 | 345 | $nomer = $locmapserv."?map=".$this->arquivo."&mode=map&".nomeRandomico(); |
| 346 | 346 | } |
| 347 | 347 | $res = "g_locidentifica='".$locidentifica."';g_sistemas='".$locsistemas."';var g_celula=".$this->mapa->cellsize.";var mapscale = ".$this->mapa->scale.";var mapres=".$this->mapa->resolution.";var mapcellsize=".$this->mapa->cellsize.";var mapexten='".$ext."';var mapimagem='".$nomer."';var mapwidth=".$imgo->width.";var mapheight=".$imgo->height.";var mappath='".$imgo->imagepath."';var mapurl='".$imgo->imageurl."'"; |
| 348 | - $imgo->free(); | |
| 348 | + //$imgo->free(); | |
| 349 | 349 | return $res; |
| 350 | 350 | } |
| 351 | 351 | /* |
| ... | ... | @@ -366,7 +366,7 @@ string - javascript com as variáveis para redesenho do mapa |
| 366 | 366 | $e = $this->mapa->extent; |
| 367 | 367 | $w = $this->mapa->width; |
| 368 | 368 | $h = $this->mapa->height; |
| 369 | - $s = $this->mapa->scale; | |
| 369 | + $s = $this->mapa->scaledenom; | |
| 370 | 370 | $this->mapa = desligamargem($this->mapa); |
| 371 | 371 | $pt = ms_newPointObj(); |
| 372 | 372 | //desenha o leste |
| ... | ... | @@ -1394,7 +1394,7 @@ $arq - Nome do shape file. |
| 1394 | 1394 | if (file_exists($arq)) |
| 1395 | 1395 | { |
| 1396 | 1396 | $s = ms_newShapefileObj($arq,-1); |
| 1397 | - $shape = $s->getShape(0); | |
| 1397 | + $shape = $s->getfeature(0); | |
| 1398 | 1398 | $t = $shape->type; |
| 1399 | 1399 | $tipo = MS_LAYER_POLYGON; |
| 1400 | 1400 | if ($t == 0) | ... | ... |
classesphp/classe_selecao.php
| ... | ... | @@ -204,7 +204,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa |
| 204 | 204 | { |
| 205 | 205 | $result = $layero->getResult($i); |
| 206 | 206 | $s = $result->shapeindex; |
| 207 | - $sh = $layero->getShape(-1,$s); | |
| 207 | + $sh = $layero->getfeature($s,-1); | |
| 208 | 208 | $tiposh = $sh->type; |
| 209 | 209 | if ($tiposh == 2) |
| 210 | 210 | {$ident = @$this->layer->querybyshape($sh);} |
| ... | ... | @@ -257,9 +257,9 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa |
| 257 | 257 | $conta = $layero->getNumresults(); |
| 258 | 258 | for ($k = 0; $k < $conta; $k++) |
| 259 | 259 | { |
| 260 | - if (@$layero->getshape(-1,$k)) | |
| 260 | + if (@$layero->getfeature($k,-1)) | |
| 261 | 261 | { |
| 262 | - $s = $layero->getshape(-1,$k); | |
| 262 | + $s = $layero->getfeature($k,-1); | |
| 263 | 263 | if ($s->type == 2) |
| 264 | 264 | { |
| 265 | 265 | $this->layer->querybyshape($s); | ... | ... |
classesphp/classe_shp.php
| ... | ... | @@ -282,7 +282,7 @@ Include: |
| 282 | 282 | if(!isset($tamanho)){$tamanho = 50;} |
| 283 | 283 | $e->set("size",$tamanho); |
| 284 | 284 | $e->set("symbolname",$nomes); |
| 285 | - $pinlayer->set("transparency",MS_GD_ALPHA); | |
| 285 | + $pinlayer->set("opacity",MS_GD_ALPHA); | |
| 286 | 286 | $shp = ms_newshapeobj(MS_SHAPE_POINT); |
| 287 | 287 | $lin = ms_newlineobj(); |
| 288 | 288 | $lin->addxy($x,$y); |
| ... | ... | @@ -344,7 +344,7 @@ array("layerprj"=>$xylayer,"mapprj"=>$xymapa) |
| 344 | 344 | |
| 345 | 345 | $result = $this->layer->getResult($res_count - 1); |
| 346 | 346 | $shp_index = $result->shapeindex; |
| 347 | - $shape = $this->layer->getshape(-1,$shp_index); | |
| 347 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 348 | 348 | $lin = $shape->line(0); |
| 349 | 349 | $pt = $lin->point(0); |
| 350 | 350 | $this->layer->close(); |
| ... | ... | @@ -469,7 +469,7 @@ $para - linha|poligono |
| 469 | 469 | if ($para == "poligono") |
| 470 | 470 | { |
| 471 | 471 | $layer->set("type",MS_LAYER_POLYGON); |
| 472 | - $layer->set("transparency","50"); | |
| 472 | + $layer->set("opacity","50"); | |
| 473 | 473 | $layer->setmetadata("tema",$novonomelayer." (poligonal)"); |
| 474 | 474 | } |
| 475 | 475 | return("ok"); | ... | ... |
classesphp/classe_temas.php
| ... | ... | @@ -394,12 +394,12 @@ string Filtro. |
| 394 | 394 | function pegaFiltro() |
| 395 | 395 | { |
| 396 | 396 | if(!$this->layer){return "erro";} |
| 397 | - $fil = $this->layer->getfilter(); | |
| 398 | - if ($this->layer->getfilter() == '"(null)"'){return " ";} | |
| 397 | + $fil = $this->layer->getfilterstring(); | |
| 398 | + if ($this->layer->getfilterstring() == '"(null)"'){return " ";} | |
| 399 | 399 | if (function_exists("mb_convert_encoding")) |
| 400 | - {return (mb_convert_encoding($this->layer->getfilter(),"HTML-ENTITIES","auto"));} | |
| 400 | + {return (mb_convert_encoding($this->layer->getfilterstring(),"HTML-ENTITIES","auto"));} | |
| 401 | 401 | else |
| 402 | - {return ($this->layer->getfilter());} | |
| 402 | + {return ($this->layer->getfilterstring());} | |
| 403 | 403 | } |
| 404 | 404 | /* |
| 405 | 405 | function: insereFiltro |
| ... | ... | @@ -598,7 +598,7 @@ $fonte - Fonte. |
| 598 | 598 | $e->set("symbolname",$marca); |
| 599 | 599 | $pinlayer->setmetadata("tema","Poligonos inseridos"); |
| 600 | 600 | $pinlayer->set("type",MS_LAYER_POLYGON); |
| 601 | - $pinlayer->set("transparency","50"); | |
| 601 | + $pinlayer->set("opacity","50"); | |
| 602 | 602 | break; |
| 603 | 603 | case "ANNOTATION": |
| 604 | 604 | $c->set("status",MS_DELETE); |
| ... | ... | @@ -642,7 +642,7 @@ $fonte - Fonte. |
| 642 | 642 | $label->set("position",$p[$position]); |
| 643 | 643 | $pinlayer->setmetadata("TEMA",$texto); |
| 644 | 644 | $pinlayer->set("type",MS_LAYER_ANNOTATION); |
| 645 | - $pinlayer->set("transparency","100"); | |
| 645 | + $pinlayer->set("opacity","100"); | |
| 646 | 646 | break; |
| 647 | 647 | } |
| 648 | 648 | } |
| ... | ... | @@ -706,7 +706,7 @@ $nome - nome que será dado a geometria |
| 706 | 706 | $valitem = array(); |
| 707 | 707 | $result = $this->layer->getResult($i); |
| 708 | 708 | $shp_index = $result->shapeindex; |
| 709 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 709 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 710 | 710 | foreach ($items as $item) |
| 711 | 711 | { |
| 712 | 712 | $v = trim($shape->values[$item]); |
| ... | ... | @@ -933,7 +933,7 @@ Calcula a extensão geográfica dos elementos selecionados de um tema e ajusta o m |
| 933 | 933 | $valitem = array(); |
| 934 | 934 | $result = $this->layer->getResult($i); |
| 935 | 935 | $shp_index = $result->shapeindex; |
| 936 | - $shape = $this->layer->getshape(-1, $shp_index); | |
| 936 | + $shape = $this->layer->getfeature($shp_index,-1); | |
| 937 | 937 | $bound = $shape->bounds; |
| 938 | 938 | $xmin[] = $bound->minx; |
| 939 | 939 | $xmax[] = $bound->maxx; | ... | ... |
classesphp/classe_vermultilayer.php
| ... | ... | @@ -101,8 +101,8 @@ class vermultilayer |
| 101 | 101 | $layer = $map->getlayerbyname($temai); |
| 102 | 102 | $testa = 0; |
| 103 | 103 | //verifica se o tema é visivel na escala |
| 104 | - $mins = $layer->minscale; | |
| 105 | - $maxs = $layer->maxscale; | |
| 104 | + $mins = $layer->minscaledenom; | |
| 105 | + $maxs = $layer->maxscaledenom; | |
| 106 | 106 | if ($mins != $maxs) |
| 107 | 107 | { |
| 108 | 108 | $testa = 1; | ... | ... |
classesphp/funcoes_gerais.php
| ... | ... | @@ -105,7 +105,7 @@ function fusaoGrafico() |
| 105 | 105 | $nome = ($imgo->imagepath).nomeRandomico().".png"; |
| 106 | 106 | $imgo->saveImage($nome); |
| 107 | 107 | $imagem = ($imgo->imageurl).basename($nome); |
| 108 | - $imgo->free(); | |
| 108 | + //$imgo->free(); | |
| 109 | 109 | } |
| 110 | 110 | $m = new Imagem(dirname($dir_tmp).$imagem); |
| 111 | 111 | $i = $m->fundeIm(dirname($dir_tmp).$grafico); |
| ... | ... | @@ -994,7 +994,7 @@ function gravaImagemMapa($mapa) |
| 994 | 994 | if ($salva != -1) |
| 995 | 995 | { |
| 996 | 996 | $retorno = array("url"=>($imgo->imageurl).basename($nome),"arquivo"=>$nome); |
| 997 | - $imgo->free(); | |
| 997 | + //$imgo->free(); | |
| 998 | 998 | } |
| 999 | 999 | else |
| 1000 | 1000 | {$retorno = false;} |
| ... | ... | @@ -1032,7 +1032,7 @@ function pegaValores($mapa,$layer,$item,$numerico=false,$ignorar="") |
| 1032 | 1032 | { |
| 1033 | 1033 | $result = $layer->getResult($i); |
| 1034 | 1034 | $shp_index = $result->shapeindex; |
| 1035 | - $shape = $layer->getshape(-1, $shp_index); | |
| 1035 | + $shape = $layer->getfeature($shp_index,-1); | |
| 1036 | 1036 | $v = trim($shape->values[$item]); |
| 1037 | 1037 | if ($numerico) |
| 1038 | 1038 | { |
| ... | ... | @@ -1112,7 +1112,7 @@ function pegaValoresM($mapa,$layer,$itens,$exclui="nulo",$selecionados="nao") |
| 1112 | 1112 | if (($selecionados == "sim") && (array_search($shp_index,$indicesel) === FALSE)) |
| 1113 | 1113 | {continue;} |
| 1114 | 1114 | $considera = "sim"; |
| 1115 | - $shape = $layer->getshape(-1, $shp_index); | |
| 1115 | + $shape = $layer->getfeature($shp_index,-1); | |
| 1116 | 1116 | //verifica se no registro deve ser considerado |
| 1117 | 1117 | if ($exclui != "nulo") |
| 1118 | 1118 | { |
| ... | ... | @@ -1632,10 +1632,10 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE) |
| 1632 | 1632 | dbase_add_record($db,$reg); |
| 1633 | 1633 | dbase_close($db); |
| 1634 | 1634 | } |
| 1635 | - $s = $layer->getshape(-1,0); | |
| 1635 | + $s = $layer->getfeature(0,-1); | |
| 1636 | 1636 | $result = $layer->getResult(0); |
| 1637 | 1637 | $shpi = $result->shapeindex; |
| 1638 | - $shape = $layer->getshape(-1, $shpi); | |
| 1638 | + $shape = $layer->getfeature($shpi,-1); | |
| 1639 | 1639 | $novoshpf = ms_newShapefileObj($nomeshp.".shp", -2); |
| 1640 | 1640 | $novoshpf->addShape($shape); |
| 1641 | 1641 | $novoshpf->free(); |
| ... | ... | @@ -1680,7 +1680,7 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE) |
| 1680 | 1680 | { |
| 1681 | 1681 | $result = $layer->getResult($i); |
| 1682 | 1682 | $shp_index = $result->shapeindex; |
| 1683 | - $shape = $layer->getshape(-1, $shp_index); | |
| 1683 | + $shape = $layer->getfeature($shp_index,-1); | |
| 1684 | 1684 | foreach ($items as $ni) |
| 1685 | 1685 | { |
| 1686 | 1686 | $reg[] = $shape->values[$ni]; | ... | ... |
classesphp/mapa_inicia.php
| ... | ... | @@ -172,7 +172,7 @@ function iniciaMapa() |
| 172 | 172 | $m->salva($map_file); |
| 173 | 173 | $e = $m->mapa->extent; |
| 174 | 174 | $ext = ($e->minx)." ".($e->miny)." ".($e->maxx)." ".($e->maxy); |
| 175 | - $escalaMapa = $m->mapa->scale; | |
| 175 | + $escalaMapa = $m->mapa->scaledenom; | |
| 176 | 176 | $celula = $m->mapa->cellsize; |
| 177 | 177 | // |
| 178 | 178 | //pega os parametros de cada tema | ... | ... |
geraminiatura.php
menutemas/admin.db
No preview for this file type
ms_criamapa.php
| ... | ... | @@ -692,7 +692,7 @@ function insereWKTUrl() |
| 692 | 692 | $estilo->set("size",3); |
| 693 | 693 | } |
| 694 | 694 | if($shape->type == 2) |
| 695 | - {$layer->set("transparency","50");} | |
| 695 | + {$layer->set("opacity","50");} | |
| 696 | 696 | $cor = $estilo->color; |
| 697 | 697 | $cor->setRGB(255,0,0); |
| 698 | 698 | $salvo = $mapa->save($tmpfname); |
| ... | ... | @@ -911,7 +911,7 @@ function inserePoligonosUrl() |
| 911 | 911 | $layer->setmetadata("classe","sim"); |
| 912 | 912 | $layer->setmetadata("ATLAS","nao"); |
| 913 | 913 | $layer->set("type",MS_LAYER_POLYGON); |
| 914 | - $layer->set("transparency","50"); | |
| 914 | + $layer->set("opacity","50"); | |
| 915 | 915 | $layer->set("status",MS_DEFAULT); |
| 916 | 916 | $classe = ms_newClassObj($layer); |
| 917 | 917 | $classe->set("name"," "); | ... | ... |
testamapfile.php