This file is indexed.

/usr/share/doc/geographiclib/html/classGeographicLib_1_1LambertConformalConic.html is in geographiclib-tools 1.8-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GeographicLib: GeographicLib::LambertConformalConic Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespaceGeographicLib.html">GeographicLib</a>      </li>
      <li><a class="el" href="classGeographicLib_1_1LambertConformalConic.html">GeographicLib::LambertConformalConic</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a>  </div>
  <div class="headertitle">
<h1>GeographicLib::LambertConformalConic Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="GeographicLib::LambertConformalConic" -->
<p>Lambert Conformal Conic Projection.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="LambertConformalConic_8hpp_source.html">GeographicLib/LambertConformalConic.hpp</a>&gt;</code></p>

<p><a href="classGeographicLib_1_1LambertConformalConic-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a9270bac79ef919854a4524044128a4dc">LambertConformalConic</a> (real a, real r, real stdlat, real k0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#af1baa3a7d0baf13819eab9e0683c67d8">LambertConformalConic</a> (real a, real r, real stdlat1, real stdlat2, real k1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#aaa5a355306f2e1b18d02dd04ab69cfb5">LambertConformalConic</a> (real a, real r, real sinlat1, real coslat1, real sinlat2, real coslat2, real k1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#aac6267f7f970b35043b17e12e4163ff2">SetScale</a> (real lat, real k=real(1))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a2bafb6c1a81d4b6cf04f172b9e96278c">Forward</a> (real lon0, real lat, real lon, real &amp;x, real &amp;y, real &amp;gamma, real &amp;k) const   throw ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a085d37693f5e95fd650b7f59f61ab744">Reverse</a> (real lon0, real x, real y, real &amp;lat, real &amp;lon, real &amp;gamma, real &amp;k) const   throw ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a14a3757d85e81488afe476f7ceb8a720">Forward</a> (real lon0, real lat, real lon, real &amp;x, real &amp;y) const   throw ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a1bffe1259895569e6834a4b1df9b22ab">Reverse</a> (real lon0, real x, real y, real &amp;lat, real &amp;lon) const   throw ()</td></tr>
<tr><td colspan="2"><div class="groupHeader">Inspector functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp59c92495387f56c5711d0f52918a49b2"></a> </p>
</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGeographicLib_1_1Math.html#aeee4778d7cf2f9fb9648efe4911da59d">Math::real</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a21f9bc21f3f40c56d2f5d12fb4b7f75a">MajorRadius</a> () const   throw ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGeographicLib_1_1Math.html#aeee4778d7cf2f9fb9648efe4911da59d">Math::real</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a2dcd66922112771c232d686e7bcc5f31">InverseFlattening</a> () const   throw ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGeographicLib_1_1Math.html#aeee4778d7cf2f9fb9648efe4911da59d">Math::real</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a7c589335b43b2274d3a68c0f68f29d77">OriginLatitude</a> () const   throw ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGeographicLib_1_1Math.html#aeee4778d7cf2f9fb9648efe4911da59d">Math::real</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a2298a4e48e550cfd7346cf5f2dd175ad">CentralScale</a> () const   throw ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classGeographicLib_1_1LambertConformalConic.html">LambertConformalConic</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a7fbb6973b77593245db52c9759740f9a">Mercator</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Lambert Conformal Conic Projection. </p>
<p>Implementation taken from the report,</p>
<ul>
<li>J. P. Snyder, <a href="http://pubs.er.usgs.gov/usgspubs/pp/pp1395">Map Projections: A Working Manual</a>, USGS Professional Paper 1395 (1987), pp. 107&ndash;109.</li>
</ul>
<p>This is a implementation of the equations in Snyder except that divided differences have been used to transform the expressions into ones which may be evaluated accurately and that Newton's method is used to invert the projection. In this implementation, the projection correctly becomes the Mercator projection or the polar sterographic projection when the standard latitude is the equator or a pole. The accuracy of the projections is about 10 nm.</p>
<p>The ellipsoid parameters, the standard parallels, and the scale on the standard parallels are set in the constructor. Internally, the case with two standard parallels is converted into a single standard parallel, the latitude of tangency (also the latitude of minimum scale), with a scale specified on this parallel. This latitude is also used as the latitude of origin which is returned by <a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a7c589335b43b2274d3a68c0f68f29d77">LambertConformalConic::OriginLatitude</a>. The scale on the latitude of origin is given by <a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a2298a4e48e550cfd7346cf5f2dd175ad">LambertConformalConic::CentralScale</a>. The case with two distinct standard parallels where one is a pole is singular and is disallowed. The central meridian (which is a trivial shift of the longitude) is specified as the <em>lon0</em> argument of the <a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a2bafb6c1a81d4b6cf04f172b9e96278c">LambertConformalConic::Forward</a> and <a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a085d37693f5e95fd650b7f59f61ab744">LambertConformalConic::Reverse</a> functions. There is no provision in this class for specifying a false easting or false northing or a different latitude of origin. However these are can be simply included by the calling function. For example the Pennsylvania South state coordinate system (<a href="http://www.spatialreference.org/ref/epsg/3364/">EPSG:3364</a>) is obtained by: </p>
<div class="fragment"><pre class="fragment">   <span class="keyword">const</span> <span class="keywordtype">double</span>
     a = GeographicLib::Constants::WGS84_a&lt;double&gt;(),
     r = 298.257222101,                        <span class="comment">// GRS80</span>
     lat1 = 39 + 56/60.0, lat1 = 40 + 58/60.0, <span class="comment">// standard parallels</span>
     k1 = 1,                                   <span class="comment">// scale</span>
     lat0 = 39 + 20/60.0, lon0 = 75 + 45/60.0, <span class="comment">// origin</span>
     fe = 600000, fn = 0;                      <span class="comment">// false easting and northing</span>
   <span class="comment">// Set up basic projection</span>
   <span class="keyword">const</span> <a class="code" href="classGeographicLib_1_1LambertConformalConic.html" title="Lambert Conformal Conic Projection.">GeographicLib::LambertConformalConic</a> PASouth(a, r, lat1, lat2, k1);
   <span class="keywordtype">double</span> x0, y0;
   {
     <span class="comment">// Transform origin point</span>
     PASouth.Forward(lon0, lat0, lon0, x0, y0);
     x0 -= fe; y0 -= fn;         <span class="comment">// Combine result with false origin</span>
   }
   <span class="keywordtype">double</span> lat, lon, x, y;
   <span class="comment">// Sample conversion from geodetic to PASouth grid</span>
   std::cin &gt;&gt; lat &gt;&gt; lon;
   PASouth.Forward(lon0, lat, lon, x, y);
   x -= x0; y -= y0;
   std::cout &lt;&lt; x &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; y &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;
   <span class="comment">// Sample conversion from PASouth grid to geodetic</span>
   std::cin &gt;&gt; x &gt;&gt; y;
   x += x0; y += y0;
   PASouth.Reverse(lon0, x, y, lat, lon);
   std::cout &lt;&lt; lat &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; lon &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;
</pre></div> 
<p>Definition at line <a class="el" href="LambertConformalConic_8hpp_source.html#l00081">81</a> of file <a class="el" href="LambertConformalConic_8hpp_source.html">LambertConformalConic.hpp</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9270bac79ef919854a4524044128a4dc"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::LambertConformalConic" ref="a9270bac79ef919854a4524044128a4dc" args="(real a, real r, real stdlat, real k0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GeographicLib::LambertConformalConic::LambertConformalConic </td>
          <td>(</td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>stdlat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>k0</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor with a single standard parallel.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>a</em>&nbsp;</td><td>equatorial radius of ellipsoid (meters) </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>r</em>&nbsp;</td><td>reciprocal flattening of ellipsoid. Setting <em>r</em> = 0 implies <em>r</em> = inf or flattening = 0 (i.e., a sphere). Negative <em>r</em> indicates a prolate ellipsoid. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>stdlat</em>&nbsp;</td><td>standard parallel (degrees), the circle of tangency. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>k0</em>&nbsp;</td><td>scale on the standard parallel.</td></tr>
  </table>
  </dd>
</dl>
<p>An exception is thrown if <em>a</em> or <em>k0</em> is not positive or if <em>stdlat</em> is not in the range [-90, 90]. </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8cpp_source.html#l00028">28</a> of file <a class="el" href="LambertConformalConic_8cpp_source.html">LambertConformalConic.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af1baa3a7d0baf13819eab9e0683c67d8"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::LambertConformalConic" ref="af1baa3a7d0baf13819eab9e0683c67d8" args="(real a, real r, real stdlat1, real stdlat2, real k1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GeographicLib::LambertConformalConic::LambertConformalConic </td>
          <td>(</td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>stdlat1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>stdlat2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>k1</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor with two standard parallels.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>a</em>&nbsp;</td><td>equatorial radius of ellipsoid (meters) </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>r</em>&nbsp;</td><td>reciprocal flattening of ellipsoid. Setting <em>r</em> = 0 implies <em>r</em> = inf or flattening = 0 (i.e., a sphere). Negative <em>r</em> indicates a prolate ellipsoid. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>stdlat1</em>&nbsp;</td><td>first standard parallel (degrees). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>stdlat2</em>&nbsp;</td><td>second standard parallel (degrees). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>k1</em>&nbsp;</td><td>scale on the standard parallels.</td></tr>
  </table>
  </dd>
</dl>
<p>An exception is thrown if <em>a</em> or <em>k0</em> is not positive or if <em>stdlat1</em> or <em>stdlat2</em> is not in the range [-90, 90]. In addition, if either <em>stdlat1</em> or <em>stdlat2</em> is a pole, then an exception is thrown if <em>stdlat1</em> is not equal <em>stdlat2</em>. </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8cpp_source.html#l00053">53</a> of file <a class="el" href="LambertConformalConic_8cpp_source.html">LambertConformalConic.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aaa5a355306f2e1b18d02dd04ab69cfb5"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::LambertConformalConic" ref="aaa5a355306f2e1b18d02dd04ab69cfb5" args="(real a, real r, real sinlat1, real coslat1, real sinlat2, real coslat2, real k1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GeographicLib::LambertConformalConic::LambertConformalConic </td>
          <td>(</td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>sinlat1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>coslat1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>sinlat2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>coslat2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>k1</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor with two standard parallels specified by sines and cosines.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>a</em>&nbsp;</td><td>equatorial radius of ellipsoid (meters) </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>r</em>&nbsp;</td><td>reciprocal flattening of ellipsoid. Setting <em>r</em> = 0 implies <em>r</em> = inf or flattening = 0 (i.e., a sphere). Negative <em>r</em> indicates a prolate ellipsoid. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>sinlat1</em>&nbsp;</td><td>sine of first standard parallel. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>coslat1</em>&nbsp;</td><td>cosine of first standard parallel. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>sinlat2</em>&nbsp;</td><td>sine of second standard parallel. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>coslat2</em>&nbsp;</td><td>cosine of second standard parallel. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>k1</em>&nbsp;</td><td>scale on the standard parallels.</td></tr>
  </table>
  </dd>
</dl>
<p>This allows parallels close to the poles to be specified accurately. This routine computes the latitude of origin and the scale at this latitude. In the case where <em>lat1</em> and <em>lat2</em> are different, the errors in this routines are as follows: if <em>dlat</em> = abs(<em>lat2</em> - <em>lat1</em>) &lt;= 160<sup>o</sup> and max(abs(<em>lat1</em>), abs(<em>lat2</em>)) &lt;= 90 - min(0.0002, 2.2e-6(180 - <em>dlat</em>), 6e-8<em>dlat<sup>2</sup></em>) (in degrees), then the error in the latitude of origin is less than 4.5e-14<sup>o</sup> and the relative error in the scale is less than 7e-15. </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8cpp_source.html#l00081">81</a> of file <a class="el" href="LambertConformalConic_8cpp_source.html">LambertConformalConic.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aac6267f7f970b35043b17e12e4163ff2"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::SetScale" ref="aac6267f7f970b35043b17e12e4163ff2" args="(real lat, real k=real(1))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GeographicLib::LambertConformalConic::SetScale </td>
          <td>(</td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>lat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>k</em> = <code>real(1)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the scale for the projection.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>lat</em>&nbsp;</td><td>(degrees). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>k</em>&nbsp;</td><td>scale at latitude <em>lat</em> (default 1).</td></tr>
  </table>
  </dd>
</dl>
<p>This allows a "latitude of true scale" to be specified. An exception is thrown if <em>k</em> is not positive or if <em>stdlat</em> is not in the range [-90, 90] </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8cpp_source.html#l00453">453</a> of file <a class="el" href="LambertConformalConic_8cpp_source.html">LambertConformalConic.cpp</a>.</p>

<p>References <a class="el" href="LambertConformalConic_8cpp_source.html#l00324">Forward()</a>.</p>

</div>
</div>
<a class="anchor" id="a2bafb6c1a81d4b6cf04f172b9e96278c"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::Forward" ref="a2bafb6c1a81d4b6cf04f172b9e96278c" args="(real lon0, real lat, real lon, real &amp;x, real &amp;y, real &amp;gamma, real &amp;k) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GeographicLib::LambertConformalConic::Forward </td>
          <td>(</td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>lon0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>lat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>lon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>gamma</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>k</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const  throw ()</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Forward projection, from geographic to Lambert conformal conic.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>lon0</em>&nbsp;</td><td>central meridian longitude (degrees). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>lat</em>&nbsp;</td><td>latitude of point (degrees). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>lon</em>&nbsp;</td><td>longitude of point (degrees). </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>x</em>&nbsp;</td><td>easting of point (meters). </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>y</em>&nbsp;</td><td>northing of point (meters). </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>gamma</em>&nbsp;</td><td>meridian convergence at point (degrees). </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>k</em>&nbsp;</td><td>scale of projection at point.</td></tr>
  </table>
  </dd>
</dl>
<p>The latitude origin is given by LambertConformalConic::LatitudeOrigin(). No false easting or northing is added and <em>lat</em> should be in the range [-90, 90]; <em>lon</em> and <em>lon0</em> should be in the range [-180, 360]. The error in the projection is less than about 10 nm (true distance) and the errors in the meridian convergence and scale are consistent with this. The values of <em>x</em> and <em>y</em> returned for points which project to infinity (i.e., one or both of the poles) will be large but finite. </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8cpp_source.html#l00324">324</a> of file <a class="el" href="LambertConformalConic_8cpp_source.html">LambertConformalConic.cpp</a>.</p>

<p>References <a class="el" href="Constants_8hpp_source.html#l00268">GeographicLib::Math::asinh()</a>.</p>

<p>Referenced by <a class="el" href="LambertConformalConic_8hpp_source.html#l00281">Forward()</a>, and <a class="el" href="LambertConformalConic_8cpp_source.html#l00453">SetScale()</a>.</p>

</div>
</div>
<a class="anchor" id="a085d37693f5e95fd650b7f59f61ab744"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::Reverse" ref="a085d37693f5e95fd650b7f59f61ab744" args="(real lon0, real x, real y, real &amp;lat, real &amp;lon, real &amp;gamma, real &amp;k) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GeographicLib::LambertConformalConic::Reverse </td>
          <td>(</td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>lon0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>lat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>lon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>gamma</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>k</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const  throw ()</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reverse projection, from Lambert conformal conic to geographic.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>lon0</em>&nbsp;</td><td>central meridian longitude (degrees). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>x</em>&nbsp;</td><td>easting of point (meters). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>y</em>&nbsp;</td><td>northing of point (meters). </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>lat</em>&nbsp;</td><td>latitude of point (degrees). </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>lon</em>&nbsp;</td><td>longitude of point (degrees). </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>gamma</em>&nbsp;</td><td>meridian convergence at point (degrees). </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>k</em>&nbsp;</td><td>scale of projection at point.</td></tr>
  </table>
  </dd>
</dl>
<p>The latitude origin is given by LambertConformalConic::LatitudeOrigin(). No false easting or northing is added. <em>lon0</em> should be in the range [-180, 360]. The value of <em>lon</em> returned is in the range [-180, 180). The error in the projection is less than about 10 nm (true distance) and the errors in the meridian convergence and scale are consistent with this. </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8cpp_source.html#l00370">370</a> of file <a class="el" href="LambertConformalConic_8cpp_source.html">LambertConformalConic.cpp</a>.</p>

<p>References <a class="el" href="Constants_8hpp_source.html#l00160">GeographicLib::Math::hypot()</a>, and <a class="el" href="Constants_8hpp_source.html#l00236">GeographicLib::Math::log1p()</a>.</p>

<p>Referenced by <a class="el" href="LambertConformalConic_8hpp_source.html#l00291">Reverse()</a>.</p>

</div>
</div>
<a class="anchor" id="a14a3757d85e81488afe476f7ceb8a720"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::Forward" ref="a14a3757d85e81488afe476f7ceb8a720" args="(real lon0, real lat, real lon, real &amp;x, real &amp;y) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GeographicLib::LambertConformalConic::Forward </td>
          <td>(</td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>lon0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>lat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>lon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const  throw ()<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a2bafb6c1a81d4b6cf04f172b9e96278c">LambertConformalConic::Forward</a> without returning the convergence and scale. </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8hpp_source.html#l00281">281</a> of file <a class="el" href="LambertConformalConic_8hpp_source.html">LambertConformalConic.hpp</a>.</p>

<p>References <a class="el" href="LambertConformalConic_8cpp_source.html#l00324">Forward()</a>.</p>

</div>
</div>
<a class="anchor" id="a1bffe1259895569e6834a4b1df9b22ab"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::Reverse" ref="a1bffe1259895569e6834a4b1df9b22ab" args="(real lon0, real x, real y, real &amp;lat, real &amp;lon) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GeographicLib::LambertConformalConic::Reverse </td>
          <td>(</td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>lon0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>lat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&nbsp;</td>
          <td class="paramname"> <em>lon</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const  throw ()<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a085d37693f5e95fd650b7f59f61ab744">LambertConformalConic::Reverse</a> without returning the convergence and scale. </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8hpp_source.html#l00291">291</a> of file <a class="el" href="LambertConformalConic_8hpp_source.html">LambertConformalConic.hpp</a>.</p>

<p>References <a class="el" href="LambertConformalConic_8cpp_source.html#l00370">Reverse()</a>.</p>

</div>
</div>
<a class="anchor" id="a21f9bc21f3f40c56d2f5d12fb4b7f75a"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::MajorRadius" ref="a21f9bc21f3f40c56d2f5d12fb4b7f75a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGeographicLib_1_1Math.html#aeee4778d7cf2f9fb9648efe4911da59d">Math::real</a> GeographicLib::LambertConformalConic::MajorRadius </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const  throw ()<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd><em>a</em> the equatorial radius of the ellipsoid (meters). This is the value used in the constructor. </dd></dl>

<p>Definition at line <a class="el" href="LambertConformalConic_8hpp_source.html#l00304">304</a> of file <a class="el" href="LambertConformalConic_8hpp_source.html">LambertConformalConic.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2dcd66922112771c232d686e7bcc5f31"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::InverseFlattening" ref="a2dcd66922112771c232d686e7bcc5f31" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGeographicLib_1_1Math.html#aeee4778d7cf2f9fb9648efe4911da59d">Math::real</a> GeographicLib::LambertConformalConic::InverseFlattening </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const  throw ()<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd><em>r</em> the inverse flattening of the ellipsoid. This is the value used in the constructor. A value of 0 is returned for a sphere (infinite inverse flattening). </dd></dl>

<p>Definition at line <a class="el" href="LambertConformalConic_8hpp_source.html#l00311">311</a> of file <a class="el" href="LambertConformalConic_8hpp_source.html">LambertConformalConic.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7c589335b43b2274d3a68c0f68f29d77"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::OriginLatitude" ref="a7c589335b43b2274d3a68c0f68f29d77" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGeographicLib_1_1Math.html#aeee4778d7cf2f9fb9648efe4911da59d">Math::real</a> GeographicLib::LambertConformalConic::OriginLatitude </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const  throw ()<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>latitude of the origin for the projection (degrees).</dd></dl>
<p>This is the latitude of minimum scale and equals the <em>stdlat</em> in the 1-parallel constructor and lies between <em>stdlat1</em> and <em>stdlat2</em> in the 2-parallel constructors. </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8hpp_source.html#l00320">320</a> of file <a class="el" href="LambertConformalConic_8hpp_source.html">LambertConformalConic.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2298a4e48e550cfd7346cf5f2dd175ad"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::CentralScale" ref="a2298a4e48e550cfd7346cf5f2dd175ad" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGeographicLib_1_1Math.html#aeee4778d7cf2f9fb9648efe4911da59d">Math::real</a> GeographicLib::LambertConformalConic::CentralScale </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const  throw ()<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>central scale for the projection. This is the scale on the latitude of origin. </dd></dl>

<p>Definition at line <a class="el" href="LambertConformalConic_8hpp_source.html#l00326">326</a> of file <a class="el" href="LambertConformalConic_8hpp_source.html">LambertConformalConic.hpp</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a7fbb6973b77593245db52c9759740f9a"></a><!-- doxytag: member="GeographicLib::LambertConformalConic::Mercator" ref="a7fbb6973b77593245db52c9759740f9a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classGeographicLib_1_1LambertConformalConic.html">LambertConformalConic</a> <a class="el" href="classGeographicLib_1_1LambertConformalConic.html#a7fbb6973b77593245db52c9759740f9a">GeographicLib::LambertConformalConic::Mercator</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>A global instantiation of <a class="el" href="classGeographicLib_1_1LambertConformalConic.html" title="Lambert Conformal Conic Projection.">LambertConformalConic</a> with the WGS84 ellipsoid, <em>stdlat</em> = 0, and <em>k0</em> = 1. This degenerates to the Mercator projection. </p>

<p>Definition at line <a class="el" href="LambertConformalConic_8hpp_source.html#l00334">334</a> of file <a class="el" href="LambertConformalConic_8hpp_source.html">LambertConformalConic.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="LambertConformalConic_8hpp_source.html">LambertConformalConic.hpp</a></li>
<li><a class="el" href="LambertConformalConic_8cpp_source.html">LambertConformalConic.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Tue Feb 22 2011 for GeographicLib by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>