Opened 13 years ago

Closed 13 years ago

#775 closed enhancement (fixed)

MapServer does not support WMS

Reported by: olt Owned by: live-demo@…
Priority: major Milestone:
Component: OSGeoLive Keywords: mapserver, 5.0


The MapServer itasca demo on the LiveDVD does not support WMS. It is missing a projection definition and the ows_enable_request settings. I reported that two month ago

It is not possible to use the demo in uDig/QGIS/MapProxy/etc. The MapServer demo/quick guide works, but it should also support WMS since we (OSGeo) advocate open standards.

Attachments (1)

itasca.diff (955 bytes ) - added by olt 13 years ago.

Download all attachments as: .zip

Change history (6)

comment:1 by hamish, 13 years ago

Keywords: 5.0 added
Priority: normalmajor

quote the June email:


I'm creating an example configuration for MapProxy for the LiveDVD and I
found out that the Itasca Demo from Mapserver is not configured properly.
I get the following error if I make WMS requests:

<!DOCTYPE ServiceExceptionReport SYSTEM "">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidSRS">
msWMSLoadGetMapParams(): WMS server error. Cannot set new SRS on a map
 that doesn&#39;t have any projection set. Please make sure your mapfile
 has a projection defined at the top level.

It also doesn't work in uDig for example. It works fine if I uncomment the
PROJECTION part in the file. Can someone update the example for
the next LiveDVD release? (and add a author/maintainer comment to the :)


the source of the data is stored in gisvm/trunk/app-data/mapserver/workshop/

so to fix it we can just unzip, edit, and rezip that.

here is a possible patch, what do you think?

---	2011-08-23 22:40:56.163637724 +1200
+++	2011-08-23 22:42:13.855650009 +1200
@@ -16,17 +16,17 @@
   # Projection definition, consult the PROJ.4 documentation for parameter discussion
-  #   "proj=utm"
-  #   "ellps=GRS80"
-  #   "zone=15"
-  #   "north"
-  #   "no_defs"
+  "proj=utm"
+  "ellps=GRS80"
+  "zone=15"
+  "north"
+  "no_defs"
   #   OR: 
   #   "init=epsg:26915"
-  # END
   # Start of symbol definitions (we're only using a few)

n.b. the proj4 "+north" term doesn't exist/is a no-op, only utm "+south" counts. I assume the "OR" was comments not code. I don't know if it matters, but also note the specified proj terms do not set the datum (NAD83) while the EPSG version does.


comment:2 by olt, 13 years ago

Plus the ows_enable_request stuff that is new in 6.0.

in reply to:  2 comment:3 by hamish, 13 years ago

Replying to olt:

Plus the ows_enable_request stuff that is new in 6.0.

can you prepare a patch? I don't know mapserver well enough to know if I'm screwing it up or not.

thanks, Hamish

by olt, 13 years ago

Attachment: itasca.diff added

comment:4 by olt, 13 years ago

WMS works with that patch. Tested with MapProxy on 5.0rc1.

comment:5 by johanvdw, 13 years ago

Resolution: fixed
Status: newclosed

Patch applied - issue fixed now.

Note: See TracTickets for help on using tickets.