[Mapbender-commits] r9022 - trunk/mapbender/tools/wms_extent

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 5 02:13:36 PDT 2014


Author: armin11
Date: 2014-08-05 02:13:36 -0700 (Tue, 05 Aug 2014)
New Revision: 9022

Modified:
   trunk/mapbender/tools/wms_extent/extents.map
Log:
Adoption  for new mapserver version 6+

Modified: trunk/mapbender/tools/wms_extent/extents.map
===================================================================
--- trunk/mapbender/tools/wms_extent/extents.map	2014-08-05 08:40:58 UTC (rev 9021)
+++ trunk/mapbender/tools/wms_extent/extents.map	2014-08-05 09:13:36 UTC (rev 9022)
@@ -3,43 +3,51 @@
 	STATUS ON
 	MAXSIZE 5000
 	UNITS METERS
-	EXTENT -180 -90 180 90
+	EXTENT -180 -90 180 90
 	SYMBOLSET  "symbolset_mapbender.sym"
-
+
 	PROJECTION
 		"init=epsg:4326"
 	END
 
-	WEB	
+	WEB	
 		IMAGEPATH "/tmp/"
 		METADATA
 			WMS_TITLE "Layer Extent"
 			WMS_ABSTRACT "Layer Extent"
-			WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?map=/data/mapbender/tools/wms_extent/"
+			#WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?map=/home/armin/GDI-RP/Geoportal/devel/mapbender_trunk/tools/wms_extent/"
+			WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?map=/data/mapbender/tools/wms_extent/"
 			WMS_FEATURE_INFO_MIME_TYPE    "text/html"	
 			WMS_SRS "epsg:4326 epsg:31467 epsg:31466 epsg:31468 epsg:31469 epsg:31462 epsg:31463 epsg:31492 epsg:31493"
 			wms_extent "-180 -90 180 90"
-			include "include_metadata_wms.map"
+			include "include_metadata_wms.map"
+			"wms_enable_request" "*"
 		END
+		VALIDATION
+			'minx' '^[0-9]*\.?[0-9]*$'
+			'miny' '^[0-9]*\.?[0-9]*$'
+			'maxx'  '^[0-9]*\.?[0-9]*$'
+			'maxy' '^[0-9]*\.?[0-9]*$'
+		END
 	END
-
+
 	SYMBOL
 		NAME 'my_hatch'
 		TYPE hatch
 	END
-
+
 	OUTPUTFORMAT
 		NAME 'png'
-		DRIVER 'GD/PNG'
+		DRIVER 'AGG/PNG'
 		MIMETYPE 'image/png'
 		EXTENSION PNG
 		IMAGEMODE PC256
 		TRANSPARENT ON
 	END
-
+
 #-------- use this to have a global map background
 #-------- please set the right IMAGEPATH in the WEB-Section above
-
+
 LAYER
 	NAME "demis"
 	TYPE RASTER
@@ -62,20 +70,20 @@
 	CONNECTIONTYPE postgis 
 	CONNECTION   "dbname=mapbender user=postgres port=5432 host=localhost"
 	DATA "the_geom from (select GeomFromText('POLYGON((%minx% %miny%,%minx% %maxy%,%maxx% %maxy%,%maxx% %miny%, %minx% %miny%))',4326) as the_geom,area2d(GeomFromText('POLYGON((%minx% %miny%,%minx% %maxy%,%maxx% %maxy%,%maxx% %miny%, %minx% %miny%))',4326)) as area, 1 as oid ) as foo USING UNIQUE oid USING SRID=4326"
-
+
 	METADATA
 		WMS_TITLE "Service Extent"
 		WMS_SRS "EPSG:4326"
-		WMS_ABSTRACT "Bounding Box Rectangles of OWS Services registered"
+		WMS_ABSTRACT "Bounding Box Rectangles of OWS Services registered"
 		include "include_metadata_layer.map"
 	END
-
+
 	PROJECTION
 		"init=epsg:4326"
-	END
-
+	END
+
 	CLASSITEM 'area'
-
+
 	CLASS
 		EXPRESSION ([area] > 0.005)
 		NAME "WMS Extent"
@@ -83,11 +91,11 @@
 			OUTLINECOLOR 135 30 50 
 			WIDTH 2 
 		END 
-	END
-
+	END
+
 	CLASS
 		EXPRESSION /./
-		STYLE
+		STYLE
 			GEOMTRANSFORM 'centroid'
 			SYMBOL 'target'
 		END 



More information about the Mapbender_commits mailing list