[Mapserver-users] WMS Connection problems in MS 4.0

Norbert Schauerte-Lueke nsl at regio-gis-planung.de
Fri Sep 12 07:24:24 PDT 2003


Hi List, 
Using WMS an error occurs so I need some advice.

I want to connect to an WMS Server offered by an institution in 
Germany (LDS). This system is based on the Webservices of 
AED Graphics (an OGC Member). If I try to connect directly by 
the URL with the request GetCapabilities or GetMap everythink 
works fine. 


e.g.: 
http://www.geoserver.nrw.de/GeoOgcWms1.3/servlet/GEPNRW
?VERSION=1.1.0&SERVICE=wms&REQUEST=GetMap&LA
YERS=GEPNRW:Gewerbe&STYLES=,,&SRS=EPSG:31466&
BBOX=2531220,5704038,2541515,5715184&WIDTH=700&H
EIGHT=500&FORMAT=image/png&TRANSPARENT=true&
EXCEPTIONS=application/vnd.ogc.se_inimage


If I use MapServer 3.6 it works, too. But when I use MapServer 
4.0 only an error (No. 500) is returned. I use the Mapserver 4.0 
and the Mapserver 3.6 connection terms. A Sniplet of the 
mapfile will follow. 

If anybody can give a hint, I will be very thankfull.

Norbert

P.S: 
I used the great debug option of MS  for checking the URL. The 
"msHTTPExecuteRequest" that will be given back as error message can be used als 
URL. The URL works. What happends?? 


Here the mapfile sniplet:
#
# Start of LAYER definitions
#
 LAYER # GEP_Gewerbe ####################
  NAME GEP_Gewerbe
  GROUP GEP
  TYPE RASTER
  STATUS ON
  CONNECTIONTYPE WMS
  PROJECTION
    "init=epsg:31466"
  END
  METADATA
     WMS_TITLE "GEPNRW"
     WMS_SRS "EPSG:31466"
     WMS_NAME "GEPNRW:Gewerbe"
     WMS_SERVER_VERSION "1.1.0"
     WMS_FORMATLIST 
"image/png,image/bmp,image/jpeg,image/tiff"
     WMS_FORMAT "image/png"
     #WMS_STYLE ""
     #WMS_TRANSPARENT "true"		 
     TITEL "GEP NRW - Gewerbe"
     LEGEND_ORDER "30"
     GRPTITEL"GEP NRW (Web Map Service des LDS NRW)"
     GRPHREF "/kl/html/fnp.html"
  END
  CONNECTION 
"http://www.geoserver.nrw.de/GeoOgcWms1.3/servlet/GEPNR
W?"
  CLASS
    NAME "Gewerbeflächen"	
    KEYIMAGE "c:/srv/www/htdocs/kl/legend_gep/gewerbe.jpg"
  END  
END
 LAYER # GEP_Gruen ####################
  NAME GEP_Gruen
  GROUP GEP
  TYPE RASTER
  STATUS ON
  CONNECTIONTYPE WMS
  CONNECTION 
"http://www.geoserver.nrw.de/GeoOgcWms1.3/servlet/GEPNR
W?VERSION=1.1.0&SERVICE=wms&REQUEST=GetMap&
LAYERS=GEPNRW:Gr%FCnfl%E4chen&STYLES=,,&FORM
AT=image/png&TRANSPARENT=TRUE"
  PROJECTION
    "init=epsg:31466"
  END
  METADATA
     WMS_TITLE "GEPNRW"
     WMS_SRS "EPSG:31466"
     TITEL "GEP NRW - Grünflächen"
     LEGEND_ORDER "29"
  END
END
R E G I O  G I S  +  P L A N U N G   G m b H
____________________________________________
www.regio-gis-planung.de

Falkstraße 73-77,  47058 Duisburg
Tel. 0203 / 30511-360  
Fax: 0203 / 30511-364

Hainhölzer Strasse 5,  30159 Hannover
Tel. 0511 / 123577-0   
Fax: 0511 / 123577-11






More information about the MapServer-users mailing list