Stephen Woodbridge | 7 Jul 15:40 2015

Fwd: Fwd: Mapserver Fail to draw shp layer

Wei,

I would suggest using gdalinfo to check on what projection the shp file 
is in and verify the extents of the data. The make sure you mapfile has 
the same projection info on the LAYER.

-Steve W

-------- Forwarded Message --------
Subject: 	Fwd: Mapserver Fail to draw shp layer
Date: 	Tue, 7 Jul 2015 13:35:01 +0800
From: 	wei cheng <chengwei02 <at> gmail.com>
To: 	woodbri <at> swoodbridge.com

hiStephen
<http://www.linkedin.com/profile/view?id=62685316&authType=name&authToken=nyFl&goback=&trk=abook_conn>

I'm sorry to interrupt you but I encounter one tricky issue for me that
I can't skip over.

I have posted to mapserver users mail group, however, it seems not
published, I can't find it at least here
<http://lists.osgeo.org/pipermail/mapserver-users/>

Thanks and BRs.

/Wei
---------- Forwarded message ----------
From: *wei cheng* <chengwei02 <at> gmail.com <mailto:chengwei02 <at> gmail.com>>
Date: 2015-07-06 9:27 GMT+08:00
(Continue reading)

thomas bonfort | 7 Jul 14:06 2015
Picon

MapServer 6.4.2, 7.0.0-beta2 and TinyOWS 1.1.1 releases

This is a security release to mitigate an information disclosure issue
with libxml2 (versions older than 2.9, c.f.
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0339 ) which
can reveal any file accessible on the host system by passing a
specially crafted XML file. Although this is not an issue with
MapServer itself, the proposed update makes sure this vector of attack
cannot be used when mapserver is using a version of libxml2 older than
2.9.
You are strongly recommended to update if your mapserver has libxml2
support and is using an unpatched version of libxml2 older than 2.8.

We are concurrently releasing the second beta for MapServer 7.0.0 that
contains this security fix along with a number of issues that were
discovered since the release of beta1. As always, we rely on you the
community to test these beta versions and provide us with feedback as
to the issues you may encounter.

You can find the download links and changelogs at the usual location:

http://mapserver.org/download.html

best regards,
The MapServer Team
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

sowmiya san | 7 Jul 10:22 2015
Picon

send the WMS-mapserver download link for windows8


_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
sowmiya san | 7 Jul 09:45 2015
Picon

Re: mapserver-users Digest, Vol 90, Issue 5

send the mapserver installation video

On Tue, Jul 7, 2015 at 1:10 PM, <mapserver-users-request <at> lists.osgeo.org> wrote:
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. mapserver (devi ka)
   2. Re: mapserver-users Digest, Vol 90, Issue 4 (sowmiya san)


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

Message: 1
Date: Tue, 7 Jul 2015 13:07:46 +0530
From: devi ka <devika.sak <at> gmail.com>
To: mapserver-users <at> lists.osgeo.org
Subject: [mapserver-users] mapserver
Message-ID:
        <CAOjbuDjoQF5yqPfBgkDJX2H7819p_T7grPG77qdU-P3kVZh8hA <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

hai sir how we get WMS-mapserver download..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150707/890af31a/attachment-0001.html>

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

Message: 2
Date: Tue, 7 Jul 2015 13:10:38 +0530
From: sowmiya san <sowmiyasan48 <at> gmail.com>
To: mapserver-users <at> lists.osgeo.org
Subject: Re: [mapserver-users] mapserver-users Digest, Vol 90, Issue 4
Message-ID:
        <CABWt86Jv2Loh3+UVTQAVKRg87BMsK3nYQHA0JmQQkPA_eCvgTA <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

how to use the mapserver to link the map

On Tue, Jul 7, 2015 at 12:53 PM, <mapserver-users-request <at> lists.osgeo.org>
wrote:

