// If this datum requires grid shifts, then apply it to geodetic coordinates.
if(fallback==proj4.common.PJD_GRIDSHIFT)
if(fallback===proj4.common.PJD_GRIDSHIFT)
{
if (this.apply_gridshift(source,0,point)==0){
if (this.apply_gridshift(source,0,point)===0){
source.a=proj4.common.SRS_WGS84_SEMIMAJOR;
source.es=proj4.common.SRS_WGS84_ESQUARED;
}else{
@@ -179,7 +178,7 @@ var proj4 = {
for (vari=0,l=source.datum_params.length;i<l;i++){
wp*=source.datum_params[i];
}
if (wp==0.0){
if (wp===0.0){
source.a=src_a;
source.es=source.es;
returnpoint;
@@ -191,18 +190,12 @@ var proj4 = {
}
}
if(dest.datum_type==proj4.common.PJD_GRIDSHIFT)
{
if(dest.datum_type===proj4.common.PJD_GRIDSHIFT){
dest.a=proj4.common.SRS_WGS84_SEMIMAJOR;
dest.es=proj4.common.SRS_WGS84_ESQUARED;
}
// Do we need to go through geocentric coordinates?
if (source.es!=dest.es||source.a!=dest.a
||fallback==proj4.common.PJD_3PARAM
||fallback==proj4.common.PJD_7PARAM
||dest.datum_type==proj4.common.PJD_3PARAM
||dest.datum_type==proj4.common.PJD_7PARAM)
{
if (source.es!==dest.es||source.a!==dest.a||fallback===proj4.common.PJD_3PARAM||fallback===proj4.common.PJD_7PARAM||dest.datum_type===proj4.common.PJD_3PARAM||dest.datum_type===proj4.common.PJD_7PARAM){