[MetaCRS] proj4js EPSG3857
Dave Potts
dave.potts at pinan.co.uk
Thu Oct 20 13:15:16 EDT 2011
Hi
Thanks for the comments so far but
I was actual refer to this block of code in proj4js.js in the function
transform
There is a reference to 900913 on line 75
transform: function(source, dest, point) {
68
69 if (!source.readyToUse || !dest.readyToUse) {
70 this.reportError("Proj4js initialization for
"+source.srsCode+" not yet complete");
71 return point;
72 }
73
74 // Workaround for Spherical Mercator
75 if (((source.srsProjNumber =="900913" )&& dest.datumCode !=
"WGS84") ||
76 ((dest.srsProjNumber == "900913" )&& source.datumCode !=
"WGS84")) {
77 var wgs84 = Proj4js.WGS84;
78 this.transform(source, wgs84, point);
79 source = wgs84;
80 }
Does this code need updating ?
Dave.
>
> On Oct 20, 2011, at 10:57 AM, ext Michael Adair wrote:
>
>> Proj4js supports both the EPSG:3785 code and the 900913 code -
>> EPSG:900913 is defined as an alias to EPSG:3785. I think the official
>> code you want is 3785, not 3857.
>
> 3785 was retired in favor of 3857 a couple years ago.
>
> -- Chris
>
>> Mike
>>
>> On 20/10/2011 10:39 AM, Dave Potts wrote:
>>> Hi list
>>>
>>> Does the proj4s library support the SRS 3857?
>>>
>>> I was looking at the source code proj4js.js (version 1.02) and
>>> discovered
>>> an hard code references to SRS 900913. I thought that the code 3857
>>> was
>>> the replacment value for 90013.
>>>
>>> Is this correct ?
>>> Are there any places to remove support for 900913 ?
>>> Does proj4js support EPSG:3857 in some other way?
>>>
>>> regards
>>>
>>>
>>>
>>> Dave.
>>>
>>> _______________________________________________
>>> MetaCRS mailing list
>>> MetaCRS at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/metacrs
>> _______________________________________________
>> MetaCRS mailing list
>> MetaCRS at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/metacrs
>
> _______________________________________________
> MetaCRS mailing list
> MetaCRS at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/metacrs
>
More information about the MetaCRS
mailing list