> 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. Re: WMS request fails when spaces are encoded as plus symbol
>       in query part of URL (Moen, Paul T.)
>    2. (no subject) (sowmiya san)
>    3. Re: (no subject) (J?rg Thomsen)
>    4. mapserver (devi ka)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 6 Jul 2015 19:12:16 +0000
> From: "Moen, Paul T." <pmoen <at> nd.gov>
> To: "Lime, Steve D (MNIT)" <Steve.Lime <at> state.mn.us>,
>         "mapserver-users <at> lists.osgeo.org" <mapserver-users <at> lists.osgeo.org
> >
> Subject: Re: [mapserver-users] WMS request fails when spaces are
>         encoded as plus symbol in query part of URL
> Message-ID: <D1C0397E.2751F%pmoen <at> nd.gov>
> Content-Type: text/plain; charset="windows-1252"
>
> An update.
>
> ESRI has decided not to follow the standard and has closed the bug,
> NIM104744, we submitted about not decoding a plus symbol ?+? to a space.
> Their solution is for everyone else to encode all spaces as %20 and to
> ignore http://tools.ietf.org/html/rfc3986.  They have closed the bug and
> listed it as a known limit.
>
> http://support.esri.com/en/bugs/nimbus/TklNMTA0NzQ0
>
> So, in order for Mapserver to consume ESRI WMS services, with spaces in
> the name, the spaces have to be encoded as %20.
>
> I see Mapserver 7.0 still encodes spaces to a ?+?, so I thought people
> should know if they intend to consume any ESRI WMS layers with spaces in
> the name.
>
> From: Paul Moen <pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>>
> Date: Wednesday, August 20, 2014 at 9:43 AM
> To: "Lime, Steve D (MNIT)" <Steve.Lime <at> state.mn.us<mailto:
> Steve.Lime <at> state.mn.us>>, "mapserver-users <at> lists.osgeo.org<mailto:
> mapserver-users <at> lists.osgeo.org>" <mapserver-users <at> lists.osgeo.org<mailto:
> mapserver-users <at> lists.osgeo.org>>
> Subject: Re: [mapserver-users] WMS request fails when spaces are encoded
> as plus symbol in query part of URL
>
> Steve,
>
> You are right about the outcome of 1 and 2.  1 encodes the % and 2 throws
> the following error.
>
> msBuildWMSLayerURLBase(): One of wms_onlineresource, wms_server_version,
> wms_name metadata is missing in layer USGS DRG 250k Topo Maps.  Please
> either provide a valid CONNECTION URL, or provide those values in the
> layer's metadata.\n\n
>
> I found the function as you said and
> I removed the
>
>  if (*i == ' ')
>       *j = '+';
>     else
> from the function then recompiled.
>
> char *msEncodeUrlExcept(const char *data, const char except)
> {
>   char *hex = "0123456789ABCDEF";
>   const char *i;
>   char  *j, *code;
>   int   inc;
>   unsigned char ch;
>
>   for (inc=0, i=data; *i!='\0'; i++)
>     if (msEncodeChar(*i))
>       inc += 2;
>
>   code = (char*)msSmallMalloc(strlen(data)+inc+1);
>
>   for (j=code, i=data; *i!='\0'; i++, j++) {
>     if ( except != '\0' && *i == except ) {
>       *j = except;
>     } else if (msEncodeChar(*i)) {
>       ch = *i;
>       *j++ = '%';
>       *j++ = hex[ch/16];
>       *j   = hex[ch%16];
>     } else
>       *j = *i;
>   }
>   *j = '\0';
>
>   return code;
> }
>
> Everything works again after a mapserver recompile, install and finally a
> restart of apache.  Thanks so much for the path to the solution.
>
> Paul Moen
> pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>
> 701-328-2434
>
>
> From: <Lime>, "Steve D (MNIT)" <Steve.Lime <at> state.mn.us<mailto:
> Steve.Lime <at> state.mn.us>>
> Date: Wednesday, August 20, 2014 at 12:41 AM
> To: Paul Moen <pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>>, "
> mapserver-users <at> lists.osgeo.org<mailto:mapserver-users <at> lists.osgeo.org>" <
> mapserver-users <at> lists.osgeo.org<mailto:mapserver-users <at> lists.osgeo.org>>
> Subject: RE: [mapserver-users] WMS request fails when spaces are encoded
> as plus symbol in query part of URL
>
> Hmmm... Nice backwards compatibility ESRI. The +'s seem to still be quite
> legal (http://tools.ietf.org/html/rfc3986 and other references) in the
> query string (but not the path). I don't have access to test and I'm
> guessing these ideas won't work but they might be worth a quick try:
>
>   1) Try encoding the wms_name in the metadata: "wms_name"
> "Topomap%20DRG%20250k"
>   2) Don't set the wms_name in the metadata but add it to the connection:
> CONNECTION "
> http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?LAYERS=Topomap%20DRG%20250k&
> "
>
> I'm betting MapServer will encode the %'s in 1 and throw an error in 2.
> Otherwise you could hack the MapServer source. Function is called
> msEncodeUrlExcept() in mapstring.c you can see the section to change
> starting at line 1138 in git master (
> https://github.com/mapserver/mapserver/blob/master/mapstring.c)<
> https://github.com/mapserver/mapserver/blob/master/mapstring.c).>
>
> Maybe it's worth making this change as part of 7.0?
>
> Steve
>
>
> ________________________________
> From:mapserver-users-bounces <at> lists.osgeo.org<mailto:
> mapserver-users-bounces <at> lists.osgeo.org> [
> mapserver-users-bounces <at> lists.osgeo.org<mailto:
> mapserver-users-bounces <at> lists.osgeo.org>] on behalf of Moen, Paul T. [
> pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>]
> Sent: Tuesday, August 19, 2014 4:56 PM
> To: mapserver-users <at> lists.osgeo.org<mailto:mapserver-users <at> lists.osgeo.org
> >
> Subject: [mapserver-users] WMS request fails when spaces are encoded as
> plus symbol in query part of URL
>
> Hi all,
>
> We are consuming WMS services hosted by ESRI ArcGIS Server 10.0.  The
> server was upgraded to ArcGIS Server 10.2.2 and we no longer can access
> layer names with spaces.
>
> This is the server?s capabilities.
>
> http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?request=GetCapabilities&service=WMS
>
> This is the layer I am using.
>
> LAYER
> # DEBUG 5
> CONNECTIONTYPE WMS
> CONNECTION "
> http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?"
> METADATA
> "wms_name" "Topomap DRG 250k"
> "wms_format" "image/png"
> "wms_server_version" "1.1.1"
> "wms_srs" "EPSG:2266"
> END
> TYPE RASTER
> STATUS OFF
> NAME "USGS DRG 250k Topo Maps"
> END
>
> Mapserver encodes this request as follows.  Notice that the layer name,
> which is ?Topomap DRG 250k?, is encoded with the spaces becoming the ?+?
> character.
>
>
> http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?LAYERS=Topomap+DRG+250k&REQUEST=map&WMTVER=1.0.0&SERVICE=WMS&FORMAT=image/png&STYLES=&HEIGHT=1146&SRS=EPSG:2266&WIDTH=1271&BBOX=1906240.15992838,596656.333359479,2119730.85012732,789150.692893686&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE
>
> This returns the error in an image that says ?Parameter ?layers? contains
> unacceptable layer names.?
>
> When I replace the + in the layer name with %20, LAYERS=Topomap+DRG+250k
> become LAYERS=Topomap%20DRG%20250k and the request becomes the following.
>
>
> http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?LAYERS=Topomap%20DRG%20250k&REQUEST=map&WMTVER=1.0.0&SERVICE=WMS&FORMAT=image/png&STYLES=&HEIGHT=1146&SRS=EPSG:2266&WIDTH=1271&BBOX=1906240.15992838,596656.333359479,2119730.85012732,789150.692893686&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE
>
> That request works.  Obviously, ESRI is no longer decoding + as a space
> and therefore does not recognize the layer name with spaces.
>
> Is there any way I can have mapserver encode all characters using
> percent-encoding, or at least encode spaces as %20 instead of a + character.
>
> Thanks,
>
> Paul Moen
> pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>
> 701-328-2434
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150706/dcfca6fb/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 7 Jul 2015 12:40:29 +0530
> From: sowmiya san <sowmiyasan48 <at> gmail.com>
> To: mapserver-users <at> lists.osgeo.org
> Subject: [mapserver-users] (no subject)
> Message-ID:
>         <
> CABWt86KAH0DmqKi3NVVEm31r4ssd2QVgEa1jCh_z+KyLTiPaEQ <at> mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> please send mapserver download link
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150707/16524fb5/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Tue, 07 Jul 2015 09:18:57 +0200
> From: J?rg Thomsen <jt <at> mapmedia.de>
> To: mapserver-users <at> lists.osgeo.org
> Subject: Re: [mapserver-users] (no subject)
> Message-ID: <559B7D61.6020404 <at> mapmedia.de>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> http://lmgtfy.com/?q=mapserver+download
>
> Am 07.07.2015 09:10, schrieb sowmiya san:
> > please send mapserver download link
> >
> >
> > _______________________________________________
> > 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/20150707/ac4a1063/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 4
> Date: Tue, 7 Jul 2015 12:53:30 +0530
> From: devi ka <devika.sak <at> gmail.com>
> To: mapserver-users <at> lists.osgeo.org
> Subject: [mapserver-users] mapserver
> Message-ID:
>         <CAOjbuDis3=
> SJO5F2j8BwJuxcUTThzhPd6SL2Y3B-yL+e0c3T6g <at> mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> hai sir please send mapserver download link address..........
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150707/dfc05fef/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users <at> lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> End of mapserver-users Digest, Vol 90, Issue 4
> **********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150707/680acbef/attachment.html>

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

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

End of mapserver-users Digest, Vol 90, Issue 5
**********************************************

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
devi ka | 7 Jul 09:43 2015
Picon

mapserver

hai sir please tell how to download WMS-mapserver.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
sowmiya san | 7 Jul 09:40 2015
Picon

Re: mapserver-users Digest, Vol 90, Issue 4

how to use the mapserver to link the map

On Tue, Jul 7, 2015 at 12:53 PM, <mapserver-users-request <at> lists.osgeo.org> wrote:
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. Re: WMS request fails when spaces are encoded as plus symbol
      in query part of URL (Moen, Paul T.)
   2. (no subject) (sowmiya san)
   3. Re: (no subject) (J?rg Thomsen)
   4. mapserver (devi ka)


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

Message: 1
Date: Mon, 6 Jul 2015 19:12:16 +0000
From: "Moen, Paul T." <pmoen <at> nd.gov>
To: "Lime, Steve D (MNIT)" <Steve.Lime <at> state.mn.us>,
        "mapserver-users <at> lists.osgeo.org" <mapserver-users <at> lists.osgeo.org>
Subject: Re: [mapserver-users] WMS request fails when spaces are
        encoded as plus symbol in query part of URL
Message-ID: <D1C0397E.2751F%pmoen <at> nd.gov>
Content-Type: text/plain; charset="windows-1252"

An update.

ESRI has decided not to follow the standard and has closed the bug, NIM104744, we submitted about not decoding a plus symbol ?+? to a space.  Their solution is for everyone else to encode all spaces as %20 and to ignore http://tools.ietf.org/html/rfc3986.  They have closed the bug and listed it as a known limit.

http://support.esri.com/en/bugs/nimbus/TklNMTA0NzQ0

So, in order for Mapserver to consume ESRI WMS services, with spaces in the name, the spaces have to be encoded as %20.

I see Mapserver 7.0 still encodes spaces to a ?+?, so I thought people should know if they intend to consume any ESRI WMS layers with spaces in the name.

From: Paul Moen <pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>>
Date: Wednesday, August 20, 2014 at 9:43 AM
To: "Lime, Steve D (MNIT)" <Steve.Lime <at> state.mn.us<mailto:Steve.Lime <at> state.mn.us>>, "mapserver-users <at> lists.osgeo.org<mailto:mapserver-users <at> lists.osgeo.org>" <mapserver-users <at> lists.osgeo.org<mailto:mapserver-users <at> lists.osgeo.org>>
Subject: Re: [mapserver-users] WMS request fails when spaces are encoded as plus symbol in query part of URL

Steve,

You are right about the outcome of 1 and 2.  1 encodes the % and 2 throws the following error.

msBuildWMSLayerURLBase(): One of wms_onlineresource, wms_server_version, wms_name metadata is missing in layer USGS DRG 250k Topo Maps.  Please either provide a valid CONNECTION URL, or provide those values in the layer's metadata.\n\n

I found the function as you said and
I removed the

 if (*i == ' ')
      *j = '+';
    else
from the function then recompiled.

char *msEncodeUrlExcept(const char *data, const char except)
{
  char *hex = "0123456789ABCDEF";
  const char *i;
  char  *j, *code;
  int   inc;
  unsigned char ch;

  for (inc=0, i=data; *i!='\0'; i++)
    if (msEncodeChar(*i))
      inc += 2;

  code = (char*)msSmallMalloc(strlen(data)+inc+1);

  for (j=code, i=data; *i!='\0'; i++, j++) {
    if ( except != '\0' && *i == except ) {
      *j = except;
    } else if (msEncodeChar(*i)) {
      ch = *i;
      *j++ = '%';
      *j++ = hex[ch/16];
      *j   = hex[ch%16];
    } else
      *j = *i;
  }
  *j = '\0';

  return code;
}

Everything works again after a mapserver recompile, install and finally a restart of apache.  Thanks so much for the path to the solution.

Paul Moen
pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>
701-328-2434


From: <Lime>, "Steve D (MNIT)" <Steve.Lime <at> state.mn.us<mailto:Steve.Lime <at> state.mn.us>>
Date: Wednesday, August 20, 2014 at 12:41 AM
To: Paul Moen <pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>>, "mapserver-users <at> lists.osgeo.org<mailto:mapserver-users <at> lists.osgeo.org>" <mapserver-users <at> lists.osgeo.org<mailto:mapserver-users <at> lists.osgeo.org>>
Subject: RE: [mapserver-users] WMS request fails when spaces are encoded as plus symbol in query part of URL

Hmmm... Nice backwards compatibility ESRI. The +'s seem to still be quite legal (http://tools.ietf.org/html/rfc3986 and other references) in the query string (but not the path). I don't have access to test and I'm guessing these ideas won't work but they might be worth a quick try:

  1) Try encoding the wms_name in the metadata: "wms_name" "Topomap%20DRG%20250k"
  2) Don't set the wms_name in the metadata but add it to the connection: CONNECTION "http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?LAYERS=Topomap%20DRG%20250k&"

