Commit cd2b3e894679b691725490f0176b2245d068a5e0
1 parent
5aed408a
Exists in
master
and in
7 other branches
Correção no conversor gvp para mapfile no processamento de camadas lineares
Showing
2 changed files
with
9 additions
and
4 deletions
Show diff stats
pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php
| @@ -165,7 +165,7 @@ class gvsig2mapfile{ | @@ -165,7 +165,7 @@ class gvsig2mapfile{ | ||
| 165 | function VectorialUniqueValueLegend($result,$path1,$coluna,$tipocoluna,$valores,$nomes){ | 165 | function VectorialUniqueValueLegend($result,$path1,$coluna,$tipocoluna,$valores,$nomes){ |
| 166 | $valores = ",".str_replace(" ,",",",$valores); | 166 | $valores = ",".str_replace(" ,",",",$valores); |
| 167 | $valores = explode(",",$valores); | 167 | $valores = explode(",",$valores); |
| 168 | - $nomes = ",".str_replace(" ,",",",$nomes); | 168 | + $nomes = ",".str_replace(" ,",",",$nomes); |
| 169 | $nomes = explode(",",$nomes); | 169 | $nomes = explode(",",$nomes); |
| 170 | $classes = array(); | 170 | $classes = array(); |
| 171 | $c = 0; | 171 | $c = 0; |
| @@ -187,8 +187,8 @@ class gvsig2mapfile{ | @@ -187,8 +187,8 @@ class gvsig2mapfile{ | ||
| 187 | $classe["markerStyle"] = (string) $this->getValue($path1,"markerStyle",$c); | 187 | $classe["markerStyle"] = (string) $this->getValue($path1,"markerStyle",$c); |
| 188 | $classe["hasFill"] = (string) $this->getValue($path1,"hasFill",$c); | 188 | $classe["hasFill"] = (string) $this->getValue($path1,"hasFill",$c); |
| 189 | $classe["hasOutline"] = (string) $this->getValue($path1,"hasOutline",$c); | 189 | $classe["hasOutline"] = (string) $this->getValue($path1,"hasOutline",$c); |
| 190 | - if($classe["hasOutline"] == "true"){ | ||
| 191 | - $classe["outline"] = (string) $this->getValue($path1."/tag:xml-tag","color",0); | 190 | + if($classe["hasOutline"] == "true"){ |
| 191 | + $classe["outline"] = (string) $this->getValue($path1."/tag:xml-tag","color",0); | ||
| 192 | } | 192 | } |
| 193 | else{ | 193 | else{ |
| 194 | $classe["outline"] = (string) $this->getValue($path1,"color",$c); | 194 | $classe["outline"] = (string) $this->getValue($path1,"color",$c); |
| @@ -299,13 +299,18 @@ class gvsig2mapfile{ | @@ -299,13 +299,18 @@ class gvsig2mapfile{ | ||
| 299 | $cor = $estilo->outlinecolor; | 299 | $cor = $estilo->outlinecolor; |
| 300 | $cor->setrgb($ncor[0],$ncor[1],$ncor[2]); | 300 | $cor->setrgb($ncor[0],$ncor[1],$ncor[2]); |
| 301 | } | 301 | } |
| 302 | + | ||
| 303 | + if($data["hasFill"] == "" && $data["hasOutline"] == ""){ | ||
| 304 | + $ncor = explode(",",$data["color"]); | ||
| 305 | + $cor = $estilo->color; | ||
| 306 | + $cor->setrgb($ncor[0],$ncor[1],$ncor[2]); | ||
| 307 | + } | ||
| 302 | } | 308 | } |
| 303 | if($data["size"] != false) | 309 | if($data["size"] != false) |
| 304 | {$estilo->set("size",$data["size"]);} | 310 | {$estilo->set("size",$data["size"]);} |
| 305 | if($data["exp"] != false) | 311 | if($data["exp"] != false) |
| 306 | {$classe->setExpression($data["exp"]);} | 312 | {$classe->setExpression($data["exp"]);} |
| 307 | } | 313 | } |
| 308 | - | ||
| 309 | return $oLayer; | 314 | return $oLayer; |
| 310 | } | 315 | } |
| 311 | function findAttribute($object, $attribute) { | 316 | function findAttribute($object, $attribute) { |
pacotes/gvsig/gvsig2mapfile/gvsig2mapfile.zip
No preview for this file type