[mapserver-users] wms works with version 1.1.1 but not with 1.3.0

Andre.Steinhaeuser at lung.mv-regierung.de Andre.Steinhaeuser at lung.mv-regierung.de
Mon Apr 29 22:14:24 PDT 2013


Thanks for your replies, i have overseen the changed axis order. It now works for my requests.
Regards,
Andre

-----Ursprüngliche Nachricht-----
Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von mapserver-users-request at lists.osgeo.org
Gesendet: Montag, 29. April 2013 21:00
An: mapserver-users at lists.osgeo.org
Betreff: mapserver-users Digest, Vol 63, Issue 52

Send mapserver-users mailing list submissions to
	mapserver-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
	mapserver-users-request at lists.osgeo.org

You can reach the person managing the list at
	mapserver-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. wms works with version 1.1.1 but not with 1.3.0
      (Andre.Steinhaeuser at lung.mv-regierung.de)
   2. Re: wms works with version 1.1.1 but not with	1.3.0
      (thomas bonfort)
   3. Re: wms works with version 1.1.1 but not with	1.3.0
      (Daniel Morissette)


----------------------------------------------------------------------

Message: 1
Date: Mon, 29 Apr 2013 14:43:24 +0200
From: <Andre.Steinhaeuser at lung.mv-regierung.de>
To: <mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] wms works with version 1.1.1 but not with
	1.3.0
Message-ID:
	<40C03B3C6DE65D4BB3788607B070CFEB0292A90D at LUNGGUE03.lung.lm.mvnet.de>
Content-Type: text/plain;	charset="iso-8859-1"

Hello,

I am trying to set up a wms server with one layer. Mapserver version is 5.6.1.

A getmap-request asking for Version 1.1.1 or 1.1.0 returns an image containing the information(lines) of the layer, including scale bar and legend. When i use a getmap-request for version 1.3.0 it returns a white image and the scale bar an legend but no error. I cannot find any error in my mapfile, but i am sure, there is one. Can anyone help me with finding my fault.

Thanks a lot,
regards,
Andre

+++Mapfile starts+++
MAP
  NAME Lawa
  Size 600 300
  EXTENT 5 47 15 55
  #IMAGECOLOR 123 123 255
  
  PROJECTION
   "init=epsg:4326"
  END
  
  SYMBOLSET './symbols/symbols.sym'
  SCALEBAR
    STATUS EMBED
    UNITS kilometers
    INTERVALS 3
    TRANSPARENT TRUE
    OUTLINECOLOR 0 0 0
    POSITION UR
  END

  LEGEND
    STATUS EMBED
    POSITION LR
    TRANSPARENT TRUE
  END
  
  OUTPUTFORMAT
    NAME "jpg"
    DRIVER AGG/jpeg
    MIMETYPE "image/jpg"
    IMAGEMODE RGB
    EXTENSION "jpg"
  END
  
  UNITS DD
  
  WEB
    IMAGEPATH '/tmp/'

    # Set IMAGEURL to the url that points to IMAGEPATH
    # as defined in your web server configuration
    IMAGEURL '/tmp/'

    # WMS server settings
      METADATA
        "wms_title" "LAWA-Typen-WMS-Server MV"
        "wms_onlineresource" "http://www.fis-wasser-mv.de/cgi-bin/mapserv?map=/home/fgsk/mapserver/LAWA/lawa-wms2.map&"
        "wms_srs" "EPSG:4326"
      END
  END

  LAYER
    NAME 'Lawa-Typen'
    EXTENT 5 47 15 55
    TYPE LINE
    STATUS DEFAULT
    INCLUDE "dbconnection.include"
    DATA "the_geom from (Select gid, the_geom, ty_cd_rw, rwb_name FROM raw.rwbody_wk_de) as FOO USING UNIQUE gid USING srid=4326"
    METADATA
      "wms_title" "LAWA-Typen"
      "wms_srs" "EPSG:4326"
      "wms_format" "image/jpg"
    END
    PROJECTION
      "init=epsg:4326"
    END
    #MINSCALEDENOM 1000
    #MAXSCALEDENOM 1000000000
    CLASS
      STYLE
        COLOR 0 0 0
      END
    END
  END
