Commit 13c33d2c5eaf58df088fa685c3863a8587f330c6
1 parent
3c07a702
Exists in
master
and in
7 other branches
resolvido #82 (posicionar as camadas raster geradas nas operações de análise aba…
…ixo das camadas do tipo ponto)
Showing
1 changed file
with
18 additions
and
0 deletions
Show diff stats
classesphp/classe_analise.php
| ... | ... | @@ -214,6 +214,24 @@ Include: |
| 214 | 214 | } |
| 215 | 215 | $of = $this->mapa->outputformat; |
| 216 | 216 | $of->set("imagemode",MS_IMAGEMODE_RGB); |
| 217 | + // | |
| 218 | + //reposiciona o layer | |
| 219 | + // | |
| 220 | + $indicel = $novolayer->index; | |
| 221 | + $numlayers = $this->mapa->numlayers; | |
| 222 | + $nummove = 0; | |
| 223 | + for ($i = $numlayers-1;$i > 0;$i--) | |
| 224 | + { | |
| 225 | + $layerAbaixo = $this->mapa->getlayer($i); | |
| 226 | + $tipo = $layerAbaixo->type; | |
| 227 | + if (($tipo != 2) && ($tipo != 3)) | |
| 228 | + {$nummove++;} | |
| 229 | + } | |
| 230 | + if ($nummove > 2) | |
| 231 | + { | |
| 232 | + for ($i=0;$i<=($nummove - 3);++$i) | |
| 233 | + {$this->mapa->movelayerup($indicel);} | |
| 234 | + } | |
| 217 | 235 | } |
| 218 | 236 | else |
| 219 | 237 | {return("erro");} | ... | ... |