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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Jan 30 11:44:56 EST 2011


Author: astrid_emde
Date: 2011-01-30 08:44:55 -0800 (Sun, 30 Jan 2011)
New Revision: 7494

Modified:
   trunk/mapbender/tools/wms_extent/extents.map
Log:
modified the extents.map, area not calulated with 31466 as world wms are out f bounds of 31466, only one extent layer which handles target

Modified: trunk/mapbender/tools/wms_extent/extents.map
===================================================================
--- trunk/mapbender/tools/wms_extent/extents.map	2011-01-30 16:37:42 UTC (rev 7493)
+++ trunk/mapbender/tools/wms_extent/extents.map	2011-01-30 16:44:55 UTC (rev 7494)
@@ -1,181 +1,99 @@
 MAP
-NAME "extents"
-STATUS ON
-SIZE 600 600
-MAXSIZE 5000
-UNITS METERS
-SYMBOLSET  "symbolset_mapbender.sym"
-PROJECTION
-	"init=epsg:4326"
-END
-EXTENT 2475000 5425000 2724000 5658000
-WEB	
-	IMAGEPATH "/tmp/"
-	METADATA
-		WMS_TITLE "Layer Extent"
-		WMS_ABSTRACT "Geoportal Rheinland Pfalz, Layer Extent"
-		WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?map=/data/mapbender/tools/extents.map"
-		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 "2508083 5427840 2681976 5646760"
-		"ows_keywordlist" "Geoportal RLP, Service Layer, WMS, WFS"
-		"ows_fees" "none"
-		"ows_accessconstraints" "none"
-		"ows_addresstype" "postal"
-		"ows_address" "Ferdinand-Sauerbruch-Str. 15"
-		"ows_city" "Koblenz"
-		"ows_stateorprovince" "Rheinland-Pfalz"
-		"ows_postcode" "56073"
-		"ows_country" "Germany"
-		"ows_contactperson" "Armin Retterath" 
-		"ows_contactinformation" "Infos Geoportal-RLP"
-		"ows_contactorganization" "Landesamt für Vermessung und Geobasisinformation Rheinland-Pfalz"
-		"ows_contactposition" "Vermessung und Geobasisinformation"
-		"ows_contactelectronicmailaddress" "armin.retterath at lvermgeo.rlp.de"
-		"wms_contactfacsimiletelephone" "0261/492-466"
-		"wms_contactvoicetelephone" "0261/492-492"
+	NAME "extents"
+	STATUS ON
+	MAXSIZE 5000
+	UNITS METERS
+	EXTENT -180 -90 180 90
+	SYMBOLSET  "symbolset_mapbender.sym"
+
+	PROJECTION
+		"init=epsg:4326"
 	END
-END
-SYMBOL
-	NAME 'my_hatch'
-	TYPE hatch
-END
-OUTPUTFORMAT
-  NAME 'png'
-  DRIVER 'GD/PNG'
-  MIMETYPE 'image/png'
-  EXTENSION PNG
-  IMAGEMODE PC256
-  TRANSPARENT ON
-END
-LEGEND
-  STATUS ON
-  KEYSIZE 10 8
-  KEYSPACING 10 10
-  IMAGECOLOR 255 255 255
-  LABEL
-    COLOR 128 128 128
-    TYPE TRUETYPE
-    FONT "arial"
-    SIZE 8
-  END
-END
-#--------------------------------------------------- use this to have a global map background
-#please set the right tmp path above
-LAYER
-  NAME "demis"
-  TYPE RASTER
-  CONNECTION "http://www2.demis.nl/wms/wms.asp?wms=WorldMap&"
-  CONNECTIONTYPE WMS
-  METADATA
-    "wms_srs"             "EPSG:4326"
-    "wms_name"            "Bathymetry,Countries,Topography,Hillshading,Coastlines,Waterbodies,Rivers,Streams,Railroads,Highways,Roads,Borders,Cities,Settlements,Airports"
-    "wms_connectiontimeout" "2"
-    "wms_server_version"  "1.1.1"
-    "wms_format"          "image/png"
-  END
-END
 
-#---------------------------------------------------
-LAYER
-	NAME "background"
-	STATUS ON
-	TYPE LINE
-	CONNECTIONTYPE postgis 
-	CONNECTION   "dbname=geoportal_latin user=postgres port=5432 host=10.7.101.135"
-	DATA "the_geom from (select gid , the_geom from gis.landes) as foo using unique gid using SRID=31466"  
-	METADATA
-		WMS_TITLE "Rheinland-Pfalz"
-		WMS_SRS "epsg:31466"
-		WMS_ABSTRACT "Bounding Box Rectangles of Geo Resources registered with the Geoportal Rhineland Palatinate"
-		wms_dataurl_format "text/html"
-		wms_dataurl_href "http://www.mapbender.org/"
-		wms_keywordlist "Geoportal, RLP, Rheinland Pfalz, Umgebungsrechteck, Kartensuche, Dienst, OGC WMS, Open Source Geospatial Foundation, OSGeo"
-		wms_metadataurl_format "text/html"
-		wms_metadataurl_href "http://wiki.osgeo.org/"
-		wms_metadataurl_type "TC211"
-		wms_extent "2508083.25 5427840 2681976 5646759.5"
+	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_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"
+		END
 	END
-	MINSCALE 0
-	MAXSCALE 0
-	PROJECTION
-		"init=epsg:31466"
+
+	SYMBOL
+		NAME 'my_hatch'
+		TYPE hatch
 	END