END

+++Mapfile ends+++


------------------------------

Message: 2
Date: Mon, 29 Apr 2013 15:02:03 +0200
From: thomas bonfort <thomas.bonfort at gmail.com>
To: Andre.Steinhaeuser at lung.mv-regierung.de
Cc: MapserverList OSGEO <mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] wms works with version 1.1.1 but not
	with	1.3.0
Message-ID:
	<CAOM3y2hJ=BFVi+ihu1-oYYFtt3wEPR4t7VsDh7tSOiftEkh2+A at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Are you inverting the axis order in your BBOX= param for the wms 1.3.0 requests (needed if you're requesting in epsg:4326) ?

--
thomas


On 29 April 2013 14:43, <Andre.Steinhaeuser at lung.mv-regierung.de> wrote:

> Hello,
>
> I am trying to set up a wms server with one layer. Mapserver version 
> is 5.6.1.
>
> A getmap-request asking for Version 1.1.1 or 1.1.0 returns an image 
> containing the information(lines) of the layer, including scale bar 
> and legend. When i use a getmap-request for version 1.3.0 it returns a 
> white image and the scale bar an legend but no error. I cannot find 
> any error in my mapfile, but i am sure, there is one. Can anyone help 
> me with finding my fault.
>
> Thanks a lot,
> regards,
> Andre
>
> +++Mapfile starts+++
> MAP
>   NAME Lawa
>   Size 600 300
>   EXTENT 5 47 15 55
>   #IMAGECOLOR 123 123 255
>
>   PROJECTION
>    "init=epsg:4326"
>   END
>
>   SYMBOLSET './symbols/symbols.sym'
>   SCALEBAR
>     STATUS EMBED
>     UNITS kilometers
>     INTERVALS 3
>     TRANSPARENT TRUE
>     OUTLINECOLOR 0 0 0
>     POSITION UR
>   END
>
>   LEGEND
>     STATUS EMBED
>     POSITION LR
>     TRANSPARENT TRUE
>   END
>
>   OUTPUTFORMAT
>     NAME "jpg"
>     DRIVER AGG/jpeg
>     MIMETYPE "image/jpg"
>     IMAGEMODE RGB
>     EXTENSION "jpg"
>   END
>
>   UNITS DD
>
>   WEB
>     IMAGEPATH '/tmp/'
>
>     # Set IMAGEURL to the url that points to IMAGEPATH
>     # as defined in your web server configuration
>     IMAGEURL '/tmp/'
>
>     # WMS server settings
>       METADATA
>         "wms_title" "LAWA-Typen-WMS-Server MV"
>         "wms_onlineresource" "
> http://www.fis-wasser-mv.de/cgi-bin/mapserv?map=/home/fgsk/mapserver/L
> AWA/lawa-wms2.map&
> "
>         "wms_srs" "EPSG:4326"
>       END
>   END
>
>   LAYER
>     NAME 'Lawa-Typen'
>     EXTENT 5 47 15 55
>     TYPE LINE
>     STATUS DEFAULT
>     INCLUDE "dbconnection.include"
>     DATA "the_geom from (Select gid, the_geom, ty_cd_rw, rwb_name FROM
> raw.rwbody_wk_de) as FOO USING UNIQUE gid USING srid=4326"
>     METADATA
>       "wms_title" "LAWA-Typen"
>       "wms_srs" "EPSG:4326"
>       "wms_format" "image/jpg"
>     END
>     PROJECTION
>       "init=epsg:4326"
>     END
>     #MINSCALEDENOM 1000
>     #MAXSCALEDENOM 1000000000
>     CLASS
>       STYLE
>         COLOR 0 0 0
>       END
>     END
>   END
> END
>
> +++Mapfile ends+++
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130429/141d2b45/attachment-0001.html>

------------------------------

