I had the same problem; a simple way is to force OL to send the request with "EPSG:102113" instead of "EPSG:900913", so you can either modify the "getFullRequestString" function in OpenLayers.Layer.WMS class or override it. I used this override with Ext JS and added a boolean option in the layer definition (ags = true) to distinguish between arcgis server wms and 'regular' wms<br>
<br>Ext.override(OpenLayers.Layer.WMS, {<br> getFullRequestString:function(newParams, altUrl) {<br> var projectionCode = this.map.getProjection();<br> if((projectionCode == 'EPSG:900913') && (this.ags)) {<br>
this.params.SRS = 'EPSG:102113';<br> } else {<br> this.params.SRS = (projectionCode == "none") ? null : projectionCode;<br> }<br><br> return OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(<br>
this, arguments);<br> }<br>});<br><br>Just a suggestion, but it works for me.<br><br><br><div class="gmail_quote">2010/2/10 Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz">p.scadden@gns.cri.nz</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Trying to combine layer from Arcgis WMS service with google and I get<br>
the above. In arc, the resource is in ESPG:102113 which is apparently<br>
the same as 900913. Arcgis 9.4 will support the official ESPG:3785 but<br>
no way to force a 900913. So can I fudge this somehow on the openlayers<br>
end? I want to use Arcgis server rather geoserver etc (also available)<br>
because I have a lot of features crossing 180 degree line and others are<br>
too stupid to handle this.<br>
<br>
--<br>
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St,<br>
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232<br>
<br>
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</blockquote></div><br>