# Copyright (c) 2009-2012, Dan "Ducky" Little & GeoMOOSE.org

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

MAP
	#--------------------------------------------------------------------------------
	#---------------------------------MAPFILEHEADER----------------------------------
	#--------------------------------------------------------------------------------
	NAME 'POI'
	STATUS ON
	EXTENT  295743 5511505 709358 5755456
	SIZE 1000 1000
	UNITS METERS
	IMAGETYPE PNG
	PROJECTION
		'init=epsg:25833' 	#projection of the map
	END
	OUTPUTFORMAT
		NAME png
		DRIVER "GD/PNG"
		MIMETYPE "image/png"
		IMAGEMODE PC256
		EXTENSION "png"
	END	
	INCLUDE "../../../geomoose_globals.map"
	#--------------------------------------------------------------------------------
	#-----------------------------------WEB-SECTION----------------------------------
	#--------------------------------------------------------------------------------
	WEB
		IMAGEPATH "/ms4w/tmp/ms_tmp/"
		IMAGEURL "/ms_tmp/"
		METADATA
			WMS_TITLE "angebote"
			WMS_ABSTRACT "POI-Angebote von Sachsen und Niederschlesien"
			WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv?
				map=/geomoose2/maps/demo/test/angebote/unterkunft.map"
			WMS_SRS "EPSG:25833"		
			WMS_ENABLE_REQUEST "*"
			WMS_FEATURE_INFO_MIME_TYPE "text/html"
		END
	END
	#--------------------------------------------------------------------------------
	#------------------------------------LEGEND--------------------------------------
	#--------------------------------------------------------------------------------
	LEGEND
	    STATUS ON
	    LABEL
			TYPE TRUETYPE
			FONT "arial"
			SIZE 8
			COLOR 1 1 1
	    END		
	END	
	#--------------------------------------------------------------------------------
	#-------------------------------------LAYER--------------------------------------
	#-------------------------------------------------------------------------------- 
  	LAYER
        NAME 'unterkunft'
		CONNECTIONTYPE postgis
        CONNECTION "host=localhost dbname=postgis_testdb schema=public user=postgres password=******** port=5432"
        DATA "geometry from angebote using unique unterkunftid using srid=3857"
		DUMP true
		TEMPLATE fooOnlyForWMSGetFeatureInfo
		TYPE POINT
		STATUS ON
		METADATA
			WMS_TITLE "unterkunft"
		END
		PROJECTION
			'init=epsg:3857' 	#projection of the layer
		END
		CLASS
			STYLE
				SYMBOL "../img/haus-11-kl.png"
				SIZE 20
			END
		END
	
		TOLERANCE 1000
  	END
  
END 	#end map