Opened 15 years ago

Closed 15 years ago

#392 closed defect (fixed)

Warning 'towgs84' is null or not an object popup if the CS of the map is CA-I (NAD27 California State Planes, Zone I(401), US Foot)

Reported by: liuar Owned by: madair
Priority: P2 Milestone: 2.0
Component: Core Version: 2.0.0-RC1
Severity: Major Keywords:
Cc: madair@…, jenny.he@… Browser: All
External ID: 1316655 Operating System: All
state: New

Description

  1. Create a map using NAD27 as coordinate system
  2. View the the map
  3. A warning popup - Warning 'towgs84' is null or not an object

Change History (6)

comment:1 by liuar, 15 years ago

In proj4js.js

var datumDef=Proj4js.Datum[this.datumCode]
if(datumDef)
{
    this.datum_params=datumDef.towgs84.split(',');
    ....
}


if the datumCode is NAD27(CA-I), the datumDef will not contain a property named towgs84. So, to fix this problem or the workaround of this defect is add "&& datumDef.towgs84" to the if clause to make sure towgs84 is included in datumDef.

comment:2 by liuar, 15 years ago

Cc: jenny.he@… added

Hi Mike,

Could you review my solution and submit it if there's no problem? Since I can only can the compressed version of proj4js

Regards,
Arthur

comment:3 by madair, 15 years ago

Milestone: Future2.0
Status: newassigned

this was fixed in a later version of proj4js. I will update to the most recent version.

comment:4 by madair, 15 years ago

fixed in trunk and 2.0 branch, should this be applied to the adsk/2.2gp branch?

comment:5 by chrisclaydon, 15 years ago

The 2.2gp branch should not be updated to the latest version of proj4js. I'll modify the existing version of proj4js-compressed.js with this specific fix.

comment:6 by chrisclaydon, 15 years ago

Resolution: fixed
Status: assignedclosed

Applied this fix to proj4js-compressed.js in adsk/2.2gp branch with changeset:

http://trac.osgeo.org/fusion/changeset/2148

Note: See TracTickets for help on using tickets.