Change Coordinate System WMS layer ArcObjects

Discussion created by cpouwels on Oct 17, 2012

I am trying to load an WMS from Geoserver into ArcMap using ArcObjects .net and loading it work just fine. However when maken the layer visible I get the error :
GeoServer Web Map Service:   WMS service exceptions:-Service Error Code:InvalidCRS
Service Error Description: Error occurred decoding the espg code urn:x-ogc:def:crs:EPSG:23031

Now I can't change the server so I have to fix this client side. In ArcMap I can right click the WMS layer and select "Change Coordinate System" to fix it but I want to to this through ArcObjects.

I tried to add Property "SRS" : "EPSG:4326" but with no results. I was wondering what the right approach would be for doing this.

Thnx in advanced,