From d2d552347416035fc7c2a6f97581a3374c0a563d Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sun, 27 Nov 2011 02:49:28 +0000 Subject: [PATCH] --- classesphp/classe_atributos.php | 1 + classesphp/funcoes_gerais.php | 2 ++ ferramentas/dissolve/exemplo.htm | 13 ------------- temas/geonetworkindice.map | 29 +++++++++++++++++++++++++++++ 4 files changed, 32 insertions(+), 13 deletions(-) delete mode 100644 ferramentas/dissolve/exemplo.htm create mode 100644 temas/geonetworkindice.map diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index eb1184f..18b6aaa 100644 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -312,6 +312,7 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona */ function listaRegistros($itemtema,$tipo,$unico,$inicio,$fim,$tipolista) { + error_reporting(0); if(!$this->layer){return "erro";} $resultadoFinal = array(); if ((!isset($tipolista)) || ($tipolista=="")){$tipolista = "tudo";} diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php index be764db..acc5b49 100644 --- a/classesphp/funcoes_gerais.php +++ b/classesphp/funcoes_gerais.php @@ -2852,6 +2852,8 @@ function retornaShapesMapext($objLayer,$objMapa){ function retornaShapesSelecionados($objLayer,$map_file,$objMapa){ $shapes = array(); $qyfile = dirname($map_file)."/".$objLayer->name.".php"; + if(!file_exists($qyfile)) + {return $shapes;} $handle = fopen ($qyfile, "r"); $conteudo = fread ($handle, filesize ($qyfile)); fclose ($handle); diff --git a/ferramentas/dissolve/exemplo.htm b/ferramentas/dissolve/exemplo.htm deleted file mode 100644 index 2fc3b29..0000000 --- a/ferramentas/dissolve/exemplo.htm +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/temas/geonetworkindice.map b/temas/geonetworkindice.map new file mode 100644 index 0000000..1ace613 --- /dev/null +++ b/temas/geonetworkindice.map @@ -0,0 +1,29 @@ +MAP + FONTSET "../symbols/fontes.txt" + SYMBOLSET "../symbols/simbolos.sym" + LAYER + CONNECTION "user=postgres dbname=geonetwork264 host=localhost port=5432 password=postgres" + CONNECTIONTYPE POSTGIS + DATA "the_geom FROM (select id::integer as gid,the_geom,'http://localhost:8080/geonetwork/srv/br/metadata.show?id='||id as link from spatialindex) as foo USING UNIQUE gid USING SRID=4291" + METADATA + "CLASSE" "SIM" + "ITENS" "gid" + "ITENSDESC" "Metadado" + "ITENSLINK" "http://localhost:8080/geonetwork/srv/br/metadata.show?id=[gid]" + "TEMA" "Índice espacial do Geonetwork" + END + NAME "geonetworkindice" + STATUS OFF + TEMPLATE "none.htm" + TYPE POLYGON + UNITS METERS + CLASS + NAME "" + STYLE + ANGLE 360 + OUTLINECOLOR 196 185 103 + OPACITY 100 + END + END + END +END -- libgit2 0.21.2