simpler-tiles 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/index.erb +3 -1
- data/index.html +4 -0
- data/lib/simpler_tiles/map.rb +1 -1
- data/lib/simpler_tiles/version.rb +1 -1
- metadata +20 -41
- data/doc/SimplerTiles/Bounds.html +0 -493
- data/doc/SimplerTiles/Layer.html +0 -576
- data/doc/SimplerTiles/Map.html +0 -2001
- data/doc/SimplerTiles/PP.html +0 -200
- data/doc/SimplerTiles/Query.html +0 -506
- data/doc/SimplerTiles/Style.html +0 -561
- data/doc/SimplerTiles.html +0 -162
- data/doc/_index.html +0 -188
- data/doc/class_list.html +0 -47
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -55
- data/doc/css/style.css +0 -322
- data/doc/file.README.html +0 -89
- data/doc/file_list.html +0 -49
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -89
- data/doc/js/app.js +0 -205
- data/doc/js/full_list.js +0 -173
- data/doc/js/jquery.js +0 -16
- data/doc/method_list.html +0 -390
- data/doc/top-level-namespace.html +0 -105
data/index.erb
CHANGED
@@ -181,7 +181,7 @@ $ gem install simpler-tiles
|
|
181
181
|
</p>
|
182
182
|
|
183
183
|
<p>
|
184
|
-
The api docs are <a href="
|
184
|
+
The api docs are <a href="http://rdoc.info/github/propublica/simpler-tiles/master/framesl">here</a>, and if you have
|
185
185
|
comments or questions head on over to <tt>#newsapps</tt> or <tt>#propublica</tt>
|
186
186
|
on Freenode, or post them in the github issue
|
187
187
|
<a href="https://github.com/propublica/simpler-tiles/issues?sort=created&direction=desc&state=open">tracker</a>.
|
@@ -435,6 +435,8 @@ CODE
|
|
435
435
|
<h2>Change Log</h2>
|
436
436
|
|
437
437
|
<dl>
|
438
|
+
<dd><b>0.0.5</b> — January, 14th 2012</dd>
|
439
|
+
<dt>Make the connection string for <tt>ar_layer</tt> more robust.</dt>
|
438
440
|
<dd><b>0.0.4</b> — December 8, 2012</dd>
|
439
441
|
<dt>Fix connection string for <tt>ar_layer</tt> (thanks <a href="http://github.com/adamtrilling">adamtrilling</a>)</dt>
|
440
442
|
<dd><b>0.0.3</b> — June 23, 2012</dd>
|
data/index.html
CHANGED
@@ -415,6 +415,10 @@ $ gem install simpler-tiles
|
|
415
415
|
<h2>Change Log</h2>
|
416
416
|
|
417
417
|
<dl>
|
418
|
+
<dd><b>0.0.4</b> — December 8, 2012</dd>
|
419
|
+
<dt>Fix connection string for <tt>ar_layer</tt> (thanks <a href="http://github.com/adamtrilling">adamtrilling</a>)</dt>
|
420
|
+
<dd><b>0.0.3</b> — June 23, 2012</dd>
|
421
|
+
<dt>Better search paths for cairo.</dt>
|
418
422
|
<dd><b>0.0.2</b> — April 10, 2012</dd>
|
419
423
|
<dt>Removed initialization defaults from <tt>SimplerTiles::Map</tt></dt>
|
420
424
|
<dd><b>0.0.1</b></dd>
|
data/lib/simpler_tiles/map.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simpler-tiles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jeff Larson
|
@@ -12,64 +12,64 @@ cert_chain: []
|
|
12
12
|
date: 2011-06-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
16
|
-
|
15
|
+
name: rake-compiler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '0'
|
22
|
-
|
22
|
+
type: :development
|
23
23
|
prerelease: false
|
24
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
|
32
|
-
|
31
|
+
name: bundler
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: 1.2.0
|
38
|
-
|
38
|
+
type: :development
|
39
39
|
prerelease: false
|
40
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: 1.2.0
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
|
48
|
-
|
47
|
+
name: shoulda
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
51
|
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 2.11.3
|
54
|
-
|
54
|
+
type: :development
|
55
55
|
prerelease: false
|
56
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 2.11.3
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
|
64
|
-
|
63
|
+
name: yard
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 0.7.5
|
70
|
-
|
70
|
+
type: :development
|
71
71
|
prerelease: false
|
72
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
@@ -89,27 +89,6 @@ files:
|
|
89
89
|
- LICENSE
|
90
90
|
- README
|
91
91
|
- Rakefile
|
92
|
-
- doc/SimplerTiles.html
|
93
|
-
- doc/SimplerTiles/Bounds.html
|
94
|
-
- doc/SimplerTiles/Layer.html
|
95
|
-
- doc/SimplerTiles/Map.html
|
96
|
-
- doc/SimplerTiles/PP.html
|
97
|
-
- doc/SimplerTiles/Query.html
|
98
|
-
- doc/SimplerTiles/Style.html
|
99
|
-
- doc/_index.html
|
100
|
-
- doc/class_list.html
|
101
|
-
- doc/css/common.css
|
102
|
-
- doc/css/full_list.css
|
103
|
-
- doc/css/style.css
|
104
|
-
- doc/file.README.html
|
105
|
-
- doc/file_list.html
|
106
|
-
- doc/frames.html
|
107
|
-
- doc/index.html
|
108
|
-
- doc/js/app.js
|
109
|
-
- doc/js/full_list.js
|
110
|
-
- doc/js/jquery.js
|
111
|
-
- doc/method_list.html
|
112
|
-
- doc/top-level-namespace.html
|
113
92
|
- ext/simpler_tiles/bounds.c
|
114
93
|
- ext/simpler_tiles/bounds.h
|
115
94
|
- ext/simpler_tiles/depend
|
@@ -151,10 +130,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
130
|
requirements:
|
152
131
|
- - ! '>='
|
153
132
|
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
154
134
|
segments:
|
155
135
|
- 0
|
156
|
-
hash:
|
157
|
-
version: '0'
|
136
|
+
hash: -495376900672816385
|
158
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
138
|
none: false
|
160
139
|
requirements:
|
@@ -163,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
142
|
version: '0'
|
164
143
|
requirements: []
|
165
144
|
rubyforge_project:
|
166
|
-
rubygems_version: 1.8.
|
145
|
+
rubygems_version: 1.8.24
|
167
146
|
signing_key:
|
168
147
|
specification_version: 3
|
169
148
|
summary: A set of ruby bindings for the Simple Tiles mapping library.
|
@@ -1,493 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Class: SimplerTiles::Bounds
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.5
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
relpath = '..';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="../_index.html">Index (B)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../SimplerTiles.html" title="SimplerTiles (module)">SimplerTiles</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">Bounds</span>
|
40
|
-
|
41
|
-
|
42
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div id="search">
|
46
|
-
|
47
|
-
<a id="class_list_link" href="#">Class List</a>
|
48
|
-
|
49
|
-
<a id="method_list_link" href="#">Method List</a>
|
50
|
-
|
51
|
-
<a id="file_list_link" href="#">File List</a>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
<div class="clear"></div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<iframe id="search_frame"></iframe>
|
58
|
-
|
59
|
-
<div id="content"><h1>Class: SimplerTiles::Bounds
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</h1>
|
64
|
-
|
65
|
-
<dl class="box">
|
66
|
-
|
67
|
-
<dt class="r1">Inherits:</dt>
|
68
|
-
<dd class="r1">
|
69
|
-
<span class="inheritName">Object</span>
|
70
|
-
|
71
|
-
<ul class="fullTree">
|
72
|
-
<li>Object</li>
|
73
|
-
|
74
|
-
<li class="next">SimplerTiles::Bounds</li>
|
75
|
-
|
76
|
-
</ul>
|
77
|
-
<a href="#" class="inheritanceTree">show all</a>
|
78
|
-
|
79
|
-
</dd>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<dt class="r2">Includes:</dt>
|
87
|
-
<dd class="r2"><span class='object_link'><a href="PP.html" title="SimplerTiles::PP (module)">PP</a></span></dd>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
<dt class="r1 last">Defined in:</dt>
|
94
|
-
<dd class="r1 last">lib/simpler_tiles/bounds.rb<span class="defines">,<br />
|
95
|
-
ext/simpler_tiles/bounds.c</span>
|
96
|
-
</dd>
|
97
|
-
|
98
|
-
</dl>
|
99
|
-
<div class="clear"></div>
|
100
|
-
|
101
|
-
<h2>Overview</h2><div class="docstring">
|
102
|
-
<div class="discussion">
|
103
|
-
|
104
|
-
<p>Each Bounds represents a rectangular box, for <span class='object_link'><a href="Map.html" title="SimplerTiles::Map (class)">Map</a></span> objects they define the
|
105
|
-
boundary of the data to return from each <span class='object_link'><a href="Layer.html" title="SimplerTiles::Layer (class)">Layer</a></span>.</p>
|
106
|
-
|
107
|
-
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
<div class="tags">
|
111
|
-
|
112
|
-
|
113
|
-
</div>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<h2>
|
122
|
-
Instance Method Summary
|
123
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
124
|
-
</h2>
|
125
|
-
|
126
|
-
<ul class="summary">
|
127
|
-
|
128
|
-
<li class="public ">
|
129
|
-
<span class="summary_signature">
|
130
|
-
|
131
|
-
<a href="#grow-instance_method" title="#grow (instance method)">- (Bounds) <strong>grow</strong> </a>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
</span>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<span class="summary_desc"><div class='inline'>
|
145
|
-
<p>Extend the bounds to include the point defined by x, y.</p>
|
146
|
-
</div></span>
|
147
|
-
|
148
|
-
</li>
|
149
|
-
|
150
|
-
|
151
|
-
<li class="public ">
|
152
|
-
<span class="summary_signature">
|
153
|
-
|
154
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Bounds) <strong>initialize</strong>(maxx, maxy, minx, miny) </a>
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
</span>
|
159
|
-
|
160
|
-
<span class="note title constructor">constructor</span>
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
<span class="summary_desc"><div class='inline'>
|
170
|
-
<p>Initialize a bounds from max and min coordinates.</p>
|
171
|
-
</div></span>
|
172
|
-
|
173
|
-
</li>
|
174
|
-
|
175
|
-
|
176
|
-
<li class="public ">
|
177
|
-
<span class="summary_signature">
|
178
|
-
|
179
|
-
<a href="#reproject-instance_method" title="#reproject (instance method)">- (Bounds) <strong>reproject</strong> </a>
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
</span>
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
<span class="summary_desc"><div class='inline'>
|
193
|
-
<p>Reproject the bounds from <tt>from_proj</tt> to new projection
|
194
|
-
<tt>to_proj</tt>.</p>
|
195
|
-
</div></span>
|
196
|
-
|
197
|
-
</li>
|
198
|
-
|
199
|
-
|
200
|
-
<li class="public ">
|
201
|
-
<span class="summary_signature">
|
202
|
-
|
203
|
-
<a href="#to_wkt-instance_method" title="#to_wkt (instance method)">- (String) <strong>to_wkt</strong> </a>
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
</span>
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
<span class="summary_desc"><div class='inline'>
|
217
|
-
<p>Return a WKT representation of the bounds.</p>
|
218
|
-
</div></span>
|
219
|
-
|
220
|
-
</li>
|
221
|
-
|
222
|
-
|
223
|
-
</ul>
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="PP.html" title="SimplerTiles::PP (module)">PP</a></span></h3>
|
235
|
-
<p class="inherited"><span class='object_link'><a href="PP.html#inspect-instance_method" title="SimplerTiles::PP#inspect (method)">#inspect</a></span></p>
|
236
|
-
<div id="constructor_details" class="method_details_list">
|
237
|
-
<h2>Constructor Details</h2>
|
238
|
-
|
239
|
-
<div class="method_details first">
|
240
|
-
<p class="signature first" id="initialize-instance_method">
|
241
|
-
|
242
|
-
- (<tt><span class='object_link'><a href="" title="SimplerTiles::Bounds (class)">Bounds</a></span></tt>) <strong>initialize</strong>(maxx, maxy, minx, miny)
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
</p><div class="docstring">
|
247
|
-
<div class="discussion">
|
248
|
-
|
249
|
-
<p>Initialize a bounds from max and min coordinates</p>
|
250
|
-
|
251
|
-
|
252
|
-
</div>
|
253
|
-
</div>
|
254
|
-
<div class="tags">
|
255
|
-
|
256
|
-
|
257
|
-
</div><table class="source_code">
|
258
|
-
<tr>
|
259
|
-
<td>
|
260
|
-
<pre class="lines">
|
261
|
-
|
262
|
-
|
263
|
-
8
|
264
|
-
9
|
265
|
-
10
|
266
|
-
11</pre>
|
267
|
-
</td>
|
268
|
-
<td>
|
269
|
-
<pre class="code"><span class="info file"># File 'lib/simpler_tiles/bounds.rb', line 8</span>
|
270
|
-
|
271
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_maxx'>maxx</span><span class='comma'>,</span> <span class='id identifier rubyid_maxy'>maxy</span><span class='comma'>,</span> <span class='id identifier rubyid_minx'>minx</span><span class='comma'>,</span> <span class='id identifier rubyid_miny'>miny</span><span class='rparen'>)</span>
|
272
|
-
<span class='id identifier rubyid_grow'>grow</span> <span class='id identifier rubyid_maxx'>maxx</span><span class='comma'>,</span> <span class='id identifier rubyid_maxy'>maxy</span>
|
273
|
-
<span class='id identifier rubyid_grow'>grow</span> <span class='id identifier rubyid_minx'>minx</span><span class='comma'>,</span> <span class='id identifier rubyid_miny'>miny</span>
|
274
|
-
<span class='kw'>end</span></pre>
|
275
|
-
</td>
|
276
|
-
</tr>
|
277
|
-
</table>
|
278
|
-
</div>
|
279
|
-
|
280
|
-
</div>
|
281
|
-
|
282
|
-
|
283
|
-
<div id="instance_method_details" class="method_details_list">
|
284
|
-
<h2>Instance Method Details</h2>
|
285
|
-
|
286
|
-
|
287
|
-
<div class="method_details first">
|
288
|
-
<p class="signature first" id="grow-instance_method">
|
289
|
-
|
290
|
-
- (<tt><span class='object_link'><a href="" title="SimplerTiles::Bounds (class)">Bounds</a></span></tt>) <strong>grow</strong>
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
</p><div class="docstring">
|
295
|
-
<div class="discussion">
|
296
|
-
|
297
|
-
<p>Extend the bounds to include the point defined by x, y.</p>
|
298
|
-
|
299
|
-
|
300
|
-
</div>
|
301
|
-
</div>
|
302
|
-
<div class="tags">
|
303
|
-
<h3>Parameters:</h3>
|
304
|
-
<ul class="param">
|
305
|
-
|
306
|
-
<li>
|
307
|
-
|
308
|
-
<span class='name'></span>
|
309
|
-
|
310
|
-
|
311
|
-
<span class='type'>(<tt>Number</tt>, <tt>Number</tt>)</span>
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
</li>
|
316
|
-
|
317
|
-
</ul>
|
318
|
-
|
319
|
-
<h3>Returns:</h3>
|
320
|
-
<ul class="return">
|
321
|
-
|
322
|
-
<li>
|
323
|
-
|
324
|
-
|
325
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="SimplerTiles::Bounds (class)">Bounds</a></span></tt>)</span>
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
</li>
|
330
|
-
|
331
|
-
</ul>
|
332
|
-
|
333
|
-
</div><table class="source_code">
|
334
|
-
<tr>
|
335
|
-
<td>
|
336
|
-
<pre class="lines">
|
337
|
-
|
338
|
-
|
339
|
-
</pre>
|
340
|
-
</td>
|
341
|
-
<td>
|
342
|
-
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/bounds.c'</span>
|
343
|
-
|
344
|
-
static VALUE
|
345
|
-
grow(VALUE self, VALUE x, VALUE y){</pre>
|
346
|
-
</td>
|
347
|
-
</tr>
|
348
|
-
</table>
|
349
|
-
</div>
|
350
|
-
|
351
|
-
<div class="method_details ">
|
352
|
-
<p class="signature " id="reproject-instance_method">
|
353
|
-
|
354
|
-
- (<tt><span class='object_link'><a href="" title="SimplerTiles::Bounds (class)">Bounds</a></span></tt>) <strong>reproject</strong>
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
</p><div class="docstring">
|
359
|
-
<div class="discussion">
|
360
|
-
|
361
|
-
<p>Reproject the bounds from <tt>from_proj</tt> to new projection
|
362
|
-
<tt>to_proj</tt>. Returns a new bounds object.</p>
|
363
|
-
|
364
|
-
|
365
|
-
</div>
|
366
|
-
</div>
|
367
|
-
<div class="tags">
|
368
|
-
<h3>Parameters:</h3>
|
369
|
-
<ul class="param">
|
370
|
-
|
371
|
-
<li>
|
372
|
-
|
373
|
-
<span class='name'></span>
|
374
|
-
|
375
|
-
|
376
|
-
<span class='type'>(<tt>String</tt>, <tt>String</tt>)</span>
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
</li>
|
381
|
-
|
382
|
-
</ul>
|
383
|
-
|
384
|
-
<h3>Returns:</h3>
|
385
|
-
<ul class="return">
|
386
|
-
|
387
|
-
<li>
|
388
|
-
|
389
|
-
|
390
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="SimplerTiles::Bounds (class)">Bounds</a></span></tt>)</span>
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
</li>
|
395
|
-
|
396
|
-
</ul>
|
397
|
-
|
398
|
-
</div><table class="source_code">
|
399
|
-
<tr>
|
400
|
-
<td>
|
401
|
-
<pre class="lines">
|
402
|
-
|
403
|
-
|
404
|
-
</pre>
|
405
|
-
</td>
|
406
|
-
<td>
|
407
|
-
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/bounds.c'</span>
|
408
|
-
|
409
|
-
static VALUE
|
410
|
-
reproject(VALUE self, VALUE from, VALUE to) {
|
411
|
-
Check_Type(from, T_STRING);
|
412
|
-
Check_Type(to, T_STRING);
|
413
|
-
simplet_bounds_t *bounds;
|
414
|
-
if(!(bounds = simplet_bounds_reproject(get_bounds(self), RSTRING_PTR(from), RSTRING_PTR(to))))
|
415
|
-
rb_raise(rb_eRuntimeError, "Error in creating bounds.");
|
416
|
-
|
417
|
-
VALUE id = rb_intern("new");
|
418
|
-
|
419
|
-
VALUE rbounds = rb_funcall(cSimplerTilesBounds, id, 4,
|
420
|
-
rb_float_new(bounds->nw.x),
|
421
|
-
rb_float_new(bounds->nw.y),
|
422
|
-
rb_float_new(bounds->se.x),
|
423
|
-
rb_float_new(bounds->se.y));
|
424
|
-
|
425
|
-
simplet_bounds_free(bounds);
|
426
|
-
return rbounds;
|
427
|
-
}</pre>
|
428
|
-
</td>
|
429
|
-
</tr>
|
430
|
-
</table>
|
431
|
-
</div>
|
432
|
-
|
433
|
-
<div class="method_details ">
|
434
|
-
<p class="signature " id="to_wkt-instance_method">
|
435
|
-
|
436
|
-
- (<tt>String</tt>) <strong>to_wkt</strong>
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
</p><div class="docstring">
|
441
|
-
<div class="discussion">
|
442
|
-
|
443
|
-
<p>Return a WKT representation of the bounds.</p>
|
444
|
-
|
445
|
-
|
446
|
-
</div>
|
447
|
-
</div>
|
448
|
-
<div class="tags">
|
449
|
-
|
450
|
-
<h3>Returns:</h3>
|
451
|
-
<ul class="return">
|
452
|
-
|
453
|
-
<li>
|
454
|
-
|
455
|
-
|
456
|
-
<span class='type'>(<tt>String</tt>)</span>
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
</li>
|
461
|
-
|
462
|
-
</ul>
|
463
|
-
|
464
|
-
</div><table class="source_code">
|
465
|
-
<tr>
|
466
|
-
<td>
|
467
|
-
<pre class="lines">
|
468
|
-
|
469
|
-
|
470
|
-
</pre>
|
471
|
-
</td>
|
472
|
-
<td>
|
473
|
-
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/bounds.c'</span>
|
474
|
-
|
475
|
-
static VALUE
|
476
|
-
to_wkt(VALUE self){</pre>
|
477
|
-
</td>
|
478
|
-
</tr>
|
479
|
-
</table>
|
480
|
-
</div>
|
481
|
-
|
482
|
-
</div>
|
483
|
-
|
484
|
-
</div>
|
485
|
-
|
486
|
-
<div id="footer">
|
487
|
-
Generated on Sat Dec 8 18:04:34 2012 by
|
488
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
489
|
-
0.7.5 (ruby-1.9.3).
|
490
|
-
</div>
|
491
|
-
|
492
|
-
</body>
|
493
|
-
</html>
|