[mapserver-users] Using space in layer's name?

kreshna_iceheart at yahoo.com kreshna_iceheart at yahoo.com
Wed Aug 20 03:00:18 EDT 2008


Er, nope. I'm not using WMS.


--- On Wed, 8/20/08, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote:

> From: Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>
> Subject: Re: [mapserver-users] Using space in layer's name?
> To: kreshna_iceheart at yahoo.com, mapserver-users at lists.osgeo.org
> Date: Wednesday, August 20, 2008, 2:46 AM
> Hi,
> 
> Are you using WMS?In the document "WMS servers with
> MapServer"
> http://mapserver.gis.umn.edu/docs/howto/wms_server
> reads:
> #
> Layer Name and wms_title metadata:
> Every individual layer needs its own unique name and title.
> Layer names are also used in GetMap and GetFeatureInfo
> requests to refer to layers that should be included in the
> map output and in the query. Layer names must start with a
> letter when setting up a WMS server (layer names should not
> start with a digit or have spaces in them). 
> 
> I believe that spaces in layer names are not allowed by WMS
> standard, but I may be wrong.  I do also believe that
> MapServer cgi supports them, at least I can find example map
> files with layers named like "my layer".  
> 
> -Jukka Rahkonen-
> 
> > -----Alkuperäinen viesti-----
> > Lähettäjä: mapserver-users-bounces at lists.osgeo.org 
> > [mailto:mapserver-users-bounces at lists.osgeo.org]
> Puolesta 
> > kreshna_iceheart at yahoo.com
> > Lähetetty: 20. elokuuta 2008 8:40
> > Vastaanottaja: mapserver-users at lists.osgeo.org
> > Aihe: [mapserver-users] Using space in layer's
> name?
> > 
> > I'm using MapServer 5.0.2.
> > 
> > I have two layers: the first is named "jaringan
> ipal dan 
> > iplt" (layer name contains space character),
> while the second 
> > is named "jaringan_telepon" (does not
> contain space).
> > 
> > I am using the [layers] parameter to dynamically pass
> my 
> > layers to another template for printing purpose. Alas,
> 
> > because one layer contains space, that particular
> layer is 
> > not passed at all. Here is the contents of the
> [layers] parameter:
> > 
> >
> &layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon
> > 
> > The layer "jaringan_telepon" is displayed
> correctly, but the 
> > layer "jaringan ipal dan iplt" fails to
> display, because 
> > MapServer takes the space character (%20) as
> delimiter.
> > 
> > I tried to use the parameter [layers_esc] instead, and
> here 
> > is the contents of the [layers_esc]:
> > 
> > &layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon
> > 
> > Here, the layer "jaringan ipal dan iplt"
> still fails to 
> > display, because MapServer replaces the space with
> "+" (plus 
> > sign), which is also used as delimiter.
> > 
> > Thus, not even [layers_esc] allows us to use space
> character 
> > in layer's name. Is there any other way to use
> layer with 
> > space character in its name, then?
> > 
> > Thanks,
> > -Kresh
> > 
> > 
> > 
> > 
> > 
> >       
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> >
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >


      


More information about the mapserver-users mailing list