-	CLASS
-		NAME "Rheinland_Pfalz"
-		STYLE
-			OUTLINECOLOR 0 0 0
-			COLOR -1 -1 -1
-		END 
+
+	OUTPUTFORMAT
+		NAME 'png'
+		DRIVER 'GD/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
+	CONNECTION "http://www2.demis.nl/wms/wms.asp?wms=WorldMap&"
+	CONNECTIONTYPE WMS
+	METADATA
+		"wms_srs"             "EPSG:4326"
+		"wms_name"            "Bathymetry,Countries,Topography,Hillshading,Coastlines,Waterbodies,Rivers,Streams,Railroads,Highways,Roads,Borders,Cities,Settlements,Airports"
+		"wms_connectiontimeout" "2"
+		"wms_server_version"  "1.1.1"
+		"wms_format"          "image/png"
+	END
 END
+
 #---------------------------------------------------
 LAYER
 	NAME "extent"
 	STATUS ON
 	TYPE POLYGON
 	CONNECTIONTYPE postgis 
-	CONNECTION   "dbname=geoportal user=postgres port=5432 host=geoportal-db1.gdi.rlp"
-	DATA "the_geom from (select GeomFromText('POLYGON((%minx% %miny%,%minx% %maxy%,%maxx% %maxy%,%maxx% %miny%, %minx% %miny%))',4326) as the_geom,area2d(transform(GeomFromText('POLYGON((%minx% %miny%,%minx% %maxy%,%maxx% %maxy%,%maxx% %miny%, %minx% %miny%))',4326),31466)) as area, 1 as oid ) as foo USING UNIQUE oid USING SRID=4326"
+	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 "RLP Geo-Services"
-		WMS_SRS "epsg:4326"
-		WMS_ABSTRACT "Bounding Box Rectangles of OWS Services registered with thte Geoportal Rhineland Palatinate"
-		wms_dataurl_format "text/html"
-		wms_dataurl_href "http://www.geoportal.rlp.de"
-		wms_keywordlist "Geoportal, RLP, Rheinland Pfalz, Umgebungsrechteck, Kartensuche, Dienst, OGC WMS, Open Source Geospatial Foundation. OSGeo"
-		wms_metadataurl_format "text/html"
-		wms_metadataurl_href "http://www.geoportal.rlp.de"
-		wms_metadataurl_type "TC211"
-		wms_extent "2508083.25 5427840 2681976 5646759.5"
+		WMS_TITLE "Service Extent"
+		WMS_SRS "EPSG:4326"
+		WMS_ABSTRACT "Bounding Box Rectangles of OWS Services registered"
+		include "include_metadata_layer.map"
 	END
+
 	PROJECTION
 		"init=epsg:4326"
-	END
- 	CLASS
-		EXPRESSION ([area] > 300000)
-		NAME "bbox2"
-		STYLE
-        		OUTLINECOLOR 135 30 50 
-        		WIDTH 2 
-      		END 
-	END
-END
-#-------------------------------------
-LAYER
-	NAME "ows_layer_target"
-	STATUS DEFAULT
-	TYPE POINT 
-	LABELMAXSCALE 5000000000
-	LABELMINSCALE 0
-	CONNECTIONTYPE postgis
-	CONNECTION   "dbname=geoportal user=postgres port=5432 host=10.7.101.135"
-	DATA "the_geom from (select centroid(GeomFromText('POLYGON((%minx% %miny%,%minx% %maxy%,%maxx% %maxy%,%maxx% %miny%, %minx% %miny%))',4326)) as the_geom,area2d(transform(GeomFromText('POLYGON((%minx% %miny%,%minx% %maxy%,%maxx% %maxy%,%maxx% %miny%, %minx% %miny%))',4326),31466)) as area, 1 as oid ) as foo USING UNIQUE oid USING SRID=4326"
-	LABELCACHE ON
-	METADATA
-		WMS_TITLE "RLP Geo-Services Annotations"
-		WMS_SRS "epsg:4326"
-		WMS_ABSTRACT "Bounding Box Rectangles of OWS Services registered with thte Geoportal Rhineland Palatinate"
-		wms_dataurl_format "text/html"
-		wms_dataurl_href "http://www.mapbender.org/"
-		wms_keywordlist "Geoportal, RLP, Rheinland Pfalz, Umgebungsrechteck, Kartensuche, Dienst,OGC WMS, Open Source Geospatial Foundation. OSGeo"
-		wms_metadataurl_format "text/html"
-		wms_metadataurl_href "http://wiki.osgeo.org/"
-		wms_metadataurl_type "TC211"
-		wms_extent "2508083.25 5427840 2681976 5646759.5"
-	END
-	PROJECTION
-		"init=epsg:4326"
-	END
+	END
+
+	CLASSITEM 'area'
+
 	CLASS
-		EXPRESSION ([area] <= 300000)
-		NAME "bbox"
+		EXPRESSION ([area] > 0.005)
+		NAME "WMS Extent"
 		STYLE
+			OUTLINECOLOR 135 30 50 
+			WIDTH 2 
+		END 
+	END
+
+	CLASS
+		EXPRESSION /./
+		STYLE
+			GEOMTRANSFORM 'centroid'
 			SYMBOL 'target'
-		END
+		END 
 	END
 END
+
 #-------------------------------------
 
-
 END



More information about the Mapbender_commits mailing list