proj4js-js.html
50.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><title>Proj4js</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class=UnframedPage onLoad="NDOnLoad()"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
<!-- Generated by Natural Docs, version 1.35 -->
<!-- http://www.naturaldocs.org -->
<!-- saved from url=(0026)http://www.naturaldocs.org -->
<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td class=MenuSection valign=top><!--START_ND_MENU--><div class=MEntry><div class=MFile><a href="proj4js-combined-js.html">Proj4js</a></div></div><div class=MEntry><div class=MFile id=MSelected>Proj4js</div></div><div class=MEntry><div class=MFile><a href="projCode/cea-js.html">This implementation assumes a Spherical Earth. The (commented) code</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Properties.html">Properties</a></div></div></div></div></div><!--END_ND_MENU--></td>
<td class=ContentSection valign=top><div class=CClass id=MainTopic><div class=CTopic><h1 class=CTitle><a name="Proj4js"></a>Proj4js</h1><div class=CBody><p class=CParagraph>Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.</p><p class=CParagraph>This library is a port of both the Proj.4 and GCTCP C libraries to JavaScript. Enabling these transformations in the browser allows geographic data stored in different projections to be combined in browser-based web mapping applications.</p><p class=CParagraph>Proj4js must have access to coordinate system initialization strings (which are the same as for PROJ.4 command line). Thes can be included in your application using a <script> tag or Proj4js can load CS initialization strings from a local directory or a web service such as spatialreference.org.</p><p class=CParagraph>Similarly, Proj4js must have access to projection transform code. These can be included individually using a <script> tag in your page, built into a custom build of Proj4js or loaded dynamically at run-time. Using the -combined and -compressed versions of Proj4js includes all projection class code by default.</p><p class=CParagraph>Note that dynamic loading of defs and code happens ascynchrously, check the Proj.readyToUse flag before using the Proj object. If the defs and code required by your application are loaded through script tags, dynamic loading is not required and the Proj object will be readyToUse on return from the constructor.</p><p class=CParagraph>All coordinates are handled as points which have a .x and a .y property which will be modified in place.</p><p class=CParagraph>Override Proj4js.reportError for output of alerts and warnings.</p><p class=CParagraph>See <a href="http://trac.osgeo.org/proj4js/wiki/UserGuide" class=LURL>http://trac.osgeo.org/proj4js/wiki/UserGuide</a> for full details.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr><td class=SEntrySize><div class=SMain><div class=SEntry><a href="#Proj4js" >Proj4js</a></div></div></td><td class=SDescriptionSize><div class=SMain><div class=SDescription>Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.</div></div></td></tr><tr><td><div class=SGroup><div class=SEntry><div class=SIndent1><a href="#Proj4js.Properties" >Properties</a></div></div></div></td><td><div class=SGroup><div class=SDescription><div class=SIndent1></div></div></div></td></tr><tr class=SMarked><td><div class=SProperty><div class=SEntry><div class=SIndent2><a href="#Proj4js.defaultDatum" >defaultDatum</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent2>The datum to use when no others a specified</div></div></div></td></tr><tr><td><div class=SGroup><div class=SEntry><div class=SIndent1><a href="#Proj4js.Functions" >Functions</a></div></div></div></td><td><div class=SGroup><div class=SDescription><div class=SIndent1></div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.transform(source,dest,point)" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">transform(source, dest, point)</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Transform a point coordinate from one map projection to another. </div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.reportError" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">reportError</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>An internal method to report errors back to user. </div></div></div></td></tr><tr><td><div class=SSection><div class=SEntry><a href="#Private_Methods" >Private Methods</a></div></div></td><td><div class=SSection><div class=SDescription>The following properties and methods are intended for internal use only.</div></div></td></tr><tr><td><div class=SGroup><div class=SEntry><div class=SIndent1><a href="#Functions_and_Properties" >Functions and Properties</a></div></div></div></td><td><div class=SGroup><div class=SDescription><div class=SIndent1></div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#extend" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">extend</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Copy all properties of a source object to a destination object. </div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Class" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">Class</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Base class used to construct all other classes. </div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#bind" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">bind</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Bind a function to an object. </div></div></div></td></tr><tr><td><div class=SProperty><div class=SEntry><div class=SIndent2><a href="#defsLookupService" >defsLookupService</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent2>AJAX service to retreive projection definition parameters from</div></div></div></td></tr><tr class=SMarked><td><div class=SProperty><div class=SEntry><div class=SIndent2><a href="#libPath" >libPath</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent2>internal: http server path to library code.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#getScriptLocation" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">getScriptLocation</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Return the path to this script.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#loadScript" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">loadScript</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Load a JS file from a URL into a <script> tag in the page.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#checkReadyState" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">checkReadyState</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>IE workaround since there is no onerror handler. </div></div></div></td></tr><tr><td><div class=SClass><div class=SEntry><a href="#Proj4js.Proj" >Proj4js.Proj</a></div></div></td><td><div class=SClass><div class=SDescription>Proj objects provide transformation methods for point coordinates between geodetic latitude/longitude and a projected coordinate system. </div></div></td></tr><tr><td><div class=SGroup><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.Properties" >Properties</a></div></div></div></td><td><div class=SGroup><div class=SDescription><div class=SIndent1></div></div></div></td></tr><tr class=SMarked><td><div class=SProperty><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.readyToUse" >readyToUse</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent2>Flag to indicate if initialization is complete for this Proj object</div></div></div></td></tr><tr><td><div class=SProperty><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.title" >title</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent2>The title to describe the projection</div></div></div></td></tr><tr class=SMarked><td><div class=SProperty><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.projName" >projName</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent2>The projection class for this projection, e.g. </div></div></div></td></tr><tr><td><div class=SProperty><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.units" >units</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent2>The units of the projection. </div></div></div></td></tr><tr class=SMarked><td><div class=SProperty><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.datum" >datum</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent2>The datum specified for the projection</div></div></div></td></tr><tr><td><div class=SGroup><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.Functions" >Functions</a></div></div></div></td><td><div class=SGroup><div class=SDescription><div class=SIndent1></div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.initialize" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">initialize</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Constructor for Proj4js.Proj objects</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.loadProjDefinition" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">loadProjDefinition</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Loads the coordinate system initialization string if required. </div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.loadFromService" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">loadFromService</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Creates the REST URL for loading the definition from a web service and loads it.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.defsLoaded" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">defsLoaded</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Continues the Proj object initilization once the def file is loaded</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.checkDefsLoaded" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">checkDefsLoaded</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>This is the loadCheck method to see if the def object exists</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.defsFailed" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">defsFailed</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Report an error in loading the defs file, but continue on using WGS84</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.loadProjCode" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">loadProjCode</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Loads projection class code dynamically if required. </div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.loadProjCodeSuccess" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">loadProjCodeSuccess</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Loads any proj dependencies or continue on to final initialization.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.defsFailed" >defsFailed</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Report an error in loading the proj file. </div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.checkCodeLoaded" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">checkCodeLoaded</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>This is the loadCheck method to see if the projection code is loaded</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.initTransforms" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">initTransforms</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Finalize the initialization of the Proj object</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.parseDefs" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">parseDefs</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Parses the PROJ.4 initialization string and sets the associated properties.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.deriveConstants" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">deriveConstants</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2>Sets several derived constant values and initialization of datum and ellipse parameters.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent2><a href="#Proj4js.Proj.Proj4js.Point" >Proj4js.<span class=HB> </span>Point</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent2></div></div></div></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<div class=CGroup><div class=CTopic><h3 class=CTitle><a name="Proj4js.Properties"></a>Properties</h3></div></div>
<div class=CProperty><div class=CTopic><h3 class=CTitle><a name="Proj4js.defaultDatum"></a>defaultDatum</h3><div class=CBody><p class=CParagraph>The datum to use when no others a specified</p></div></div></div>
<div class=CGroup><div class=CTopic><h3 class=CTitle><a name="Proj4js.Functions"></a>Functions</h3></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.transform(source,dest,point)"></a>transform(source, dest, point)</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>transform: function(</td><td class=PParameter nowrap>source,</td></tr><tr><td></td><td class=PParameter nowrap>dest,</td></tr><tr><td></td><td class=PParameter nowrap>point</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Transform a point coordinate from one map projection to another. This is really the only public method you should need to use.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>source</td><td class=CDLDescription>{Proj4js.Proj} source map projection for the transformation</td></tr><tr><td class=CDLEntry>dest</td><td class=CDLDescription>{Proj4js.Proj} destination map projection for the transformation</td></tr><tr><td class=CDLEntry>point</td><td class=CDLDescription>{Object} point to transform, may be geodetic (long, lat) or projected Cartesian (x,y), but should always have x,y properties.</td></tr></table></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.reportError"></a>reportError</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>reportError: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>An internal method to report errors back to user. Override this in applications to report error messages or throw exceptions.</p></div></div></div>
<div class=CSection><div class=CTopic><h2 class=CTitle><a name="Private_Methods"></a>Private Methods</h2><div class=CBody><p class=CParagraph>The following properties and methods are intended for internal use only.</p><p class=CParagraph>This is a minimal implementation of JavaScript inheritance methods so that Proj4js can be used as a stand-alone library. These are copies of the equivalent OpenLayers methods at v2.7</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr><td class=SEntrySize><div class=SGroup><div class=SEntry><a href="#Functions_and_Properties" >Functions and Properties</a></div></div></td><td class=SDescriptionSize><div class=SGroup><div class=SDescription></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#extend" id=link21 onMouseOver="ShowTip(event, 'tt3', 'link21')" onMouseOut="HideTip('tt3')">extend</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Copy all properties of a source object to a destination object. </div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Class" id=link22 onMouseOver="ShowTip(event, 'tt4', 'link22')" onMouseOut="HideTip('tt4')">Class</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Base class used to construct all other classes. </div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#bind" id=link23 onMouseOver="ShowTip(event, 'tt5', 'link23')" onMouseOut="HideTip('tt5')">bind</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Bind a function to an object. </div></div></div></td></tr><tr><td><div class=SProperty><div class=SEntry><div class=SIndent1><a href="#defsLookupService" >defsLookupService</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent1>AJAX service to retreive projection definition parameters from</div></div></div></td></tr><tr class=SMarked><td><div class=SProperty><div class=SEntry><div class=SIndent1><a href="#libPath" >libPath</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent1>internal: http server path to library code.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#getScriptLocation" id=link24 onMouseOver="ShowTip(event, 'tt6', 'link24')" onMouseOut="HideTip('tt6')">getScriptLocation</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Return the path to this script.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#loadScript" id=link25 onMouseOver="ShowTip(event, 'tt7', 'link25')" onMouseOut="HideTip('tt7')">loadScript</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Load a JS file from a URL into a <script> tag in the page.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#checkReadyState" id=link26 onMouseOver="ShowTip(event, 'tt8', 'link26')" onMouseOut="HideTip('tt8')">checkReadyState</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>IE workaround since there is no onerror handler. </div></div></div></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<div class=CGroup><div class=CTopic><h3 class=CTitle><a name="Functions_and_Properties"></a>Functions and Properties</h3></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="extend"></a>extend</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>extend: function(</td><td class=PParameter nowrap>destination,</td></tr><tr><td></td><td class=PParameter nowrap>source</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Copy all properties of a source object to a destination object. Modifies the passed in destination object. Any properties on the source object that are set to undefined will not be (re)set on the destination object.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>destination</td><td class=CDLDescription>{Object} The object that will be modified</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription>{Object} The object with properties to be set on the destination</td></tr></table><h4 class=CHeading>Returns</h4><p class=CParagraph>{Object} The destination object.</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Class"></a>Class</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>Class: function()</td></tr></table></blockquote><p class=CParagraph>Base class used to construct all other classes. Includes support for multiple inheritance.</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="bind"></a>bind</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>bind: function(</td><td class=PParameter nowrap>func,</td></tr><tr><td></td><td class=PParameter nowrap>object</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Bind a function to an object. Method to easily create closures with ‘this’ altered.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>func</td><td class=CDLDescription>{Function} Input function.</td></tr><tr><td class=CDLEntry>object</td><td class=CDLDescription>{Object} The object to bind to the input function (as this).</td></tr></table><h4 class=CHeading>Returns</h4><p class=CParagraph>{Function} A closure with ‘this’ set to the passed in object.</p></div></div></div>
<div class=CProperty><div class=CTopic><h3 class=CTitle><a name="defsLookupService"></a>defsLookupService</h3><div class=CBody><p class=CParagraph>AJAX service to retreive projection definition parameters from</p></div></div></div>
<div class=CProperty><div class=CTopic><h3 class=CTitle><a name="libPath"></a>libPath</h3><div class=CBody><p class=CParagraph>internal: http server path to library code.</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="getScriptLocation"></a>getScriptLocation</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>getScriptLocation: function ()</td></tr></table></blockquote><p class=CParagraph>Return the path to this script.</p><h4 class=CHeading>Returns</h4><p class=CParagraph>Path to this script</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="loadScript"></a>loadScript</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>loadScript: function(</td><td class=PParameter nowrap>url,</td></tr><tr><td></td><td class=PParameter nowrap>onload,</td></tr><tr><td></td><td class=PParameter nowrap>onfail,</td></tr><tr><td></td><td class=PParameter nowrap>loadCheck</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Load a JS file from a URL into a <script> tag in the page.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>url</td><td class=CDLDescription>{String} The URL containing the script to load</td></tr><tr><td class=CDLEntry>onload</td><td class=CDLDescription>{Function} A method to be executed when the script loads successfully</td></tr><tr><td class=CDLEntry>onfail</td><td class=CDLDescription>{Function} A method to be executed when there is an error loading the script</td></tr><tr><td class=CDLEntry>loadCheck</td><td class=CDLDescription>{Function} A boolean method that checks to see if the script has loaded. Typically this just checks for the existance of an object in the file just loaded.</td></tr></table></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="checkReadyState"></a>checkReadyState</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>checkReadyState: function()</td></tr></table></blockquote><p class=CParagraph>IE workaround since there is no onerror handler. Calls the user defined loadCheck method to determine if the script is loaded.</p></div></div></div>
<div class=CClass><div class=CTopic><h2 class=CTitle><a name="Proj4js.Proj"></a>Proj4js.Proj</h2><div class=CBody><p class=CParagraph>Proj objects provide transformation methods for point coordinates between geodetic latitude/longitude and a projected coordinate system. once they have been initialized with a projection code.</p><p class=CParagraph>Initialization of Proj objects is with a projection code, usually EPSG codes, which is the key that will be used with the Proj4js.defs array.</p><p class=CParagraph>The code passed in will be stripped of colons and converted to uppercase to locate projection definition files.</p><p class=CParagraph>A projection object has properties for units and title strings.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr><td class=SEntrySize><div class=SGroup><div class=SEntry><a href="#Proj4js.Proj.Properties" >Properties</a></div></div></td><td class=SDescriptionSize><div class=SGroup><div class=SDescription></div></div></td></tr><tr class=SMarked><td><div class=SProperty><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.readyToUse" >readyToUse</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent1>Flag to indicate if initialization is complete for this Proj object</div></div></div></td></tr><tr><td><div class=SProperty><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.title" >title</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent1>The title to describe the projection</div></div></div></td></tr><tr class=SMarked><td><div class=SProperty><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.projName" >projName</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent1>The projection class for this projection, e.g. </div></div></div></td></tr><tr><td><div class=SProperty><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.units" >units</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent1>The units of the projection. </div></div></div></td></tr><tr class=SMarked><td><div class=SProperty><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.datum" >datum</a></div></div></div></td><td><div class=SProperty><div class=SDescription><div class=SIndent1>The datum specified for the projection</div></div></div></td></tr><tr><td><div class=SGroup><div class=SEntry><a href="#Proj4js.Proj.Functions" >Functions</a></div></div></td><td><div class=SGroup><div class=SDescription></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.initialize" id=link27 onMouseOver="ShowTip(event, 'tt9', 'link27')" onMouseOut="HideTip('tt9')">initialize</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Constructor for Proj4js.Proj objects</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.loadProjDefinition" id=link28 onMouseOver="ShowTip(event, 'tt10', 'link28')" onMouseOut="HideTip('tt10')">loadProjDefinition</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Loads the coordinate system initialization string if required. </div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.loadFromService" id=link29 onMouseOver="ShowTip(event, 'tt11', 'link29')" onMouseOut="HideTip('tt11')">loadFromService</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Creates the REST URL for loading the definition from a web service and loads it.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.defsLoaded" id=link30 onMouseOver="ShowTip(event, 'tt12', 'link30')" onMouseOut="HideTip('tt12')">defsLoaded</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Continues the Proj object initilization once the def file is loaded</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.checkDefsLoaded" id=link31 onMouseOver="ShowTip(event, 'tt13', 'link31')" onMouseOut="HideTip('tt13')">checkDefsLoaded</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>This is the loadCheck method to see if the def object exists</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.defsFailed" id=link32 onMouseOver="ShowTip(event, 'tt14', 'link32')" onMouseOut="HideTip('tt14')">defsFailed</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Report an error in loading the defs file, but continue on using WGS84</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.loadProjCode" id=link33 onMouseOver="ShowTip(event, 'tt15', 'link33')" onMouseOut="HideTip('tt15')">loadProjCode</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Loads projection class code dynamically if required. </div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.loadProjCodeSuccess" id=link34 onMouseOver="ShowTip(event, 'tt16', 'link34')" onMouseOut="HideTip('tt16')">loadProjCodeSuccess</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Loads any proj dependencies or continue on to final initialization.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.defsFailed" >defsFailed</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Report an error in loading the proj file. </div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.checkCodeLoaded" id=link35 onMouseOver="ShowTip(event, 'tt17', 'link35')" onMouseOut="HideTip('tt17')">checkCodeLoaded</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>This is the loadCheck method to see if the projection code is loaded</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.initTransforms" id=link36 onMouseOver="ShowTip(event, 'tt18', 'link36')" onMouseOut="HideTip('tt18')">initTransforms</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Finalize the initialization of the Proj object</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.parseDefs" id=link37 onMouseOver="ShowTip(event, 'tt19', 'link37')" onMouseOut="HideTip('tt19')">parseDefs</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Parses the PROJ.4 initialization string and sets the associated properties.</div></div></div></td></tr><tr class=SMarked><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.deriveConstants" id=link38 onMouseOver="ShowTip(event, 'tt20', 'link38')" onMouseOut="HideTip('tt20')">deriveConstants</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1>Sets several derived constant values and initialization of datum and ellipse parameters.</div></div></div></td></tr><tr><td><div class=SFunction><div class=SEntry><div class=SIndent1><a href="#Proj4js.Proj.Proj4js.Point" >Proj4js.<span class=HB> </span>Point</a></div></div></div></td><td><div class=SFunction><div class=SDescription><div class=SIndent1></div></div></div></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<div class=CGroup><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.Properties"></a>Properties</h3></div></div>
<div class=CProperty><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.readyToUse"></a>readyToUse</h3><div class=CBody><p class=CParagraph>Flag to indicate if initialization is complete for this Proj object</p></div></div></div>
<div class=CProperty><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.title"></a>title</h3><div class=CBody><p class=CParagraph>The title to describe the projection</p></div></div></div>
<div class=CProperty><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.projName"></a>projName</h3><div class=CBody><p class=CParagraph>The projection class for this projection, e.g. lcc (lambert conformal conic, or merc for mercator). These are exactly equivalent to their Proj4 counterparts.</p></div></div></div>
<div class=CProperty><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.units"></a>units</h3><div class=CBody><p class=CParagraph>The units of the projection. Values include ‘m’ and ‘degrees’</p></div></div></div>
<div class=CProperty><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.datum"></a>datum</h3><div class=CBody><p class=CParagraph>The datum specified for the projection</p></div></div></div>
<div class=CGroup><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.Functions"></a>Functions</h3></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.initialize"></a>initialize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>initialize: function(</td><td class=PParameter nowrap>srsCode</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Constructor for Proj4js.Proj objects</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>srsCode</td><td class=CDLDescription>a code for map projection definition parameters. These are usually (but not always) EPSG codes.</td></tr></table></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.loadProjDefinition"></a>loadProjDefinition</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>loadProjDefinition: function()</td></tr></table></blockquote><p class=CParagraph>Loads the coordinate system initialization string if required. Note that dynamic loading happens asynchronously so an application must wait for the readyToUse property is set to true. To prevent dynamic loading, include the defs through a script tag in your application.</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.loadFromService"></a>loadFromService</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>loadFromService: function()</td></tr></table></blockquote><p class=CParagraph>Creates the REST URL for loading the definition from a web service and loads it.</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.defsLoaded"></a>defsLoaded</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>defsLoaded: function()</td></tr></table></blockquote><p class=CParagraph>Continues the Proj object initilization once the def file is loaded</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.checkDefsLoaded"></a>checkDefsLoaded</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>checkDefsLoaded: function()</td></tr></table></blockquote><p class=CParagraph>This is the loadCheck method to see if the def object exists</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.defsFailed"></a>defsFailed</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>defsFailed: function()</td></tr></table></blockquote><p class=CParagraph>Report an error in loading the defs file, but continue on using WGS84</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.loadProjCode"></a>loadProjCode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>loadProjCode: function(</td><td class=PParameter nowrap>projName</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Loads projection class code dynamically if required. Projection code may be included either through a script tag or in a built version of proj4js</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.loadProjCodeSuccess"></a>loadProjCodeSuccess</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>loadProjCodeSuccess: function(</td><td class=PParameter nowrap>projName</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Loads any proj dependencies or continue on to final initialization.</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.defsFailed"></a>defsFailed</h3><div class=CBody><p class=CParagraph>Report an error in loading the proj file. Initialization of the Proj object has failed and the readyToUse flag will never be set.</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.checkCodeLoaded"></a>checkCodeLoaded</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>checkCodeLoaded: function(</td><td class=PParameter nowrap>projName</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>This is the loadCheck method to see if the projection code is loaded</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.initTransforms"></a>initTransforms</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>initTransforms: function()</td></tr></table></blockquote><p class=CParagraph>Finalize the initialization of the Proj object</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.parseDefs"></a>parseDefs</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>parseDefs: function()</td></tr></table></blockquote><p class=CParagraph>Parses the PROJ.4 initialization string and sets the associated properties.</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.deriveConstants"></a>deriveConstants</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>deriveConstants: function()</td></tr></table></blockquote><p class=CParagraph>Sets several derived constant values and initialization of datum and ellipse parameters.</p></div></div></div>
<div class=CFunction><div class=CTopic><h3 class=CTitle><a name="Proj4js.Proj.Proj4js.Point"></a>Proj4js.<span class=HB> </span>Point</h3><div class=CBody><h4 class=CHeading>Parameters</h4><ul class=CBulletList><li>x {float} or {Array} either the first coordinates component or the full coordinates</li><li>y {float} the second component</li><li>z {float} the third component, optional.</li></ul></div></div></div>
</td>
</tr></table><div class=Footer><!--START_ND_FOOTER-->Generated by <a href="http://www.naturaldocs.org">Natural Docs</a><!--END_ND_FOOTER--></div>
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>transform: function(</td><td class=PParameter nowrap>source,</td></tr><tr><td></td><td class=PParameter nowrap>dest,</td></tr><tr><td></td><td class=PParameter nowrap>point</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Transform a point coordinate from one map projection to another. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>reportError: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>An internal method to report errors back to user. </div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>extend: function(</td><td class=PParameter nowrap>destination,</td></tr><tr><td></td><td class=PParameter nowrap>source</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Copy all properties of a source object to a destination object. </div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>Class: function()</td></tr></table></blockquote>Base class used to construct all other classes. </div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>bind: function(</td><td class=PParameter nowrap>func,</td></tr><tr><td></td><td class=PParameter nowrap>object</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Bind a function to an object. </div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>getScriptLocation: function ()</td></tr></table></blockquote>Return the path to this script.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>loadScript: function(</td><td class=PParameter nowrap>url,</td></tr><tr><td></td><td class=PParameter nowrap>onload,</td></tr><tr><td></td><td class=PParameter nowrap>onfail,</td></tr><tr><td></td><td class=PParameter nowrap>loadCheck</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Load a JS file from a URL into a script tag in the page.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>checkReadyState: function()</td></tr></table></blockquote>IE workaround since there is no onerror handler. </div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>initialize: function(</td><td class=PParameter nowrap>srsCode</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Constructor for Proj4js.Proj objects</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>loadProjDefinition: function()</td></tr></table></blockquote>Loads the coordinate system initialization string if required. </div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>loadFromService: function()</td></tr></table></blockquote>Creates the REST URL for loading the definition from a web service and loads it.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>defsLoaded: function()</td></tr></table></blockquote>Continues the Proj object initilization once the def file is loaded</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>checkDefsLoaded: function()</td></tr></table></blockquote>This is the loadCheck method to see if the def object exists</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>defsFailed: function()</td></tr></table></blockquote>Report an error in loading the defs file, but continue on using WGS84</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>loadProjCode: function(</td><td class=PParameter nowrap>projName</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Loads projection class code dynamically if required. </div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>loadProjCodeSuccess: function(</td><td class=PParameter nowrap>projName</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Loads any proj dependencies or continue on to final initialization.</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>checkCodeLoaded: function(</td><td class=PParameter nowrap>projName</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>This is the loadCheck method to see if the projection code is loaded</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>initTransforms: function()</td></tr></table></blockquote>Finalize the initialization of the Proj object</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>parseDefs: function()</td></tr></table></blockquote>Parses the PROJ.4 initialization string and sets the associated properties.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>deriveConstants: function()</td></tr></table></blockquote>Sets several derived constant values and initialization of datum and ellipse parameters.</div></div><!--END_ND_TOOLTIPS-->
<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>