Message: 3
Date: Mon, 29 Apr 2013 09:27:08 -0400
From: Daniel Morissette <dmorissette at mapgears.com>
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] wms works with version 1.1.1 but not
	with	1.3.0
Message-ID: <517E752C.5060406 at mapgears.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

And for a longer explanation about this axis order difference between WMS 1.1.1 and 1.3.0 as well as some examples to help understand it, see:

http://dmorissette.blogspot.ca/2012/12/dont-upgrade-to-wms-130-unless-you.html



On 13-04-29 9:02 AM, thomas bonfort wrote:
> Are you inverting the axis order in your BBOX= param for the wms 1.3.0 
> requests (needed if you're requesting in epsg:4326) ?
>
> --
> thomas
>
>
> On 29 April 2013 14:43, <Andre.Steinhaeuser at lung.mv-regierung.de
> <mailto:Andre.Steinhaeuser at lung.mv-regierung.de>> wrote:
>
>     Hello,
>
>     I am trying to set up a wms server with one layer. Mapserver version
>     is 5.6.1.
>
>     A getmap-request asking for Version 1.1.1 or 1.1.0 returns an image
>     containing the information(lines) of the layer, including scale bar
>     and legend. When i use a getmap-request for version 1.3.0 it returns
>     a white image and the scale bar an legend but no error. I cannot
>     find any error in my mapfile, but i am sure, there is one. Can
>     anyone help me with finding my fault.
>
>     Thanks a lot,
>     regards,
>     Andre
>
>     +++Mapfile starts+++
>     MAP
>        NAME Lawa
>        Size 600 300
>        EXTENT 5 47 15 55
>        #IMAGECOLOR 123 123 255
>
>        PROJECTION
>         "init=epsg:4326"
>        END
>
>        SYMBOLSET './symbols/symbols.sym'
>        SCALEBAR
>          STATUS EMBED
>          UNITS kilometers
>          INTERVALS 3
>          TRANSPARENT TRUE
>          OUTLINECOLOR 0 0 0
>          POSITION UR
>        END
>
>        LEGEND
>          STATUS EMBED
>          POSITION LR
>          TRANSPARENT TRUE
>        END
>
>        OUTPUTFORMAT
>          NAME "jpg"
>          DRIVER AGG/jpeg
>          MIMETYPE "image/jpg"
>          IMAGEMODE RGB
>          EXTENSION "jpg"
>        END
>
>        UNITS DD
>
>        WEB
>          IMAGEPATH '/tmp/'
>
>          # Set IMAGEURL to the url that points to IMAGEPATH
>          # as defined in your web server configuration
>          IMAGEURL '/tmp/'
>
>          # WMS server settings
>            METADATA
>              "wms_title" "LAWA-Typen-WMS-Server MV"
>              "wms_onlineresource"
>     "http://www.fis-wasser-mv.de/cgi-bin/mapserv?map=/home/fgsk/mapserver/LAWA/lawa-wms2.map&"
>              "wms_srs" "EPSG:4326"
>            END
>        END
>
>        LAYER
>          NAME 'Lawa-Typen'
>          EXTENT 5 47 15 55
>          TYPE LINE
>          STATUS DEFAULT
>          INCLUDE "dbconnection.include"
>          DATA "the_geom from (Select gid, the_geom, ty_cd_rw, rwb_name
>     FROM raw.rwbody_wk_de) as FOO USING UNIQUE gid USING srid=4326"
>          METADATA
>            "wms_title" "LAWA-Typen"
>            "wms_srs" "EPSG:4326"
>            "wms_format" "image/jpg"
>          END
>          PROJECTION
>            "init=epsg:4326"
>          END
>          #MINSCALEDENOM 1000
>          #MAXSCALEDENOM 1000000000
>          CLASS
>            STYLE
>              COLOR 0 0 0
>            END
>          END
>        END
>     END
>
>     +++Mapfile ends+++
>     _______________________________________________
>     mapserver-users mailing list
>     mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000



------------------------------

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


End of mapserver-users Digest, Vol 63, Issue 52
***********************************************



More information about the MapServer-users mailing list