Select to view content in your preferred language

WMS layer - visiblelayers with space character in name

973
3
Jump to solution
03-19-2013 05:29 AM
AlexandreLavoie
Occasional Contributor
Hi!

I'm trying to use a wms layer as basemap in my Flexviewer 3.1 project.

Everything works great when my layer name has no space character.

As soon there's a space in only one name, wms service doesn't work anymore.

<layer type="wms" label="SCO wms" imageformat="jpg"
      skipgetcapabilities="true"
      visiblelayers="Maurice,CMQ,CMM,Centre du Quebec"
      version="1.1.1"
      url="http://xx.xx.xxx.xxxx/lizardtech/iserv/ows?" visible="true"/>

I've tried to replace space character with %20, _, %. no result...
I've tried to use the ids visiblelayers="1" no result...

Alex
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Alex,

   Use ArcCatalog to see exactly what you have to use for the visiblelayers Ids. Using the url you provided:
http://webservices.nationalatlas.gov/wms/transportation? I added it as a WMS Server and then double clicked on the lay I wanted to get the name for and this is what I see:
[ATTACH=CONFIG]22748[/ATTACH]


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

View solution in original post

0 Kudos
3 Replies
AlexandreLavoie
Occasional Contributor
I've try other things...

<layer url="http://webservices.nationalatlas.gov/wms/transportation?" label="nationalatlas"
visible="true" type="wms"
visiblelayers="Transportation - Airports"
version="1.3.0"
skipgetcapabilities="true"/>

This is the layer's name i've got in ArcCatalog.

And this doesn't work!

It works with
<layer url="http://webservices.nationalatlas.gov/wms/transportation?" label="nationalatlas"
visible="true" type="wms"
visiblelayers="airports"
version="1.3.0"
skipgetcapabilities="true"/>

Looks like an alias name

Alex Lavoie
Quebec city
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alex,

   Use ArcCatalog to see exactly what you have to use for the visiblelayers Ids. Using the url you provided:
http://webservices.nationalatlas.gov/wms/transportation? I added it as a WMS Server and then double clicked on the lay I wanted to get the name for and this is what I see:
[ATTACH=CONFIG]22748[/ATTACH]


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos
AlexandreLavoie
Occasional Contributor
Thank you!

Works fine now.

Alex Lavoie
0 Kudos