[mapserver-users] I give up; WMS (client)

Brian Fischer bfischer at mpls.houstoneng.com
Tue Nov 12 09:10:34 PST 2002


Murray,

Here are a couple of WMS layers I have been using.  I hope this might
help you out.

# RRBDINviewer.map
MAP
   NAME "RRBDINViewer"
   EXTENT 345221 5009802 896629 5620242
   SIZE  500 500
   FONTSET "d:/rrbdin/tools/mapserv36/fonts/fontset.list"
   SYMBOLSET "d:/rrbdin/tools/mapserv36/symbols/symbol.sym"
   SHAPEPATH "d:/rrbdin/tools/mapviewer/shapefiles"
   UNITS METERS
   Projection
     "init=epsg:26914"
   END


   WEB
      IMAGEPATH "d:/rrbdin/tools/mapserv36/temp_mapserv/"
      TEMPLATE rrbdinviewer_main.html
      Metadata
        wms_title "RRBDIN"
       # WMS_onlineresource
"http://www.rrbdin.org/tools/mapserv36/cgi-bin/mapserv.exe?map=tools/map
viewer/rrbdinviewer.map"
      END 
      MINSCALE 1000
      MAXSCALE 7000000
      EMPTY '../../mapviewer/query_miss.html'
   END

....

LAYER
  NAME bathmetry
  METADATA
	"wms_title" "Elevation/Bathymetry"
	"wms_srs" "EPSG:42304 EPSG:4269 EPSG:4326"
  END
  TYPE RASTER
  STATUS OFF
  CONNECTIONTYPE WMS
  CONNECTION
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?VERSION=1.1.0&REQUEST=get
MAP&LAYERS=bathymetry,prov_bound,drainage,drain_fn,popplaces&SRS=EPSG:42
304&BBox=-2200000,-712631,3072800,3840000&Transparent=false&FORMAT=image
/gif"
  PROJECTION
      "init=epsg:42304"
  END
 End #layer DmSolutions

LAYER
     NAME "usgslandsat7"
     METADATA
       "wms_title" "US_Landsat7"
       "wms_srs" "epsg:4326"
       "wms_connectiontimeout" "1000"
     END
     TYPE RASTER
     STATUS OFF
     CONNECTIONTYPE WMS
     CONNECTION
"http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?ServiceName=USGS_W
MS_LANDSAT7&VERSION=1.0.0&REQUEST=map&Layers=LANDSAT7&SRS=EPSG:4326&REAS
PECT=false&Format=gif"
     PROJECTION
       "init=epsg:4326"
     END
   END #layer usgslandsat7

Brian

-----Original Message-----
From: Murray, Ross [mailto:rmurray at NRCan.gc.ca] 
Sent: Tuesday, November 12, 2002 10:58 AM
To: Mapserver-Users (E-mail)
Subject: [mapserver-users] I give up; WMS (client)

Uncle!

I have been trying for days now to retrieve a layer (any layer) into my
MapServer application from a remote MapServer source. I am sure I have a
correctly compiled programme:

	MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=SDE INPUT=OGR
INPUT=GDAL
INPUT=SHAPEFILE

and I am sure all the paths, including the one to the epsg file, are
correctly specified. My server end gets its stuff from an SDE layer and
the
display is fine. I use the same programme, the same templates, and
differ
only in these lines in the map file

in server WEB object
<    METADATA
< 	 WMS_TITLE "Surficial geology - Milne Inlet, NU"
< 	 WMS_ONLINERESOURCE
"http://s5-ott-issbeta/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fsurficia
l%2f
maps%2fmilne.map&"
--- in client WEB object
>    METADATA
> 	 WMS_TITLE "Surficial geology - Milne Inlet, NU"
> 	 WMS_ONLINERESOURCE
"http://w5-ott-isstsd2/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fwwwroot%
2fma
pserv_site%2fmilne.map&"

and, in server end LAYER object (slightly altered with x's)
<    DATA "GSC10196200002PLY,shape"
<    CONNECTION "xxx.xxx.nrcan.gc.ca,port:5151,null,xxxx,xxxx"
<    CONNECTIONTYPE sde
<    NAME milne
--- client end LAYER object
>    CONNECTION
"http://s5-ott-issbeta/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fsurficia
l%2f
maps%2fmilne.map&REQUEST=GetMap&VERSION=1.1.0&FORMAT=image/png&LAYERS=mi
lne&
TRANSPARENT=true"
>    CONNECTIONTYPE WMS
>    NAME milne

It does not work. I get a blank image (but the scalebar is fine). On the
advice of a knowledgable colleague I tried connecting to a demo layer
using
this for the LAYER object

LAYER
    NAME "GMap_WMS_Demo_Server-park"
    STATUS ON
    TYPE RASTER
    CONNECTIONTYPE WMS
    CONNECTION
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?SERVICE=WMS&VERSION=1.1.0
&LAY
ERS=park&QUERY_LAYERS=park&FORMAT=image/gif&TRANSPARENT=TRUE"
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 3
    TOLERANCEUNITS PIXELS
    METADATA
      "wms_srs"    "EPSG:4269 EPSG:4326"
      "wms_title"    "Parks"
      "wms_boundingbox"    "EPSG:4269 -2346800 -67422.39844 2840370
3830120"
      "wms_queriable"    "1"
      "wms_latlonboundingbox"    "-173.433 41.4271 -13.0481 83.7466"
    END
    PROJECTION
      "" 
      "proj=lcc" 
      "ellps=WGS84" 
      "lat_1=49" 
      "lat_2=77" 
      "lat_0=49" 
      "lon_0=-95" 
      "x_0=0" 
      "y_0=0" 
    END #End layer projection
  END #End of raster layer "GMap_WMS_Demo_Server-park"

Again a nice scalebar but a blank image.

Can anyone suggest why this image is blank, or can anyone point me in
the
direction of how to debug something like this? I am most grateful to all
the
kind help I have received.

 <<Murray, Ross.vcf>> 




More information about the MapServer-users mailing list