From 54e789d9fd93684c6b75427af3558fe875b7c154 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 6 Apr 2011 12:48:38 +0000 Subject: [PATCH] --- pacotes/gvsig/class.gvsig2mapfile.php | 196 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- pacotes/gvsig/gvsig2mapfile.php | 15 --------------- pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php | 196 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/gvsig/gvsig2mapfile/gvsig2mapfile.php | 15 +++++++++++++++ pacotes/gvsig/gvsig2mapfile/projetoteste.bak | 1274 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/gvsig/gvsig2mapfile/projetoteste.gvp | 1274 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pacotes/gvsig/projetoteste.bak | 1274 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- pacotes/gvsig/projetoteste.gvp | 1274 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8 files changed, 2759 insertions(+), 2759 deletions(-) delete mode 100644 pacotes/gvsig/class.gvsig2mapfile.php delete mode 100644 pacotes/gvsig/gvsig2mapfile.php create mode 100644 pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php create mode 100644 pacotes/gvsig/gvsig2mapfile/gvsig2mapfile.php create mode 100644 pacotes/gvsig/gvsig2mapfile/projetoteste.bak create mode 100644 pacotes/gvsig/gvsig2mapfile/projetoteste.gvp delete mode 100644 pacotes/gvsig/projetoteste.bak delete mode 100644 pacotes/gvsig/projetoteste.gvp diff --git a/pacotes/gvsig/class.gvsig2mapfile.php b/pacotes/gvsig/class.gvsig2mapfile.php deleted file mode 100644 index ce3cbb1..0000000 --- a/pacotes/gvsig/class.gvsig2mapfile.php +++ /dev/null @@ -1,196 +0,0 @@ -arquivoGvp = $gvp; - if(function_exists("dl")){ - if (!function_exists('simplexml_load_file')) - {dl( 'php_simplexml.'.PHP_SHLIB_SUFFIX );} - } - if (!function_exists('simplexml_load_file')) - {throw new Exception("Função PHP simplexml_load_file não existe");} - $this->xml = simplexml_load_file($gvp); - } - } - function getViewsNames(){ - $names = array(); - $this->xml->registerXPathNamespace("tag", "http://www.gvsig.gva.es"); - $results = $this->xml->xpath("/tag:xml-tag/tag:xml-tag/tag:property[@value='ProjectView']/parent::*/tag:property[@key='name']"); - foreach($results as $result){ - $names[] = $this->findAttribute($result,"value"); - } - return $names; - } - function getViewByName($nome){ - $this->xml->registerXPathNamespace("tag", "http://www.gvsig.gva.es"); - $result = $this->xml->xpath("/tag:xml-tag/tag:xml-tag/tag:property[@value='ProjectView']/parent::*/tag:property[@value='".$nome."']/parent::*"); - return $result; - } - function getViewData($nome){ - $this->xml->registerXPathNamespace("tag", "http://www.gvsig.gva.es"); - $path = "/tag:xml-tag/tag:xml-tag/tag:property[@value='ProjectView']/parent::*/tag:property[@value='".$nome."']/parent::*/tag:xml-tag/tag:xml-tag"; - - $xmin = $this->getValue($path,"adjustedExtentX"); - $ymin = $this->getValue($path,"adjustedExtentY"); - $xmax = $xmin + $this->getValue($path,"adjustedExtentW"); - $ymax = $ymin + $this->getValue($path,"adjustedExtentH"); - $proj = $this->getValue($path,"proj"); - $nomes = $this->getValue($path,"LayerNames"); - return array( - "extent"=>array($xmin,$ymin,$xmax,$ymax), - "proj"=>$proj, - "layerNames"=>explode(",",str_replace(" ,",",",$nomes)) - ); - } - function getLayerData($viewNome,$layerNome){ - $this->xml->registerXPathNamespace("tag", "http://www.gvsig.gva.es"); - $path = "/tag:xml-tag/tag:xml-tag/tag:property[@value='ProjectView']/parent::*/tag:property[@value='".$viewNome."']/parent::*/tag:xml-tag/tag:xml-tag/tag:xml-tag/tag:xml-tag/parent::*/tag:property[@value='".$layerNome."']/parent::*"; - $classes = array(); - $render = 'com.iver.cit.gvsig.fmap.rendering'; - - $path1 = $path."/tag:xml-tag/tag:property[@value='".$render.".VectorialUniqueValueLegend']/parent::*/tag:xml-tag"; - $result = $this->xml->xpath($path1); - if($result != FALSE){ - $coluna = $this->getValue($path."/tag:xml-tag","fieldNames"); - $valores = $this->getValue($path."/tag:xml-tag","values"); - $tipocoluna = $this->getValue($path."/tag:xml-tag","fieldTypes"); - $classes = $this->VectorialUniqueValueLegend($result,$path1,$coluna,$tipocoluna,$valores); - } - - $path1 = $path."/tag:xml-tag/tag:property[@value='".$render.".SingleSymbolLegend']/parent::*/tag:xml-tag"; - $result = $this->xml->xpath($path1); - if($result != FALSE) - {$classes = $this->SingleSymbolLegend($result,$path1);} - - return array( - "minScale"=>$this->getValue($path,"minScale"), - "maxScale"=>$this->getValue($path,"maxScale"), - "visible"=>$this->getValue($path,"visible"), - "proj"=>$this->getValue($path,"proj"), - "transparency"=>$this->getValue($path,"transparency"), - "type"=>$this->getValue($path,"type"), - "file"=>$this->getValue($path,"file"), - "driverName"=>$this->getValue($path,"driverName"), - "isLabeled"=>$this->getValue($path,"isLabeled"), - "legenda"=>array( - "tipoLegenda"=>$this->getValue($path."/tag:xml-tag","className"), - "classes"=>$classes - ) - ); - } - function VectorialUniqueValueLegend($result,$path1,$coluna,$tipocoluna,$valores){ - $valores = ",".str_replace(" ,",",",$valores); - $valores = explode(",",$valores); - $classes = array(); - $c = 0; - while(list( , $node) = each($result)) { - $classe = array(); - if($tipocoluna == 12) - {$classe["exp"] = "('[".$coluna."]'eq'".$valores[$c]."')";} - else - {$classe["exp"] = "([".$coluna."] = ".$valores[$c]." )";} - $classe["className"] = $this->getValue($path1,"className",$c); - $classe["desc"] = $this->getValue($path1,"desc",$c); - $classe["color"] = $this->getValue($path1,"color",$c); - $classe["rotation"] = $this->getValue($path1,"rotation",$c); - $classe["offsetX"] = $this->getValue($path1,"offsetX",$c); - $classe["offsetY"] = $this->getValue($path1,"offsetY",$c); - $classe["size"] = $this->getValue($path1,"size",$c); - $classe["outline"] = $this->getValue($path1,"outline",$c); - $classe["markerStyle"] = $this->getValue($path1,"markerStyle",$c); - $classe["hasFill"] = $this->getValue($path1,"hasFill",$c); - $classe["hasOutline"] = $this->getValue($path1,"hasOutline",$c); - if($classe["desc"] != "") - {$classes[] = $classe;} - $c = $c + 1; - } - return $classes; - } - function SingleSymbolLegend($result,$path){ - $classes = array(); - $c = 0; - //var_dump($result);exit; - while(list( , $node) = each($result)) { - $classe = array(); - $classe["className"] = $this->getValue($path,"className",$c); - $classe["desc"] = $this->getValue($path,"desc",$c); - $classe["color"] = $this->getValue($path,"color",$c); - $classe["rotation"] = $this->getValue($path,"rotation",$c); - $classe["offsetX"] = $this->getValue($path,"offsetX",$c); - $classe["offsetY"] = $this->getValue($path,"offsetY",$c); - $classe["size"] = $this->getValue($path,"size",$c); - $classe["outline"] = $this->getValue($path,"outline",$c); - $classe["markerStyle"] = $this->getValue($path,"markerStyle",$c); - $classe["hasFill"] = $this->getValue($path1,"hasFill",$c); - $classe["hasOutline"] = $this->getValue($path1,"hasOutline",$c); - $classe["exp"] = false; - if($classe["hasOutline"] == "true"){ - $classe["outline"] = $this->getValue($path."/tag:xml-tag","color"); - } - $classes[] = $classe; - $c = $c + 1; - } - return $classes; - } - function getValue($path,$key,$i=0){ - $result = $this->xml->xpath($path."/tag:property[@key='".$key."']"); - if($result) - {return $this->findAttribute($result[$i],"value");} - else - {return false;} - } - function addLayers($objMap,$gvsigview,$layerNames){ - foreach($layerNames as $lname){ - $dataLayer = $this->getLayerData($gvsigview,$lname); - $oLayer = ms_newLayerObj($objMap); - $oLayer->setmetadata("TEMA",$lname); - $oLayer = $this->data2layer($oLayer,$dataLayer); - } - return $objMap; - } - function data2layer($oLayer,$dataLayer){ - $oLayer->set("name",nomeRandomico()); - $oLayer->set("data",$dataLayer["file"]); - $oLayer->set("status",MS_DEFAULT); - if($dataLayer["visible"] == "false") - {$oLayer->set("status",MS_OFF);} - $tipo = $dataLayer["legenda"]["classes"][0]["className"]; - $oLayer->set("type",1); - if($tipo == "com.iver.cit.gvsig.fmap.core.symbols.SimpleMarkerSymbol") - {$oLayer->set("type",0);} - if($tipo == "com.iver.cit.gvsig.fmap.core.symbols.SimpleFillSymbol") - {$oLayer->set("type",2);} - foreach($dataLayer["legenda"]["classes"] as $data){ - $classe = ms_newClassObj($oLayer); - $estilo = ms_newStyleObj($classe); - if($oLayer->type == 0){ - $estilo->set("symbolname","ponto"); - } - $ncor = explode(",",$data["color"]); - $cor = $estilo->color; - $cor->setrgb($ncor[0],$ncor[1],$ncor[2]); - if($data["size"] != false) - {$estilo->set("size",$data["size"]);} - if($data["exp"] != false) - {$classe->setExpression($data["exp"]);} - } - return $oLayer; - } - function findAttribute($object, $attribute) { - $return = false; - if(@$object->attributes()){ - foreach($object->attributes() as $a => $b) { - if ($a == $attribute) { - $return = $b; - } - } - } - return $return; - } -} -?> \ No newline at end of file diff --git a/pacotes/gvsig/gvsig2mapfile.php b/pacotes/gvsig/gvsig2mapfile.php deleted file mode 100644 index bb197a3..0000000 --- a/pacotes/gvsig/gvsig2mapfile.php +++ /dev/null @@ -1,15 +0,0 @@ -"; - $nomes = $gm->getViewsNames(); - $view = $gm->getViewByName($nomes[0]); - $dataView = $gm->getViewData($nomes[0]); - echo "Extensão do mapa: ".(implode(",",$dataView["extent"]))."\n"; - echo "Projeção do mapa: ".$dataView["proj"]."\n"; - echo "Camadas: ".(implode(",",$dataView["layerNames"]))."\n"; - foreach($dataView["layerNames"] as $lname) - {var_dump($gm->getLayerData($nomes[0],$lname));} - //localhost/i3geo/ms_criamapa.php?gvsiggvp=C:\ms4w\Apache\htdocs\i3geo\pacotes\gvsig\projetoteste.gvp&gvsigview=teste 1&temasa= -?> \ No newline at end of file diff --git a/pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php b/pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php new file mode 100644 index 0000000..ce3cbb1 --- /dev/null +++ b/pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php @@ -0,0 +1,196 @@ +arquivoGvp = $gvp; + if(function_exists("dl")){ + if (!function_exists('simplexml_load_file')) + {dl( 'php_simplexml.'.PHP_SHLIB_SUFFIX );} + } + if (!function_exists('simplexml_load_file')) + {throw new Exception("Função PHP simplexml_load_file não existe");} + $this->xml = simplexml_load_file($gvp); + } + } + function getViewsNames(){ + $names = array(); + $this->xml->registerXPathNamespace("tag", "http://www.gvsig.gva.es"); + $results = $this->xml->xpath("/tag:xml-tag/tag:xml-tag/tag:property[@value='ProjectView']/parent::*/tag:property[@key='name']"); + foreach($results as $result){ + $names[] = $this->findAttribute($result,"value"); + } + return $names; + } + function getViewByName($nome){ + $this->xml->registerXPathNamespace("tag", "http://www.gvsig.gva.es"); + $result = $this->xml->xpath("/tag:xml-tag/tag:xml-tag/tag:property[@value='ProjectView']/parent::*/tag:property[@value='".$nome."']/parent::*"); + return $result; + } + function getViewData($nome){ + $this->xml->registerXPathNamespace("tag", "http://www.gvsig.gva.es"); + $path = "/tag:xml-tag/tag:xml-tag/tag:property[@value='ProjectView']/parent::*/tag:property[@value='".$nome."']/parent::*/tag:xml-tag/tag:xml-tag"; + + $xmin = $this->getValue($path,"adjustedExtentX"); + $ymin = $this->getValue($path,"adjustedExtentY"); + $xmax = $xmin + $this->getValue($path,"adjustedExtentW"); + $ymax = $ymin + $this->getValue($path,"adjustedExtentH"); + $proj = $this->getValue($path,"proj"); + $nomes = $this->getValue($path,"LayerNames"); + return array( + "extent"=>array($xmin,$ymin,$xmax,$ymax), + "proj"=>$proj, + "layerNames"=>explode(",",str_replace(" ,",",",$nomes)) + ); + } + function getLayerData($viewNome,$layerNome){ + $this->xml->registerXPathNamespace("tag", "http://www.gvsig.gva.es"); + $path = "/tag:xml-tag/tag:xml-tag/tag:property[@value='ProjectView']/parent::*/tag:property[@value='".$viewNome."']/parent::*/tag:xml-tag/tag:xml-tag/tag:xml-tag/tag:xml-tag/parent::*/tag:property[@value='".$layerNome."']/parent::*"; + $classes = array(); + $render = 'com.iver.cit.gvsig.fmap.rendering'; + + $path1 = $path."/tag:xml-tag/tag:property[@value='".$render.".VectorialUniqueValueLegend']/parent::*/tag:xml-tag"; + $result = $this->xml->xpath($path1); + if($result != FALSE){ + $coluna = $this->getValue($path."/tag:xml-tag","fieldNames"); + $valores = $this->getValue($path."/tag:xml-tag","values"); + $tipocoluna = $this->getValue($path."/tag:xml-tag","fieldTypes"); + $classes = $this->VectorialUniqueValueLegend($result,$path1,$coluna,$tipocoluna,$valores); + } + + $path1 = $path."/tag:xml-tag/tag:property[@value='".$render.".SingleSymbolLegend']/parent::*/tag:xml-tag"; + $result = $this->xml->xpath($path1); + if($result != FALSE) + {$classes = $this->SingleSymbolLegend($result,$path1);} + + return array( + "minScale"=>$this->getValue($path,"minScale"), + "maxScale"=>$this->getValue($path,"maxScale"), + "visible"=>$this->getValue($path,"visible"), + "proj"=>$this->getValue($path,"proj"), + "transparency"=>$this->getValue($path,"transparency"), + "type"=>$this->getValue($path,"type"), + "file"=>$this->getValue($path,"file"), + "driverName"=>$this->getValue($path,"driverName"), + "isLabeled"=>$this->getValue($path,"isLabeled"), + "legenda"=>array( + "tipoLegenda"=>$this->getValue($path."/tag:xml-tag","className"), + "classes"=>$classes + ) + ); + } + function VectorialUniqueValueLegend($result,$path1,$coluna,$tipocoluna,$valores){ + $valores = ",".str_replace(" ,",",",$valores); + $valores = explode(",",$valores); + $classes = array(); + $c = 0; + while(list( , $node) = each($result)) { + $classe = array(); + if($tipocoluna == 12) + {$classe["exp"] = "('[".$coluna."]'eq'".$valores[$c]."')";} + else + {$classe["exp"] = "([".$coluna."] = ".$valores[$c]." )";} + $classe["className"] = $this->getValue($path1,"className",$c); + $classe["desc"] = $this->getValue($path1,"desc",$c); + $classe["color"] = $this->getValue($path1,"color",$c); + $classe["rotation"] = $this->getValue($path1,"rotation",$c); + $classe["offsetX"] = $this->getValue($path1,"offsetX",$c); + $classe["offsetY"] = $this->getValue($path1,"offsetY",$c); + $classe["size"] = $this->getValue($path1,"size",$c); + $classe["outline"] = $this->getValue($path1,"outline",$c); + $classe["markerStyle"] = $this->getValue($path1,"markerStyle",$c); + $classe["hasFill"] = $this->getValue($path1,"hasFill",$c); + $classe["hasOutline"] = $this->getValue($path1,"hasOutline",$c); + if($classe["desc"] != "") + {$classes[] = $classe;} + $c = $c + 1; + } + return $classes; + } + function SingleSymbolLegend($result,$path){ + $classes = array(); + $c = 0; + //var_dump($result);exit; + while(list( , $node) = each($result)) { + $classe = array(); + $classe["className"] = $this->getValue($path,"className",$c); + $classe["desc"] = $this->getValue($path,"desc",$c); + $classe["color"] = $this->getValue($path,"color",$c); + $classe["rotation"] = $this->getValue($path,"rotation",$c); + $classe["offsetX"] = $this->getValue($path,"offsetX",$c); + $classe["offsetY"] = $this->getValue($path,"offsetY",$c); + $classe["size"] = $this->getValue($path,"size",$c); + $classe["outline"] = $this->getValue($path,"outline",$c); + $classe["markerStyle"] = $this->getValue($path,"markerStyle",$c); + $classe["hasFill"] = $this->getValue($path1,"hasFill",$c); + $classe["hasOutline"] = $this->getValue($path1,"hasOutline",$c); + $classe["exp"] = false; + if($classe["hasOutline"] == "true"){ + $classe["outline"] = $this->getValue($path."/tag:xml-tag","color"); + } + $classes[] = $classe; + $c = $c + 1; + } + return $classes; + } + function getValue($path,$key,$i=0){ + $result = $this->xml->xpath($path."/tag:property[@key='".$key."']"); + if($result) + {return $this->findAttribute($result[$i],"value");} + else + {return false;} + } + function addLayers($objMap,$gvsigview,$layerNames){ + foreach($layerNames as $lname){ + $dataLayer = $this->getLayerData($gvsigview,$lname); + $oLayer = ms_newLayerObj($objMap); + $oLayer->setmetadata("TEMA",$lname); + $oLayer = $this->data2layer($oLayer,$dataLayer); + } + return $objMap; + } + function data2layer($oLayer,$dataLayer){ + $oLayer->set("name",nomeRandomico()); + $oLayer->set("data",$dataLayer["file"]); + $oLayer->set("status",MS_DEFAULT); + if($dataLayer["visible"] == "false") + {$oLayer->set("status",MS_OFF);} + $tipo = $dataLayer["legenda"]["classes"][0]["className"]; + $oLayer->set("type",1); + if($tipo == "com.iver.cit.gvsig.fmap.core.symbols.SimpleMarkerSymbol") + {$oLayer->set("type",0);} + if($tipo == "com.iver.cit.gvsig.fmap.core.symbols.SimpleFillSymbol") + {$oLayer->set("type",2);} + foreach($dataLayer["legenda"]["classes"] as $data){ + $classe = ms_newClassObj($oLayer); + $estilo = ms_newStyleObj($classe); + if($oLayer->type == 0){ + $estilo->set("symbolname","ponto"); + } + $ncor = explode(",",$data["color"]); + $cor = $estilo->color; + $cor->setrgb($ncor[0],$ncor[1],$ncor[2]); + if($data["size"] != false) + {$estilo->set("size",$data["size"]);} + if($data["exp"] != false) + {$classe->setExpression($data["exp"]);} + } + return $oLayer; + } + function findAttribute($object, $attribute) { + $return = false; + if(@$object->attributes()){ + foreach($object->attributes() as $a => $b) { + if ($a == $attribute) { + $return = $b; + } + } + } + return $return; + } +} +?> \ No newline at end of file diff --git a/pacotes/gvsig/gvsig2mapfile/gvsig2mapfile.php b/pacotes/gvsig/gvsig2mapfile/gvsig2mapfile.php new file mode 100644 index 0000000..bb197a3 --- /dev/null +++ b/pacotes/gvsig/gvsig2mapfile/gvsig2mapfile.php @@ -0,0 +1,15 @@ +"; + $nomes = $gm->getViewsNames(); + $view = $gm->getViewByName($nomes[0]); + $dataView = $gm->getViewData($nomes[0]); + echo "Extensão do mapa: ".(implode(",",$dataView["extent"]))."\n"; + echo "Projeção do mapa: ".$dataView["proj"]."\n"; + echo "Camadas: ".(implode(",",$dataView["layerNames"]))."\n"; + foreach($dataView["layerNames"] as $lname) + {var_dump($gm->getLayerData($nomes[0],$lname));} + //localhost/i3geo/ms_criamapa.php?gvsiggvp=C:\ms4w\Apache\htdocs\i3geo\pacotes\gvsig\projetoteste.gvp&gvsigview=teste 1&temasa= +?> \ No newline at end of file diff --git a/pacotes/gvsig/gvsig2mapfile/projetoteste.bak b/pacotes/gvsig/gvsig2mapfile/projetoteste.bak new file mode 100644 index 0000000..aa0ff6b --- /dev/null +++ b/pacotes/gvsig/gvsig2mapfile/projetoteste.bak @@ -0,0 +1,1274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pacotes/gvsig/gvsig2mapfile/projetoteste.gvp b/pacotes/gvsig/gvsig2mapfile/projetoteste.gvp new file mode 100644 index 0000000..3f811ef --- /dev/null +++ b/pacotes/gvsig/gvsig2mapfile/projetoteste.gvp @@ -0,0 +1,1274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pacotes/gvsig/projetoteste.bak b/pacotes/gvsig/projetoteste.bak deleted file mode 100644 index aa0ff6b..0000000 --- a/pacotes/gvsig/projetoteste.bak +++ /dev/null @@ -1,1274 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pacotes/gvsig/projetoteste.gvp b/pacotes/gvsig/projetoteste.gvp deleted file mode 100644 index 3f811ef..0000000 --- a/pacotes/gvsig/projetoteste.gvp +++ /dev/null @@ -1,1274 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- libgit2 0.21.2