How to add WMS in flexviewer basemaps

342
5
09-28-2011 01:20 AM
JorgeLopez
New Contributor
Hi everyone,

Im trying to add this WMS from the link below, into my flexviewer application v2.2.
http://www.idecan.grafcan.es/idecan/portal/catalogo-de-servicios.html#titulo2
This WMS are projected in WGS 1984 (4326).

I have the flexviewer configured to read WMS web mercator, but the WMS that i want to add are WGS 1984 (4326), so the viewer doesn read it.

Does anyone have a solution for this problem?

ill appreciate some help

Thanks
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Jorge,

   The provided URL is broke...
0 Kudos
JorgeLopez
New Contributor
Jorge,

   The provided URL is broke...


Sorry Robert, thank for your quick answer,
I have explained in a confused way , the thing is that , Im trying to add the WMS, that are found once you click on the link.
Some of them are

http://idecan5.grafcan.es/ServicioWFS/RedGeodesica?
http://idecan5.grafcan.es/ServicioWPS/mdt?
http://idecan1.grafcan.es/ServicioWMS/DistOrtoUrb_2008?

Do you know a way to work with them?

thanks again
0 Kudos
BjornSvensson
Esri Regular Contributor
The Flex Viewer will not convert the WMS service for you, but it will attempt to ask the WMS server to return the data in the appropriate projection.  If the WMS server does not support Web Mercator, then you will not be able to use Web Mercator base maps.

In this case only three projections seem to be supported, so you need to make sure your basemap is in of them:
    <SRS>EPSG:32628</SRS>
    <SRS>EPSG:4326</SRS>
    <SRS>EPSG:32627</SRS>
If you don't have your own basemaps, you can use the "old" geographic basemaps, see e.g. http://dl.dropbox.com/u/2142726/config_wms_es.xml for a full config example, or just the <layer> snippet below:
<layer label="Red Geodesica de Canarias"
       type="wms"
       url="http://idecan2.grafcan.es/ServicioWMS/RedGeodesica"
       visible="true"
       visiblelayers="RG_4OR,RG_ROI"
/>


For each service you need to manually look in the metadata to find the names of the layers, e.g. http://idecan2.grafcan.es/ServicioWMS/RedGeodesica?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1%2E1...
0 Kudos
JorgeLopez
New Contributor
Thanks Bjorn , It works!

But now to have it working properly, i want to add the legend that comes as .jpg inside the WMS.

I was trying to work with the
Get Legend Graphic or the Legend URL, sentence ...but i dont know how to configure it.

you can see it in the link below

http://idecan2.grafcan.es/ServicioWMS/RedGeodesica?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1


Thank you a lot.
0 Kudos
JorgeLopez
New Contributor
Thanks Bjorn , It works!

But now to have it working properly, i want to add the legend that comes as .jpg inside the WMS.

I was trying to work with the
Get Legend Graphic or the Legend URL, sentence ...but i dont know how to configure it.

you can see it in the link below

http://idecan2.grafcan.es/ServicioWM...&VERSION=1.1.1


Thank you a lot.
0 Kudos