[Mapserver-users] WMS help
Ed McNierney
ed at topozone.com
Wed Dec 18 12:20:36 PST 2002
Dave -
I don't have time right now to look into this in detail, but this feels like the bug Daniel fixed which caused WMS requests with an SRS= parameter in them to hang. To test, try generating (by hand) the appropriate WMS request both with and without the SRS parameter. If it works without the parameter and hangs with it, it may well be the same bug. However, I think you'll need to upgrade to the 3.7 development version to get the fix.
If you can confirm this is the problem, and you can't move to 3.7, then let me know and I'll give you pointers on how to patch the 3.6.1 source.
- Ed
-----Original Message-----
From: Lowther, David W [mailto:dlowther at ou.edu]
Sent: Wednesday, December 18, 2002 2:32 PM
To: Ed McNierney; Lowther, David W; Mapserver-Users (E-mail)
Subject: RE: [Mapserver-users] WMS help
Ed,
This is correct for both server and client versions...
E:\Inetpub\cgi-bin>mapserv -v
MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=P
ROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7
INPUT=POSTG
IS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Dave
-----Original Message-----
From: Ed McNierney [mailto:ed at topozone.com]
Sent: Wednesday, December 18, 2002 1:23 PM
To: Lowther, David W; Mapserver-Users (E-mail)
Subject: RE: [Mapserver-users] WMS help
Dave -
What build of MapServer are you using? This *might* be related to a bug I
ran into (and that Daniel has since fixed) concerning SRS= parameters in
GetMap requests.
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
ed at topozone.com
(978) 251-4242
-----Original Message-----
From: Lowther, David W [mailto:dlowther at ou.edu]
Sent: Wednesday, December 18, 2002 1:48 PM
To: Mapserver-Users (E-mail)
Subject: Re: [Mapserver-users] WMS help
Ryan,
Thanks for your help. And, you're right. I got it to work just fine.
Except when I try to project.
The working version of my mapfile (client) contains:
EXTENT -102 33 -94 37
UNITS DD
and no PROJECTION params.
If I change the mapfile (client) to read:
EXTENT -633771.227805 1060738.573036 152927.340425 1689379.870746
UNITS METERS
PROJECTION # ALBERS OK -all drg's and doqq's on geo site are OK ALBERS
proj=aea
lat_1=29.500000000 #SP1
lat_2=45.500000000 #SP2
lat_0=23.000000000 #REF LAT
lon_0=-96.000000000 #CENTRAL MERIDIAN
x_0=0.000 #FALSE EAST
y_0=0.000 # FALSE NORTH
datum=NAD83
ellps=GRS80
no_defs
END
The maps generate just fine for all non-wms layers with the second set of
settings. As soon as I turn on a WMS layer the browser just waits and waits
while mapserv.exe is running on the client web server. The exe is hung. So
it seems to be something with the projections... Would you agree? Ideas?
Dave
-----Original Message-----
From: Grant, Ryan [mailto:rgrant at nrcan.gc.ca]
Sent: Wednesday, December 18, 2002 11:52 AM
To: 'Lowther, David W'
Subject: RE: [Mapserver-users] WMS help
Hey Dave,
Well, I just added your layer (with some alterations) to my own mapfile, and
it came in just fine. The layer definition I used was:
LAYER
NAME cnty_wms
STATUS ON
TYPE line
CONNECTIONTYPE WMS
CONNECTION
"http://geo.ou.edu/cgi-bin/mapserv.exe?map=wms.map&VERSION=1.1.0&LAYERS=Coun
ties&FORMAT=image/png&TRANSPARENT=TRUE"
PROJECTION #GEOGRAPHIC NAD83
proj=longlat
ellps=GRS80
no_defs
END
METADATA
"wms_title" "County"
"wms_srs" "EPSG:4269 EPSG:4326"
"wms_connectiontimeout" "10"
END
END
Just thought you'd like to know..
Ryan
-----Original Message-----
From: Lowther, David W [mailto:dlowther at ou.edu]
Sent: Wednesday, December 18, 2002 8:43 AM
To: Mapserver-Users (E-mail)
Subject: [Mapserver-users] WMS help
Howdy List,
I am trying to setup WMS Server and Client stuff. The files in the doc are
great. I've setup the server, tested XML output, and run it through
cubeview. Evertyhing looks good.
http://geo.ou.edu/cgi-bin/mapserv.exe?map=wms.map&REQUEST=GETCAPABILITIES
http://geo.ou.edu/cgi-bin/mapserv.exe?map=wms.map&VERSION=1.1.0&REQUEST=GETM
AP
Problem is I can't get the client cooking from here.
Here's the layer def from the client mapfile:
LAYER
GROUP "Administrative Boundaries"
NAME cnty_wms
TYPE LINE
STATUS OFF
CONNECTIONTYPE WMS
CONNECTION
"http://geo.ou.edu/cgi-bin/mapserv.exe?map=wms.map&VERSION=1.1.0&LAYERS=Coun
ties&FORMAT=image/png"
# DATA county
PROJECTION #GEOGRAPHIC NAD83
proj=longlat
ellps=GRS80
no_defs
END
METADATA
"wms_srs" "EPSG:4269 EPSG:4326"
"wms_connectiontimeout" "10"
legend_order "140"
END
CLASS#
MAXSCALE 100000
SYMBOL "line"
COLOR 98 98 98
SIZE 8
END
CLASS#
MINSCALE 100001
SYMBOL "line"
NAME "County Boundary (WMS)"
COLOR 98 98 98
SIZE 2
END
END
Anybody got any idea what I'm doing wrong here? I don't really understand
the relationship between the server mapfile projection, server layer
projection, client mapfile projection, and client layer projection. Could
this be causing my problems? Can anyone else see this layer?
Thanks for any help,
David Lowther
Software Engineer
GEO Information Systems
dlowther at ou.edu
(405) 325-3131
http://www.geo.ou.edu
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list