Commit 9b1e1cd7d5af392095bf62b9dde77da274b58c8c
1 parent
47ffa2d7
Exists in
master
and in
7 other branches
Correção na rotina de clonagem de simbolos em linha
Showing
2 changed files
with
65 additions
and
4 deletions
Show diff stats
classesphp/funcoes_gerais.php
... | ... | @@ -2721,12 +2721,24 @@ function cloneInlineSymbol($layern,$nmapa,$mapa){ |
2721 | 2721 | $estilo = $classe->getstyle($ei); |
2722 | 2722 | if($estilo->symbolname != ""){ |
2723 | 2723 | $nomesimbolo = $estilo->symbolname; |
2724 | - $simbolo = new symbolObj($nmapa, $nomesimbolo); | |
2725 | - $ipath = $simbolo->imagepath; | |
2726 | - if($simbolo->inmapfile == MS_TRUE){ | |
2724 | + $simbolo = $nmapa->getSymbolObjectById($nmapa->getSymbolByName($nomesimbolo)); | |
2725 | + if($simbolo->inmapfile == MS_TRUE){ | |
2727 | 2726 | $simbolon = new symbolObj($mapa, $nomesimbolo); |
2728 | 2727 | $simbolon->set("inmapfile",MS_TRUE); |
2729 | - $simbolon->setImagePath($ipath); | |
2728 | + $simbolon->setImagePath($simbolo->imagepath); | |
2729 | + $simbolon->setPoints($simbolo->getPointsArray()); | |
2730 | + //$simbolon->setPattern($simbolo->getPatternArray()); | |
2731 | + $simbolon->set("type",$simbolo->type); | |
2732 | + $simbolon->set("antialias",$simbolo->antialias); | |
2733 | + $simbolon->set("character",$simbolo->character); | |
2734 | + $simbolon->set("filled",$simbolo->filled); | |
2735 | + //$simbolon->set("font",$simbolo->font); | |
2736 | + //$simbolon->set("position",$simbolo->position); | |
2737 | + $simbolon->set("sizex",$simbolo->sizex); | |
2738 | + $simbolon->set("sizey",$simbolo->sizey); | |
2739 | + $simbolon->set("transparent",$simbolo->transparent); | |
2740 | + $simbolon->set("transparentcolor",$simbolo->transparentcolor); | |
2741 | + //$simbolon->set("anchorpoint",$simbolo->anchorpoint); | |
2730 | 2742 | } |
2731 | 2743 | } |
2732 | 2744 | } | ... | ... |
... | ... | @@ -0,0 +1,49 @@ |
1 | +MAP | |
2 | + FONTSET "/var/www/i3geo/symbols/fontes.txt" | |
3 | + SYMBOLSET "/var/www/i3geo/symbols/simbolosv6.sym" | |
4 | + | |
5 | +SYMBOL | |
6 | +NAME 'arrow-end' | |
7 | +TYPE vector | |
8 | +FILLED true | |
9 | +POINTS | |
10 | + 0 0.4 | |
11 | + 3 0.4 | |
12 | + 3 0 | |
13 | + 5 0.8 | |
14 | + 3 1.6 | |
15 | + 3 1.2 | |
16 | + 0 1.2 | |
17 | + 0 0.4 | |
18 | +END # POINTS | |
19 | +ANCHORPOINT 1 0.5 | |
20 | +END | |
21 | + | |
22 | + LAYER | |
23 | + DATA "/var/www/i3geo/aplicmap/dados/sc22/RODOVIA_PAVIMENTADA.shp" | |
24 | + METADATA | |
25 | + "CLASSE" "SIM" | |
26 | + "TEMA" "Teste simbolo em linha" | |
27 | + END # METADATA | |
28 | + NAME "testeinlinesymbol" | |
29 | + STATUS DEFAULT | |
30 | + TEMPLATE "none.htm" | |
31 | + TYPE LINE | |
32 | + CLASS | |
33 | + NAME "" | |
34 | + STYLE | |
35 | + COLOR 255 0 0 | |
36 | + #OFFSET 1 0 | |
37 | + END | |
38 | + STYLE | |
39 | + GEOMTRANSFORM "start" | |
40 | + COLOR 255 0 0 | |
41 | + SIZE 6 | |
42 | + ANGLE AUTO | |
43 | + SYMBOL "arrow-end" | |
44 | + END # STYLE | |
45 | + END # CLASS | |
46 | + END # LAYER | |
47 | + | |
48 | +END # MAP | |
49 | + | ... | ... |