AW: [Mapserver-users] CCGIS WMS-Demo-Map Germany

Christina Biakowski christina.biakowski at ccgis.de
Fri Nov 21 08:53:45 EST 2003


Hello Herrman,
here is an example of a working WMS-Layer, connecting to the
CCGIS-Germany-Project:

LAYER
NAME "Germany"
TYPE RASTER
STATUS ON
#only show Layer "Grenze"
#CONNECTION
"http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&version=1.0.
0&LAYERS=Grenze"
#show whole map
CONNECTION
"http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&version=1.0.
0
CONNECTIONTYPE WMS
METADATA
    "wms_srs" "epsg:31467"
    "wms_title" "Germany"
END
PROJECTION
     "init=epsg:31467"
END
END

Just yesterday we have done some restructuring on our server so the
getcapabilities-request has sligthly changed (see path to map-file):
http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&WMTVER=1.0.0&
REQUEST=getcapabilities

Regards,
Christina

-----Ursprüngliche Nachricht-----
Von: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]Im Auftrag von Spalting,
Hermann (Kreis Lippe)
Gesendet: Montag, 17. November 2003 10:21
An: Mapserver-Users (E-Mail)
Betreff: [Mapserver-users] CCGIS WMS-Demo-Map Germany


Hi all,

next thing i found out, a GetMap in the Explorer works

http://wms.ccgis.de/umn/bin/mapserv.exe?map=germany.map&WMTVER=1.0.0&REQUEST
=getmap&LAYERS=Postleitzahlbereiche,Staedte,Bundeslaender&FORMAT=image/png

but from a mapfile it still doesn't work.

Here's my mapfile:

#
# Start of map file - created Wed Jun 25 11:19:18 2003
#
MAP
NAME test
STATUS ON
#SIZE 450 300
SIZE 650 433
EXTENT 3468458.495 5736672.103 3529699.575 5787314.022
UNITS meters
SYMBOLSET 'symbols/symbset'
FONTSET 'fonts/fonts.fnt'
IMAGECOLOR 255 255 255
  PROJECTION
  "init=epsg:31467"
  END

#
# Start of web interface definition
#
WEB
 LOG test.log
 TEMPLATE templ.html
 IMAGEPATH 'C:\Programme\Apache Group\Apache2\htdocs\Schutzgebiete\tmp\tmp\'
 IMAGEURL 'http://10.10.26.17/schutzgebiete/tmp/'
 EMPTY 'http://10.10.26.17/Schutzgebiete/nothing.html'
 METADATA
  wms_title 'WMS'
  WMS_ONLINERESOURCE 'http://10.10.26.17/cgi-bin/mapserv.exe?'
  WMS_SRS 'EPSG:26915'
 END  #WEB

END  #HEADER

#
# Properties for the querymap
#
QUERYMAP
  SIZE 200 200
  STATUS ON #OFF
  STYLE HILITE
  COLOR 255 0 0
END

#
# Start of reference map
#
REFERENCE
  STATUS ON
  IMAGE graphics/lip_ref.gif
  SIZE 120 120
#  EXTENT 3468458.495 5736672.103 3529699.575 5787314.022
   EXTENT 3468458.495 5736672.103 3529699.575 5787314.022
  COLOR -1 -1 -1
  OUTLINECOLOR 0 0 0
END  #REFERENCE

#
# Start of legend
#
LEGEND
  STATUS ON
  KEYSIZE 16 8
  TEMPLATE 'legende2.html'
  LABEL
    COLOR 120 120 120
  END # ENDE LABEL
END   #LEGEND

#
# Start of scalebar
#
SCALEBAR
 STATUS ON
 STYLE 0
 INTERVALS 4
 IMAGECOLOR 255 255 255
 LABEL
  COLOR 0 0 0
  SIZE SMALL
 END  #ENDE LABEL
 SIZE 300 3
 COLOR 155 155 155
 BACKGROUNDCOLOR 55 55 55
 OUTLINECOLOR 100 100 100
 UNITS KILOMETERS
END   #SCALEBAR

#
# Start of layer definitions
#


 LAYER
     NAME 'WMS_Test'
     GROUP 'WMS_Test'
     METADATA
       "wms_srs"   "EPSG:31467"
     END
     TYPE RASTER
     STATUS ON
     CONNECTIONTYPE WMS
     CONNECTION

"http://wms.ccgis.de/umn/bin/mapserv.exe?map=germany.map&WMTVER=1.0.0&LAYERS
=Postleitzahlbereiche,Staedte,Bundeslaender&FORMAT=image/png"

   END
END  # MAPFILE



Hermann Spalting
Kreis Lippe
FG 4.4
Felix-Fechenbach-Straße 5
32756 Detmold
email: <<mailto:h.spalting at lippe.de>>
Tel: 05231/62-625 (oder -7827)




More information about the mapserver-users mailing list