jpmobile 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/CHANGELOG +4 -0
  2. data/README +8 -5
  3. data/Rakefile +6 -7
  4. data/lib/jpmobile.rb +12 -2
  5. data/lib/jpmobile/email.rb +19 -0
  6. data/lib/jpmobile/filter.rb +1 -15
  7. data/lib/jpmobile/helpers.rb +76 -34
  8. data/lib/jpmobile/hook_action_controller.rb +1 -0
  9. data/lib/jpmobile/hook_action_view.rb +79 -28
  10. data/lib/jpmobile/mobile/abstract_mobile.rb +13 -1
  11. data/lib/jpmobile/mobile/au.rb +2 -0
  12. data/lib/jpmobile/mobile/docomo.rb +3 -1
  13. data/lib/jpmobile/mobile/emobile.rb +2 -0
  14. data/lib/jpmobile/mobile/softbank.rb +7 -1
  15. data/lib/jpmobile/mobile/willcom.rb +4 -0
  16. data/lib/jpmobile/mobile/z_display_info_docomo.rb +85 -2
  17. data/lib/jpmobile/mobile/z_ip_addresses_au.rb +40 -25
  18. data/lib/jpmobile/mobile/z_ip_addresses_docomo.rb +3 -1
  19. data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +97 -76
  20. data/lib/jpmobile/position.rb +8 -2
  21. data/lib/jpmobile/request_with_mobile.rb +1 -1
  22. data/lib/jpmobile/util.rb +21 -0
  23. data/lib/jpmobile/version.rb +1 -1
  24. data/test/au_test.rb +1 -1
  25. data/tools/update_display_info_docomo.rb +1 -0
  26. data/tools/update_ip_addresses_willcom.rb +2 -1
  27. metadata +36 -82
  28. data/doc/classes/ActionController.html +0 -120
  29. data/doc/classes/ActionController/AbstractRequest.html +0 -118
  30. data/doc/classes/ActionController/CgiRequest.html +0 -160
  31. data/doc/classes/ActionView.html +0 -101
  32. data/doc/classes/DatumConv.html +0 -324
  33. data/doc/classes/Jpmobile/Display.html +0 -333
  34. data/doc/classes/Jpmobile/Emoticon.html +0 -467
  35. data/doc/classes/Jpmobile/Filter.html +0 -120
  36. data/doc/classes/Jpmobile/Filter/ApplyOnlyForMobile.html +0 -172
  37. data/doc/classes/Jpmobile/Filter/Base.html +0 -269
  38. data/doc/classes/Jpmobile/Filter/Emoticon.html +0 -118
  39. data/doc/classes/Jpmobile/Filter/Emoticon/Inner.html +0 -184
  40. data/doc/classes/Jpmobile/Filter/Emoticon/Outer.html +0 -207
  41. data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
  42. data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -126
  43. data/doc/classes/Jpmobile/Filter/Sjis.html +0 -271
  44. data/doc/classes/Jpmobile/Helpers.html +0 -588
  45. data/doc/classes/Jpmobile/Mobile.html +0 -150
  46. data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -389
  47. data/doc/classes/Jpmobile/Mobile/Au.html +0 -420
  48. data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
  49. data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -411
  50. data/doc/classes/Jpmobile/Mobile/Emobile.html +0 -183
  51. data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
  52. data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -344
  53. data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
  54. data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -211
  55. data/doc/classes/Jpmobile/Position.html +0 -384
  56. data/doc/classes/Jpmobile/RequestWithMobile.html +0 -263
  57. data/doc/created.rid +0 -1
  58. data/doc/files/CHANGELOG.html +0 -110
  59. data/doc/files/README.html +0 -455
  60. data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
  61. data/doc/files/lib/jpmobile/emoticon/au_rb.html +0 -124
  62. data/doc/files/lib/jpmobile/emoticon/conversion_table_rb.html +0 -124
  63. data/doc/files/lib/jpmobile/emoticon/docomo_rb.html +0 -119
  64. data/doc/files/lib/jpmobile/emoticon/softbank_rb.html +0 -119
  65. data/doc/files/lib/jpmobile/emoticon/z_combine_rb.html +0 -101
  66. data/doc/files/lib/jpmobile/emoticon_rb.html +0 -101
  67. data/doc/files/lib/jpmobile/filter_rb.html +0 -115
  68. data/doc/files/lib/jpmobile/helpers_rb.html +0 -105
  69. data/doc/files/lib/jpmobile/hook_abstract_request_rb.html +0 -108
  70. data/doc/files/lib/jpmobile/hook_action_controller_rb.html +0 -101
  71. data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -110
  72. data/doc/files/lib/jpmobile/mobile/abstract_mobile_rb.html +0 -108
  73. data/doc/files/lib/jpmobile/mobile/au_rb.html +0 -112
  74. data/doc/files/lib/jpmobile/mobile/display_rb.html +0 -111
  75. data/doc/files/lib/jpmobile/mobile/docomo_rb.html +0 -105
  76. data/doc/files/lib/jpmobile/mobile/emobile_rb.html +0 -105
  77. data/doc/files/lib/jpmobile/mobile/softbank_rb.html +0 -115
  78. data/doc/files/lib/jpmobile/mobile/willcom_rb.html +0 -108
  79. data/doc/files/lib/jpmobile/mobile/z_display_info_docomo_rb.html +0 -114
  80. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html +0 -114
  81. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_docomo_rb.html +0 -124
  82. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_emobile_rb.html +0 -111
  83. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_softbank_rb.html +0 -124
  84. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_willcom_rb.html +0 -114
  85. data/doc/files/lib/jpmobile/position_rb.html +0 -105
  86. data/doc/files/lib/jpmobile/request_with_mobile_rb.html +0 -111
  87. data/doc/files/lib/jpmobile/trans_sid_rb.html +0 -118
  88. data/doc/files/lib/jpmobile/version_rb.html +0 -101
  89. data/doc/files/lib/jpmobile_rb.html +0 -101
  90. data/doc/fr_class_index.html +0 -55
  91. data/doc/fr_file_index.html +0 -58
  92. data/doc/fr_method_index.html +0 -134
  93. data/doc/index.html +0 -24
  94. data/doc/rdoc-style.css +0 -208
