Commit cd2b3e894679b691725490f0176b2245d068a5e0

Authored by Edmar Moretti
1 parent 5aed408a

Correção no conversor gvp para mapfile no processamento de camadas lineares

pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php
... ... @@ -165,7 +165,7 @@ class gvsig2mapfile{
165 165 function VectorialUniqueValueLegend($result,$path1,$coluna,$tipocoluna,$valores,$nomes){
166 166 $valores = ",".str_replace(" ,",",",$valores);
167 167 $valores = explode(",",$valores);
168   - $nomes = ",".str_replace(" ,",",",$nomes);
  168 + $nomes = ",".str_replace(" ,",",",$nomes);
169 169 $nomes = explode(",",$nomes);
170 170 $classes = array();
171 171 $c = 0;
... ... @@ -187,8 +187,8 @@ class gvsig2mapfile{
187 187 $classe["markerStyle"] = (string) $this->getValue($path1,"markerStyle",$c);
188 188 $classe["hasFill"] = (string) $this->getValue($path1,"hasFill",$c);
189 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 193 else{
194 194 $classe["outline"] = (string) $this->getValue($path1,"color",$c);
... ... @@ -299,13 +299,18 @@ class gvsig2mapfile{
299 299 $cor = $estilo->outlinecolor;
300 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 309 if($data["size"] != false)
304 310 {$estilo->set("size",$data["size"]);}
305 311 if($data["exp"] != false)
306 312 {$classe->setExpression($data["exp"]);}
307 313 }
308   -
309 314 return $oLayer;
310 315 }
311 316 function findAttribute($object, $attribute) {
... ...
pacotes/gvsig/gvsig2mapfile/gvsig2mapfile.zip
No preview for this file type