# This is an example and explantion of an wms definition file.
# copy and rename this file to the extension .wms
# You can add your own .wms file to this directory 
# and the new service will be available in the download maps dialog
# name the file this way: <internet domain of the covered region, replace "." by "-" and inverse the order>_<type of map>_<original scale>.wms
# e.g. "de-ni_topo_50", meaning germany (de), Niedersachen (ni), topographical map, original scale 1:50000.
# Please don't use capital letter or special characters (only "a-z0-9" and "-_" are allowed) 
# in the filename in order to avoid problems on different platforms
# Please include in every .wms you create a reference to this explanation file
#
# For a list of WMS Services available in Germany see: http://deutschlandviewer.bayern.de/deutschlandviewer/D_Viewer_Hilfe/Hilfe_D_Viewer.htm#Geodaten
# This example is made up from there "Digitales Orthophoto" under section "Nordrhein-Westfalen"
# download the getCapabilieties URL, save and open it in a text editor. 
# used here: http://www.gis2.nrw.de/wmsconnector/wms/luftbild?REQUEST=GetCapabilities&VERSION=1.1.0&SERVICE=WMS
#
# You can delete and add comments if you like. A comment starts with "#" in the first coloumn of the line.
#
# Please include the two lines (TakenFromUrl: and GetCapabilitiesUrl:)
# and fill in accordingly in any .wms file you make. They
# are (still) not used by CacheWolf but they are usefull
# for someone who wants to make his own changes to your file.
# 
# Url where the GetCapabilitiesUrl is taken from, in order to be able
# to gather some information about the map
TakenFromUrl:	http://deutschlandviewer.bayern.de/deutschlandviewer/D_Viewer_Hilfe/Hilfe_D_Viewer.htm#Geodaten
GetCapabilitiesUrl:	http://www.gis2.nrw.de/wmsconnector/wms/luftbild?REQUEST=GetCapabilities&VERSION=1.1.0&SERVICE=WMS	
#
# friendly name, choose yourself. By convention start with the internet domanin
# of the covered region and add the type of map and the scale of the original map 
# multiplied by 1000, e.g. "de.nrw Luftbild" or
# "en Airial photo" or "de.th Topo 1:50"
Name:	de.nrw Luftbild
# taken from getCapabilieties answer: <HTTP><GET><OnlineResource xlink:href=
# note: if it doesn't work, please try adding an "?" to the URL got from there
MainUrl:	http://www.gis2.nrw.de/wmsconnector/wms/luftbild? 
# if this service delivers topografic maps, fill in here "topo"
# if it delivers aerial photographs fill in "photo".
# Please use only lower case letters and no special characters
# in order to avoid problems using this file on different platforms
# CacheWolf will store all maps of the same Type in the same 
# directory.
MapType: photo
# this is fix, don't change it
ServiceTypeUrlPart:	SERVICE=WMS 
# taken from the getCapabilities request: <WMT_MS_Capabilities version=
VersionUrlPart:	VERSION=1.1.0 
# The EPSG-Code, supported by cachewolf: German Gau-Krger (31466, 31467, 31468, 
# 31469), Italian Gau-Boaga (3003 and 3004), Austrian Lambert old (31287) and
# new (31287) and WGS84 (4326)
# You get a list of supported coordinate systems from the WMS in the getCapabilieties 
# answer under <Layer><SRS> or <CRS>
# Please feel free to ask for another coordinate system to be supported by cachewolf 
# if you need it
# Many servers say they support several EPSG codes. My experience is
# that usually the projection which was used for the scanned analog material
# offer the best calibration and image quality. That's why you should test 
# the calibration especially when using epsg:4326 (WGS84) [there is no printed
# map in that format].
# In countries which cover a big area of the world (like Germany, unlike Austria)
# we have zones (or stripes) which each has its own epsg code. But they all
# belong to the same local system. In this case
# put all the EPSG codes which (a) belong to the same local system and 
# which (b) are supported by the server here, separated by a space. 
# CacheWolf will automatically make use of the correct zone and according epsg code. 
# The sequence of strings in the UrlPart must match sequence of the corresponding numbers here.
# Sometimes the wms-Server provides only one stripe, in spite of the fact, that
# the map it provides is not completely within this stripe. In this case
# just list only this epsg code. CacheWolf will automatically calculate the
# local system for that zone (e.g. Gau-Krger coordinates for that stripe).
# remark: some WMS offer WGS84 (EPSG 4326), but they are sometimes working not
# correctly (for example the WMS of the Landesvermessungsamt NRW as of nov. 2007)
# In this case don't list it.
# don't mix different local systems.
CoordinateReferenceSystemCacheWolf:	31466 31467
# this usually will match the number above
CoordinateReferenceSystemUrlPart:	SRS=EPSG:31466 SRS=EPSG:31467
# Post not supported by Cachewolf --> don't change this
RequestUrlPart:	REQUEST=GetMap
# comma separated (without spaces) list of layers to combine
# all of supported layers you get from the getCapabilities request <Layer><Name>
# these names are to be used. Special characters must be URL-encode
LayersUrlPart:	LAYERS=Orthophoto%20Str.%202,Orthophoto%20Str.%203
# if the WMS supports different rendering styles, select the one you need here
# comma separated (without spaces) list of style commands for map rendering (do not delete this item even if it is empty
StylesUrlPart:	STYLES=
# format, don't forget to set ImageFileExtension accordingly
# you get a list of supported image formats from getCapabilieties answer: <GetMap><Format>
ImageFormatUrlPart:	FORMAT=image/png
# Limits of the service in WGS84 coordinates. 
# You can use any format here, which is accepted by the input coordinates dialog in cachewolf
# remark: more than 8 digits after the decimal separator will cause the
# program to not recognize it
# taken from getCapabilieties answer: <BoundingBox SRS="EPSG:4326", don't forget to add "N"/"S" and "E"/"W"
BoundingBoxTopLeftWGS84:	N 52.7691 E 5.673
BoundingBoxButtomRightWGS84:	N 49.9944 E 10.142
# scale range that the service supports in meters per pixel (measured diagonal)
# Please don't wonder that they do not match the scale given in
# the map download dialog as that scale is measured vertically 
# (multiply it by sqrt(2)=1.41 and you get the scale used here
# taken from the getCapabilities request "<Layer><ScaleHint min="
MinScale:	0.17957836
MaxScale:	5.61182372
# Please recommend a scale for this WMS. This scale will appear in the
# map download dialog as default. Scale is measured in meters per pixel
# vertical, so, multiply it by 1.41 (=sqrt(2)) to get the scale as measured
# above in MinScale and MaxScale
# You can recommend several scales, separate them by one space. The first 
# one will be pre-selected the others will appear in the drop-down box.
# Anyway the user can still enter any scale he wishes 
RecommendedScale:	1 2.5 5 25
# set this according to ImageFormatUrlPart (must start with ".")
ImageFileExtension: .png

