From 4e6b48dd862e0caf06f04382cefcb5a865c26009 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 23 Nov 2011 13:26:24 +0000 Subject: [PATCH] Inclusão de rotina para remover elementos depreciados em MAPFILEs --- admin/html/incluimap.html | 28 +++++++++++++++++++++++++++- admin/php/incluiMAP.php | 49 +++++++++++++++++++++++++++++++------------------ temas/acidmap.map | 10 +++++----- temas/atlas_biomas.map | 10 +++++----- temas/autolegenda_exemplo.map | 6 +++--- temas/bing.map | 2 ++ temas/biomashp.map | 10 +++++----- temas/biomashpwms.map | 10 +++++----- temas/cbers.map | 2 ++ temas/cbersgeo.map | 4 +++- temas/cbersi.map | 6 +++--- temas/cinzapalete.map | 4 +++- temas/estadosl.map | 2 ++ temas/geojs_ogr1.map | 2 ++ temas/geopr_ana_federais.map | 6 +++--- temas/geopr_aneel_termeletricas.map | 10 +++++----- temas/geopr_sipam_vege.map | 6 +++--- temas/kml.map | 66 ++++++++++++++++++++++++++++++++++-------------------------------- temas/locali.map | 10 +++++----- temas/municipios.map | 10 +++++----- temas/munpop.map | 18 ++++++++---------- temas/osm.map | 71 ++++++++++++++++++++++++++++++++++++----------------------------------- temas/p2r2uf1.map | 5 ++--- temas/postgis.map | 10 +++++----- temas/povoado.map | 14 +++++++------- temas/teste.map | 3 ++- temas/teste5.map | 40 +++++++++++++++++++++------------------- temas/testegml.map | 69 +++++++++++++++++++++++++++++++++++---------------------------------- temas/testept.map | 10 +++++----- temas/testepttemplatekml.map | 6 +++--- temas/testesubsstring.map | 6 +++--- temas/testeutf8postgis.map | 5 ++--- temas/testeutm.map | 6 +++--- temas/vegetacao.map | 6 +++--- 34 files changed, 288 insertions(+), 234 deletions(-) diff --git a/admin/html/incluimap.html b/admin/html/incluimap.html index 73ae465..8fdef83 100644 --- a/admin/html/incluimap.html +++ b/admin/html/incluimap.html @@ -14,7 +14,33 @@ você pode editá-los individulamente ou rodar o programa i3geo/admin/php/incluiMA

Antes de fazer isso, faça um backup do seu diretório i3geo/temas

-Executar o ajuste dos mapfiles +Ajuste dos mapfiles - inclusão da palavra "MAP" no início dos arquivos; substituição de vários elementos depreciados +

+Lista de substituições: +

+	$search = array(
+		"transparency ",
+		"LABELANGLEITEM ",
+		"LABELMAXSCALE ",
+		"LABELMINSCALE ",
+		"LABELMINSCALE ",
+		"LABELSIZEITEM ",
+		"MAXSCALE ",
+		"MINSCALE ",
+		"SYMBOLSCALE "
+	);
+	$replace = array(
+		"OPACITY ",
+		"#LABELANGLEITEM ",
+		"LABELMAXSCALEDENOM ",
+		"LABELMINSCALEDENOM ",
+		"LABELMINSCALEDENOM ",
+		"#LABELSIZEITEM ",
+		"MAXSCALEDENOM ",
+		"MINSCALEDENOM ",
+		"SYMBOLSCALEDENOM "
+	);
+