[Live-demo] Re: [OSGeo] #775: MapServer does not support WMS

OSGeo trac_osgeo at osgeo.org
Tue Aug 23 03:46:05 PDT 2011


#775: MapServer does not support WMS
-------------------------+--------------------------------------------------
 Reporter:  olt          |       Owner:  live-demo@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  major        |   Milestone:                           
Component:  LiveDVD      |    Keywords:  mapserver, 5.0           
-------------------------+--------------------------------------------------
Changes (by hamish):

  * keywords:  mapserver => mapserver, 5.0
  * priority:  normal => major


Comment:

 quote the June email:
 {{{
 Hi,

 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
 "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
 <ServiceExceptionReport version="1.1.1">
 <ServiceException code="InvalidSRS">
 msWMSLoadGetMapParams(): WMS server error. Cannot set new SRS on a map
  that doesn't have any projection set. Please make sure your mapfile
  has a projection defined at the top level.
 </ServiceException>
 </ServiceExceptionReport>

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


 Regards,
 Oliver
 }}}


 the source of the data is stored in gisvm/trunk/app-
 data/mapserver/workshop/mapserver-itasca-ms60.zip

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


 here is a possible patch, what do you think?
 {{{
 --- itasca.map.ORIG     2011-08-23 22:40:56.163637724 +1200
 +++ itasca.map  2011-08-23 22:42:13.855650009 +1200
 @@ -16,17 +16,17 @@
    #
    # Projection definition, consult the PROJ.4 documentation for parameter
 discussion
    #
 -  # PROJECTION
 -  #   "proj=utm"
 -  #   "ellps=GRS80"
 -  #   "zone=15"
 -  #   "north"
 -  #   "no_defs"
 +PROJECTION
 +  "proj=utm"
 +  "ellps=GRS80"
 +  "zone=15"
 +  "north"
 +  "no_defs"
    #
    #   OR:
    #
    #   "init=epsg:26915"
 -  # END
 +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.


 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/775#comment:1>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Osgeolive mailing list