@@ -1,160 +0,0 @@
1
- <?xml version="1.0" encoding=" UTF-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: ActionController::CgiRequest</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">ActionController::CgiRequest</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/jpmobile/trans_sid_rb.html">
59
- lib/jpmobile/trans_sid.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
-
82
-
83
- </div>
84
-
85
- <div id="method-list">
86
- <h3 class="section-bar">Methods</h3>
87
-
88
- <div class="name-list">
89
- <a href="#M000001">new</a>&nbsp;&nbsp;
90
- </div>
91
- </div>
92
-
93
- </div>
94
-
95
-
96
- <!-- if includes -->
97
-
98
- <div id="section">
99
-
100
-
101
-
102
- <div id="aliases-list">
103
- <h3 class="section-bar">External Aliases</h3>
104
-
105
- <div class="name-list">
106
- <table summary="aliases">
107
- <tr class="top-aligned-row context-row">
108
- <td class="context-item-name">initialize</td>
109
- <td>-&gt;</td>
110
- <td class="context-item-value">initialize_without_ext</td>
111
- </tr>
112
- </table>
113
- </div>
114
- </div>
115
-
116
-
117
-
118
-
119
-
120
- <!-- if method_list -->
121
- <div id="methods">
122
- <h3 class="section-bar">Public Class methods</h3>
123
-
124
- <div id="method-M000001" class="method-detail">
125
- <a name="M000001"></a>
126
-
127
- <div class="method-heading">
128
- <a href="#M000001" class="method-signature">
129
- <span class="method-name">new</span><span class="method-args">(cgi, options = {})</span>
130
- </a>
131
- </div>
132
-
133
- <div class="method-description">
134
- <p><a class="source-toggle" href="#"
135
- onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
136
- <div class="method-source-code" id="M000001-source">
137
- <pre>
138
- <span class="ruby-comment cmt"># File lib/jpmobile/trans_sid.rb, line 16</span>
139
- 16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">cgi</span>, <span class="ruby-identifier">options</span> = {})
140
- 17: <span class="ruby-identifier">initialize_without_ext</span>(<span class="ruby-identifier">cgi</span>, <span class="ruby-identifier">options</span>)
141
- 18: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'QUERY_STRING'</span>] = <span class="ruby-identifier">query_string</span>
142
- 19: <span class="ruby-keyword kw">end</span>
143
- </pre>
144
- </div>
145
- </div>
146
- </div>
147
-
148
-
149
- </div>
150
-
151
-
152
- </div>
153
-
154
-
155
- <div id="validator-badges">
156
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
157
- </div>
158
-
159
- </body>
160
- </html>
@@ -1,101 +0,0 @@
1
- <?xml version="1.0" encoding=" UTF-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Module: ActionView</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">ActionView</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- </td>
59
- </tr>
60
-
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
-
73
- </div>
74
-
75
-
76
- </div>
77
-
78
-
79
- <!-- if includes -->
80
-
81
- <div id="section">
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
- <!-- if method_list -->
91
-
92
-
93
- </div>
94
-
95
-
96
- <div id="validator-badges">
97
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
98
- </div>
99
-
100
- </body>
101
- </html>
@@ -1,324 +0,0 @@
1
- <?xml version="1.0" encoding=" UTF-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Module: DatumConv</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">DatumConv</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/jpmobile/datum_conv_rb.html">
59
- lib/jpmobile/datum_conv.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
- <div id="description">
76
- <h1>測地系変換モジュール</h1>
77
- <p>
78
- 参考文献: 飛田幹男,
79
- 世界測地系と座標変換&#8212;21世紀の測量士・位置情報ユーザ・プログラマーのために,
80
- 日本測量協会, 2002.
81
- </p>
82
-
83
- </div>
84
-
85
-
86
- </div>
87
-
88
- <div id="method-list">
89
- <h3 class="section-bar">Methods</h3>
90
-
91
- <div class="name-list">
92
- <a href="#M000002">blh2xyz</a>&nbsp;&nbsp;
93
- <a href="#M000006">jgd2tky</a>&nbsp;&nbsp;
94
- <a href="#M000005">tky2jgd</a>&nbsp;&nbsp;
95
- <a href="#M000003">xyz2blh</a>&nbsp;&nbsp;
96
- <a href="#M000004">xyz2xyz</a>&nbsp;&nbsp;
97
- </div>
98
- </div>
99
-
100
- </div>
101
-
102
-
103
- <!-- if includes -->
104
-
105
- <div id="section">
106
-
107
-
108
- <div id="constants-list">
109
- <h3 class="section-bar">Constants</h3>
110
-
111
- <div class="name-list">
112
- <table summary="Constants">
113
- <tr class="top-aligned-row context-row">
114
- <td class="context-item-name">GRS80</td>
115
- <td>=</td>
116
- <td class="context-item-value">[ 6378137, 298.257222101]</td>
117
- </tr>
118
- <tr class="top-aligned-row context-row">
119
- <td class="context-item-name">Bessel</td>
120
- <td>=</td>
121
- <td class="context-item-value">[6377397.155, 299.152813]</td>
122
- </tr>
123
- <tr class="top-aligned-row context-row">
124
- <td class="context-item-name">Tokyo97toITRF94</td>
125
- <td>=</td>
126
- <td class="context-item-value">[-146.414, 507.337, 680.507]</td>
127
- </tr>
128
- <tr class="top-aligned-row context-row">
129
- <td class="context-item-name">ITRF94toTokyo97</td>
130
- <td>=</td>
131
- <td class="context-item-value">[ 146.414,-507.337,-680.507]</td>
132
- </tr>
133
- <tr class="top-aligned-row context-row">
134
- <td class="context-item-name">Deg2Rad</td>
135
- <td>=</td>
136
- <td class="context-item-value">Math::PI/180</td>
137
- </tr>
138
- </table>
139
- </div>
140
- </div>
141
-
142
-
143
-
144
-
145
-
146
-
147
- <!-- if method_list -->
148
- <div id="methods">
149
- <h3 class="section-bar">Public Class methods</h3>
150
-
151
- <div id="method-M000002" class="method-detail">
152
- <a name="M000002"></a>
153
-
154
- <div class="method-heading">
155
- <a href="#M000002" class="method-signature">
156
- <span class="method-name">blh2xyz</span><span class="method-args">(b_deg,l_deg,he,datum)</span>
157
- </a>
158
- </div>
159
-
160
- <div class="method-description">
161
- <p>
162
- 緯度(度),経度(度),高度(m)を三次元直交座標(m)に変換する。
163
- </p>
164
- <p><a class="source-toggle" href="#"
165
- onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
166
- <div class="method-source-code" id="M000002-source">
167
- <pre>
168
- <span class="ruby-comment cmt"># File lib/jpmobile/datum_conv.rb, line 15</span>
169
- 15: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">blh2xyz</span>(<span class="ruby-identifier">b_deg</span>,<span class="ruby-identifier">l_deg</span>,<span class="ruby-identifier">he</span>,<span class="ruby-identifier">datum</span>)
170
- 16: <span class="ruby-identifier">a</span> = <span class="ruby-identifier">datum</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_f</span>
171
- 17: <span class="ruby-identifier">f</span> = <span class="ruby-value">1.0</span><span class="ruby-operator">/</span><span class="ruby-identifier">datum</span>[<span class="ruby-value">1</span>]
172
- 18: <span class="ruby-identifier">b</span> = <span class="ruby-identifier">b_deg</span> <span class="ruby-operator">*</span> <span class="ruby-constant">Deg2Rad</span>
173
- 19: <span class="ruby-identifier">l</span> = <span class="ruby-identifier">l_deg</span> <span class="ruby-operator">*</span> <span class="ruby-constant">Deg2Rad</span>
174
- 20:
175
- 21: <span class="ruby-identifier">e2</span> = <span class="ruby-identifier">f</span> <span class="ruby-operator">*</span> (<span class="ruby-value">2</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">f</span>)
176
- 22: <span class="ruby-identifier">n</span> = <span class="ruby-identifier">a</span> <span class="ruby-operator">/</span> <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>(<span class="ruby-value">1</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">e2</span> <span class="ruby-operator">*</span> <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-identifier">b</span>)<span class="ruby-operator">**</span><span class="ruby-value">2</span> )
177
- 23:
178
- 24: <span class="ruby-identifier">x</span> = (<span class="ruby-identifier">n</span><span class="ruby-operator">+</span><span class="ruby-identifier">he</span>)<span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">cos</span>(<span class="ruby-identifier">b</span>)<span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">cos</span>(<span class="ruby-identifier">l</span>)
179
- 25: <span class="ruby-identifier">y</span> = (<span class="ruby-identifier">n</span><span class="ruby-operator">+</span><span class="ruby-identifier">he</span>)<span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">cos</span>(<span class="ruby-identifier">b</span>)<span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-identifier">l</span>)
180
- 26: <span class="ruby-identifier">z</span> = (<span class="ruby-identifier">n</span><span class="ruby-operator">*</span>(<span class="ruby-value">1</span><span class="ruby-operator">-</span><span class="ruby-identifier">e2</span>)<span class="ruby-operator">+</span><span class="ruby-identifier">he</span>)<span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-identifier">b</span>)
181
- 27: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>
182
- 28: <span class="ruby-keyword kw">end</span>
183
- </pre>
184
- </div>
185
- </div>
186
- </div>
187
-
188
- <div id="method-M000006" class="method-detail">
189
- <a name="M000006"></a>
190
-
191
- <div class="method-heading">
192
- <a href="#M000006" class="method-signature">
193
- <span class="method-name">jgd2tky</span><span class="method-args">(b,l,he=0)</span>
194
- </a>
195
- </div>
196
-
197
- <div class="method-description">
198
- <p>
199
- 世界測地系から日本測地系に変換する。
200
- </p>
201
- <p><a class="source-toggle" href="#"
202
- onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
203
- <div class="method-source-code" id="M000006-source">
204
- <pre>
205
- <span class="ruby-comment cmt"># File lib/jpmobile/datum_conv.rb, line 63</span>
206
- 63: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">jgd2tky</span>(<span class="ruby-identifier">b</span>,<span class="ruby-identifier">l</span>,<span class="ruby-identifier">he</span>=<span class="ruby-value">0</span>)
207
- 64: <span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span> = <span class="ruby-identifier">blh2xyz</span>(<span class="ruby-identifier">b</span>,<span class="ruby-identifier">l</span>,<span class="ruby-identifier">he</span>,<span class="ruby-constant">GRS80</span>)
208
- 65: <span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span> = <span class="ruby-identifier">xyz2xyz</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>,<span class="ruby-constant">ITRF94toTokyo97</span>)
209
- 66: <span class="ruby-identifier">b</span>,<span class="ruby-identifier">l</span>,<span class="ruby-identifier">he</span> = <span class="ruby-identifier">xyz2blh</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>,<span class="ruby-constant">Bessel</span>)
210
- 67: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">b</span>,<span class="ruby-identifier">l</span>,<span class="ruby-identifier">he</span>
211
- 68: <span class="ruby-keyword kw">end</span>
212
- </pre>
213
- </div>
214
- </div>
215
- </div>
216
-
217
- <div id="method-M000005" class="method-detail">
218
- <a name="M000005"></a>
219
-
220
- <div class="method-heading">
221
- <a href="#M000005" class="method-signature">
222
- <span class="method-name">tky2jgd</span><span class="method-args">(b,l,he=0)</span>
223
- </a>
224
- </div>
225
-
226
- <div class="method-description">
227
- <p>
228
- 日本測地系から世界測地系に変換する。
229
- </p>
230
- <p><a class="source-toggle" href="#"
231
- onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
232
- <div class="method-source-code" id="M000005-source">
233
- <pre>
234
- <span class="ruby-comment cmt"># File lib/jpmobile/datum_conv.rb, line 55</span>
235
- 55: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tky2jgd</span>(<span class="ruby-identifier">b</span>,<span class="ruby-identifier">l</span>,<span class="ruby-identifier">he</span>=<span class="ruby-value">0</span>)
236
- 56: <span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span> = <span class="ruby-identifier">blh2xyz</span>(<span class="ruby-identifier">b</span>,<span class="ruby-identifier">l</span>,<span class="ruby-identifier">he</span>,<span class="ruby-constant">Bessel</span>)
237
- 57: <span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span> = <span class="ruby-identifier">xyz2xyz</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>,<span class="ruby-constant">Tokyo97toITRF94</span>)
238
- 58: <span class="ruby-identifier">b</span>,<span class="ruby-identifier">l</span>,<span class="ruby-identifier">he</span> = <span class="ruby-identifier">xyz2blh</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>,<span class="ruby-constant">GRS80</span>)
239
- 59: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">b</span>,<span class="ruby-identifier">l</span>,<span class="ruby-identifier">he</span>
240
- 60: <span class="ruby-keyword kw">end</span>
241
- </pre>
242
- </div>
243
- </div>
244
- </div>
245
-
246
- <div id="method-M000003" class="method-detail">
247
- <a name="M000003"></a>
248
-
249
- <div class="method-heading">
250
- <a href="#M000003" class="method-signature">
251
- <span class="method-name">xyz2blh</span><span class="method-args">(x,y,z,datum)</span>
252
- </a>
253
- </div>
254
-
255
- <div class="method-description">
256
- <p>
257
- 三次元直交座標(m)を緯度(度),経度(度),高度(m)に変換する。
258
- </p>
259
- <p><a class="source-toggle" href="#"
260
- onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
261
- <div class="method-source-code" id="M000003-source">
262
- <pre>
263
- <span class="ruby-comment cmt"># File lib/jpmobile/datum_conv.rb, line 31</span>
264
- 31: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">xyz2blh</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>,<span class="ruby-identifier">datum</span>)
265
- 32: <span class="ruby-identifier">a</span> = <span class="ruby-identifier">datum</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_f</span>
266
- 33: <span class="ruby-identifier">f</span> = <span class="ruby-value">1.0</span><span class="ruby-operator">/</span><span class="ruby-identifier">datum</span>[<span class="ruby-value">1</span>]
267
- 34: <span class="ruby-identifier">e2</span> = <span class="ruby-identifier">f</span> <span class="ruby-operator">*</span> (<span class="ruby-value">2</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">f</span>)
268
- 35: <span class="ruby-identifier">l</span> = <span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan2</span>(<span class="ruby-identifier">y</span>,<span class="ruby-identifier">x</span>)
269
- 36:
270
- 37: <span class="ruby-identifier">p</span> = <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>(<span class="ruby-identifier">x</span><span class="ruby-operator">**</span><span class="ruby-value">2</span><span class="ruby-operator">+</span><span class="ruby-identifier">y</span><span class="ruby-operator">**</span><span class="ruby-value">2</span>)
271
- 38: <span class="ruby-identifier">r</span> = <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>(<span class="ruby-identifier">p</span><span class="ruby-operator">**</span><span class="ruby-value">2</span><span class="ruby-operator">+</span><span class="ruby-identifier">z</span><span class="ruby-operator">**</span><span class="ruby-value">2</span>)
272
- 39: <span class="ruby-identifier">u</span> = <span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan2</span>(<span class="ruby-identifier">z</span><span class="ruby-operator">*</span>((<span class="ruby-value">1</span><span class="ruby-operator">-</span><span class="ruby-identifier">f</span>)<span class="ruby-operator">+</span><span class="ruby-identifier">e2</span><span class="ruby-operator">*</span><span class="ruby-identifier">a</span><span class="ruby-operator">/</span><span class="ruby-identifier">r</span>),<span class="ruby-identifier">p</span>)
273
- 40: <span class="ruby-identifier">b</span> = <span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan2</span>(<span class="ruby-identifier">z</span><span class="ruby-operator">*</span>(<span class="ruby-value">1</span><span class="ruby-operator">-</span><span class="ruby-identifier">f</span>)<span class="ruby-operator">+</span><span class="ruby-identifier">e2</span><span class="ruby-operator">*</span><span class="ruby-identifier">a</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-identifier">u</span>)<span class="ruby-operator">**</span><span class="ruby-value">3</span>,(<span class="ruby-value">1</span><span class="ruby-operator">-</span><span class="ruby-identifier">f</span>)<span class="ruby-operator">*</span>(<span class="ruby-identifier">p</span><span class="ruby-operator">-</span><span class="ruby-identifier">e2</span><span class="ruby-operator">*</span><span class="ruby-identifier">a</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">cos</span>(<span class="ruby-identifier">u</span>)<span class="ruby-operator">**</span><span class="ruby-value">3</span>))
274
- 41:
275
- 42: <span class="ruby-identifier">he</span> = <span class="ruby-identifier">p</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">cos</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">+</span> <span class="ruby-identifier">z</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-identifier">b</span>) <span class="ruby-operator">-</span> <span class="ruby-identifier">a</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>(<span class="ruby-value">1</span><span class="ruby-operator">-</span><span class="ruby-identifier">e2</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-identifier">b</span>)<span class="ruby-operator">**</span><span class="ruby-value">2</span>)
276
- 43:
277
- 44: <span class="ruby-identifier">b_deg</span> = <span class="ruby-identifier">b</span> <span class="ruby-operator">/</span> <span class="ruby-constant">Deg2Rad</span>
278
- 45: <span class="ruby-identifier">l_deg</span> = <span class="ruby-identifier">l</span> <span class="ruby-operator">/</span> <span class="ruby-constant">Deg2Rad</span>
279
- 46: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">b_deg</span>,<span class="ruby-identifier">l_deg</span>,<span class="ruby-identifier">he</span>
280
- 47: <span class="ruby-keyword kw">end</span>
281
- </pre>
282
- </div>
283
- </div>
284
- </div>
285
-
286
- <div id="method-M000004" class="method-detail">
287
- <a name="M000004"></a>
288
-
289
- <div class="method-heading">
290
- <a href="#M000004" class="method-signature">
291
- <span class="method-name">xyz2xyz</span><span class="method-args">(x,y,z,d)</span>
292
- </a>
293
- </div>
294
-
295
- <div class="method-description">
296
- <p>
297
- 三次元直交座標でシフトする。
298
- </p>
299
- <p><a class="source-toggle" href="#"
300
- onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
301
- <div class="method-source-code" id="M000004-source">
302
- <pre>
303
- <span class="ruby-comment cmt"># File lib/jpmobile/datum_conv.rb, line 50</span>
304
- 50: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">xyz2xyz</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>,<span class="ruby-identifier">d</span>)
305
- 51: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">x</span><span class="ruby-operator">+</span><span class="ruby-identifier">d</span>[<span class="ruby-value">0</span>],<span class="ruby-identifier">y</span><span class="ruby-operator">+</span><span class="ruby-identifier">d</span>[<span class="ruby-value">1</span>],<span class="ruby-identifier">z</span><span class="ruby-operator">+</span><span class="ruby-identifier">d</span>[<span class="ruby-value">2</span>]
306
- 52: <span class="ruby-keyword kw">end</span>
307
- </pre>
308
- </div>
309
- </div>
310
- </div>
311
-
312
-
313
- </div>
314
-
315
-
316
- </div>
317
-
318
-
319
- <div id="validator-badges">
320
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
321
- </div>
322
-
323
- </body>
324
- </html>