[OpenLayers-Users] SphericalMercator and SRS aliases
epsg:900913, epsg:3857, epsg:3785, epsg:102113
Phil Scadden
p.scadden at gns.cri.nz
Mon Jul 19 17:17:32 EDT 2010
.
> What do other people think about providing the EPSG aliases by default in
> the OL library?
>
good idea. AGS uses 102113 and I use an override to manage this
projection issue. eg
Ext.override(OpenLayers.Layer.WMS, {
getFullRequestString:function(newParams, altUrl) {
var projectionCode = this.map.getProjection();
if (this.url == null) isAGS ==0;
else var isAGS = this.url.search(/arcgis/);
if((projectionCode == 'EPSG:900913') && (isAGS >=0)) {
this.params.SRS = 'EPSG:102113';
} else {
this.params.SRS = (projectionCode == "none") ?
null : projectionCode;
}
return
OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(
this,
arguments);
}
});
--
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St,
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232
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.
More information about the Users
mailing list