Select to view content in your preferred language

WMS (OpenGeo.org) won't work

2530
1
11-10-2011 10:59 PM
BilGis
by
Emerging Contributor
Hi.

Working with ArcGIS Server 10.0 I created this BaseMap:

   <layer label="OpenStreetMap" type="wms" visible="true" skipgetcapabilities="true" version="1.1.1"
       url="http://maps.opengeo.org/geoserver/ows?"
       visiblelayers="openstreetmap"   
   />  


It won't work. It works ok in ArcGIS Desktop. I created other WMS connections in the Flex viewer and work correctly.

What am I doing wrong? Thank you very much.
Tags (2)
0 Kudos
1 Reply
BjornSvensson
Esri Regular Contributor
A general tip on debugging is to use httpfox (a Firefox plugin) or similar tools to look at the exact response coming. In this case, it shows
<ServiceException code="InvalidSRS">
Error occurred decoding the espg code EPSG:102100 No code "EPSG:102100" from authority "European Petroleum Survey Group" found for object of type "IdentifiedObject".
</ServiceException>


If you are using the ArcGIS Online basemaps as your first service, its wkid is "102100" but this particular projection has several different id's. e.g. 102100, 900913, and 3857. The last one is the official one, but it didn't exist originally so Esri came up with 102100 and Google came up with 900913...

To find out which wkid/epsg codes are supported by your WMS service, you can ask for it's "capabilities", like http://maps.opengeo.org/geoserver/ows?REQUEST=GetCapabilities&SERVICE=WMS

Notice that 3857 is supported. Add this to your tag as:
<layer label="OpenStreetMap" type="wms" visible="true" skipgetcapabilities="true" version="1.1.1"
           url="http://maps.opengeo.org/geoserver/ows?"
           visiblelayers="openstreetmap"
           wkid="3857"/>

Note that the response times are super slow (up to 3 minutes) when zoomed out, but improves as you zoom in.
0 Kudos