Select to view content in your preferred language

Help with WMS

3014
8
Jump to solution
02-13-2012 01:20 AM
DavidCaussin
Deactivated User
Hi all,

I try to add WMS in my project,  with no luck.

Here is the URL that i received : http://www.brugis.irisnet.be/brugiswms/request.aspx

When i add this server in ArcCatalog (see the picture), there are no problem to use the WMS in ArcMap but in flex i can't get it work.

I have read some Topics to see the correct tag.

i'm trying

<layer
                label="PRAS" skipgetcapabilities="true"
                type="wms" visible="false" alpha="1" wkid="4326" version="1.1.1"
                visiblelayer="PPR_INONDATION_LOIRE_ALEA" url="http://www.brugis.irisnet.be/brugiswms/request.aspx" />

Is there someone that could try to use this WMS and say me how to write correctly the tag?

Thanks in adavance.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DasaPaddock
Esri Regular Contributor
Try this:

    <map wkid="31370" units="esriMeters" initialextent="141737.497 162020.529 157878.449 177860.059" top="40">         <basemaps>             <layer label="PRAS"                    type="wms"                    skipgetcapabilities="true"                    visible="true"                    version="1.3.0"                    visiblelayers="urbis:URB_A_ADPT,urbis:URB_A_BU,urbis:URB_A_MD,urbis:URB_A_MU,urbis:URB_A_RE,urbis:URB_A_SD,urbis:URB_M_RTLINE,urbis:URB_M_SHAPE,urbis:URB_M_ZIPOINT,urbis:URB_T_LINE"                    url="http://geoserver.gis.irisnetlab.be/geoserver/urbis/ows"/>         </basemaps>         <operationallayers>         </operationallayers>     </map>


The initialextent and visiblelayers come from:
http://geoserver.gis.irisnetlab.be/geoserver/urbis/ows?SERVICE=WMS&SERVICE=WMS&REQUEST=GetCapabiliti...

View solution in original post

0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
David,

    You are going to have a real issue using this WMS in a Flex Viewer app along with esri basemaps as this WMS only supports Belge 1972 / Belgian Lambert 72, EPSG:31370.

You are trying to set the wkid to 4326 and that is not supported by the WMS Service and neither is EPSG:102100 or 3857. The only way you can add this WMS is to set the map to WKID 31370 and then you will no longer be able to use esri basemaps as tiled you will have to switch them to dynamic.

Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos
DavidCaussin
Deactivated User
Thanks Robert, but in fact the tag was a copy-paste and i forgot to change the WKID.

In my application, I have tried with 31370 with no luck.

I only use maps with the WKID 31370 thus normally it should work 😞 no?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
David,

   So if you are not using any esri basemaps in your viewer than it is an issue with your visiblelayers. The issue that I am having and it might be your issue as well is when I add this WMS Service to ArcMap and check everything in the TOC I never get anything to display in ArcMap.... Are you saying you can get this to display in ArcMap?
0 Kudos
DavidCaussin
Deactivated User
Hi Robert,

You are right, i dont understand why but it is blank when you add the datas in ArcMap....

Could you try to do the same with WMS on this server (use the datas in Flex viewer)? Here am i sure that the datas appears correct with the WKID 31370

http://geoserver.gis.irisnetlab.be/urbis/wms?

Thanks a lot.
0 Kudos
DasaPaddock
Esri Regular Contributor
Try this:

    <map wkid="31370" units="esriMeters" initialextent="141737.497 162020.529 157878.449 177860.059" top="40">         <basemaps>             <layer label="PRAS"                    type="wms"                    skipgetcapabilities="true"                    visible="true"                    version="1.3.0"                    visiblelayers="urbis:URB_A_ADPT,urbis:URB_A_BU,urbis:URB_A_MD,urbis:URB_A_MU,urbis:URB_A_RE,urbis:URB_A_SD,urbis:URB_M_RTLINE,urbis:URB_M_SHAPE,urbis:URB_M_ZIPOINT,urbis:URB_T_LINE"                    url="http://geoserver.gis.irisnetlab.be/geoserver/urbis/ows"/>         </basemaps>         <operationallayers>         </operationallayers>     </map>


The initialextent and visiblelayers come from:
http://geoserver.gis.irisnetlab.be/geoserver/urbis/ows?SERVICE=WMS&SERVICE=WMS&REQUEST=GetCapabiliti...
0 Kudos
DavidCaussin
Deactivated User
Thanks a lot, that was it.

But when i open the Robert's Toc Widget , "Generating TOC LEGEND" continue to be shown is it normal?

Must i have to add a variable in the tag for the legend?

Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
David,

   No where in my documentation do I state that WMS Legends are supported.


Make sure you mark the post that Dasa made as the answer.
0 Kudos
KumarHarish
Deactivated User
Hi ,



I'm using flex viewer 2.5  and modified the config file according  to code   mentioned above in this blog. Here is my code.
<basemaps>
            <layer label="WMS_Layer"
                   type="wms"                 
                   visible="true"
                   version="1.1.1"                               
                   request= "GetMap"
                   visibleLayer="ENC"
                   format="image/png"
                   url="http://enc.XXXX/wms/wms/wms.ashx?"/>
  </basemaps>


Unfortunately, It's coming White blank page. Here is detail  of information:


Data Type: WMS Service Sub-Layer
WMS Server:  http://enc.XXYY/wms/wms/wms.ashx?
Service Name:  FXXYY ENC WMS
WMS Layer Name:   ENC
Capabilities:  Layer does not support Identify.
Legend Information:  Available(Legends too large to display in ArcGIS)

Geographic Coordinate System: GCS_WGS_1984
Datum:  D_WGS_1984
Prime Meridian:  Greenwich
Angular Unit:  Degree

Supported Coordinate System(s):
EPSG:4326  - GCS_WGS_1984


A snapshot  of this in TOC is also attached.

I  would appreciate if some  body could help me.
0 Kudos