I'm betting MapServer will encode the %'s in 1 and throw an error in 2. Otherwise you could hack the MapServer source. Function is called msEncodeUrlExcept() in mapstring.c you can see the section to change starting at line 1138 in git master (https://github.com/mapserver/mapserver/blob/master/mapstring.c)<https://github.com/mapserver/mapserver/blob/master/mapstring.c).>

Maybe it's worth making this change as part of 7.0?

Steve


________________________________
From:mapserver-users-bounces <at> lists.osgeo.org<mailto:mapserver-users-bounces <at> lists.osgeo.org> [mapserver-users-bounces <at> lists.osgeo.org<mailto:mapserver-users-bounces <at> lists.osgeo.org>] on behalf of Moen, Paul T. [pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>]
Sent: Tuesday, August 19, 2014 4:56 PM
To: mapserver-users <at> lists.osgeo.org<mailto:mapserver-users <at> lists.osgeo.org>
Subject: [mapserver-users] WMS request fails when spaces are encoded as plus symbol in query part of URL

Hi all,

We are consuming WMS services hosted by ESRI ArcGIS Server 10.0.  The server was upgraded to ArcGIS Server 10.2.2 and we no longer can access layer names with spaces.

This is the server?s capabilities.
http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?request=GetCapabilities&service=WMS

This is the layer I am using.

LAYER
# DEBUG 5
CONNECTIONTYPE WMS
CONNECTION "http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?"
METADATA
"wms_name" "Topomap DRG 250k"
"wms_format" "image/png"
"wms_server_version" "1.1.1"
"wms_srs" "EPSG:2266"
END
TYPE RASTER
STATUS OFF
NAME "USGS DRG 250k Topo Maps"
END

Mapserver encodes this request as follows.  Notice that the layer name, which is ?Topomap DRG 250k?, is encoded with the spaces becoming the ?+? character.

http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?LAYERS=Topomap+DRG+250k&REQUEST=map&WMTVER=1.0.0&SERVICE=WMS&FORMAT=image/png&STYLES=&HEIGHT=1146&SRS=EPSG:2266&WIDTH=1271&BBOX=1906240.15992838,596656.333359479,2119730.85012732,789150.692893686&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE

This returns the error in an image that says ?Parameter ?layers? contains unacceptable layer names.?

When I replace the + in the layer name with %20, LAYERS=Topomap+DRG+250k become LAYERS=Topomap%20DRG%20250k and the request becomes the following.

http://ndgishub.nd.gov/arcgis/services/All_Elevation/MapServer/WMSServer?LAYERS=Topomap%20DRG%20250k&REQUEST=map&WMTVER=1.0.0&SERVICE=WMS&FORMAT=image/png&STYLES=&HEIGHT=1146&SRS=EPSG:2266&WIDTH=1271&BBOX=1906240.15992838,596656.333359479,2119730.85012732,789150.692893686&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE

That request works.  Obviously, ESRI is no longer decoding + as a space and therefore does not recognize the layer name with spaces.

Is there any way I can have mapserver encode all characters using percent-encoding, or at least encode spaces as %20 instead of a + character.

Thanks,

Paul Moen
pmoen <at> nd.gov<mailto:pmoen <at> nd.gov>
701-328-2434

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150706/dcfca6fb/attachment-0001.html>

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

Message: 2
Date: Tue, 7 Jul 2015 12:40:29 +0530
From: sowmiya san <sowmiyasan48 <at> gmail.com>
To: mapserver-users <at> lists.osgeo.org
Subject: [mapserver-users] (no subject)
Message-ID:
        <CABWt86KAH0DmqKi3NVVEm31r4ssd2QVgEa1jCh_z+KyLTiPaEQ <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

please send mapserver download link
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150707/16524fb5/attachment-0001.html>

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

Message: 3
Date: Tue, 07 Jul 2015 09:18:57 +0200
From: J?rg Thomsen <jt <at> mapmedia.de>
To: mapserver-users <at> lists.osgeo.org
Subject: Re: [mapserver-users] (no subject)
Message-ID: <559B7D61.6020404 <at> mapmedia.de>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

http://lmgtfy.com/?q=mapserver+download

Am 07.07.2015 09:10, schrieb sowmiya san:
> please send mapserver download link
>
>
> _______________________________________________
> 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/20150707/ac4a1063/attachment-0001.html>

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

Message: 4
Date: Tue, 7 Jul 2015 12:53:30 +0530
From: devi ka <devika.sak <at> gmail.com>
To: mapserver-users <at> lists.osgeo.org
Subject: [mapserver-users] mapserver
Message-ID:
        <CAOjbuDis3=SJO5F2j8BwJuxcUTThzhPd6SL2Y3B-yL+e0c3T6g <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

hai sir please send mapserver download link address..........
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150707/dfc05fef/attachment.html>

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

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

End of mapserver-users Digest, Vol 90, Issue 4
**********************************************

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
devi ka | 7 Jul 09:37 2015
Picon

mapserver

hai sir how we get WMS-mapserver download..
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
devi ka | 7 Jul 09:23 2015
Picon

mapserver

hai sir please send mapserver download link address..........
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
sowmiya san | 7 Jul 09:10 2015
Picon

(no subject)

please send mapserver download link
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Brent Wood | 28 Jun 01:46 2015

Live DVD advice

Hi,

I'm looking to build a LiveDVD/USB key with QGIS, OSM base layer and web services for New Zealand.

Our road & topo data is very up to date in OSM, and we have numerous government (central, regional & local) agencies and others providing data via OGC services, so I'm hoping the system will have embedded OSM, and pre-loaded OGC servers to connect to, as well as some QGIS plugins specific to New Zealand.

The disk/key is intended for schools & demonstrations showing FOSS, FOSS GIS, Open Data and Open Standards, focused on NZ data.

Some years ago I built a laptop system demo'ed at several local schools which worked OK, with mapserver serving OSM via WMS direct from Postgis. NZ is small enough that the data could be rendered dynamically from the vector data in a reasonably interactive system.

I can't reasonably use Postgis on a read only filesystem, and all the later guides assume that tiles will be used. Does anyone have any advice as to how I might best do this?

Thanks,

Brent Wood
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Jachym Cepicky | 27 Jun 12:57 2015
Picon

using sld on the server

Hi all,

is there possibility to style layer using SLD file configured in MapScript? Idea would be, instead of using CLASS for configuration, you would just pass the SLD and things would magically happen (just like it works in GeoServer).

Generating MapFiles from QGIS would than be next logical step ..

I assume, I've missed something and there must be solution for this lying around for couple of years, but did not find anything 

thanks for any hint

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

Gmane