simpler-tiles 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,200 +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
- Module: SimplerTiles::PP
8
-
9
- &mdash; 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 (P)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../SimplerTiles.html" title="SimplerTiles (module)">SimplerTiles</a></span></span>
38
- &raquo;
39
- <span class="title">PP</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>Module: SimplerTiles::PP
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
- <dt class="r1">Included in:</dt>
74
- <dd class="r1"><span class='object_link'><a href="Bounds.html" title="SimplerTiles::Bounds (class)">Bounds</a></span>, <span class='object_link'><a href="Layer.html" title="SimplerTiles::Layer (class)">Layer</a></span>, <span class='object_link'><a href="Map.html" title="SimplerTiles::Map (class)">Map</a></span>, <span class='object_link'><a href="Query.html" title="SimplerTiles::Query (class)">Query</a></span>, <span class='object_link'><a href="Style.html" title="SimplerTiles::Style (class)">Style</a></span></dd>
75
-
76
-
77
-
78
- <dt class="r2 last">Defined in:</dt>
79
- <dd class="r2 last">lib/simpler_tiles/mixins/pp.rb</dd>
80
-
81
- </dl>
82
- <div class="clear"></div>
83
-
84
- <h2>Overview</h2><div class="docstring">
85
- <div class="discussion">
86
-
87
- <p>PP contains a pretty print routine for SimplerTiles objects.</p>
88
-
89
-
90
- </div>
91
- </div>
92
- <div class="tags">
93
-
94
-
95
- </div>
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- <h2>
104
- Instance Method Summary
105
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
106
- </h2>
107
-
108
- <ul class="summary">
109
-
110
- <li class="public ">
111
- <span class="summary_signature">
112
-
113
- <a href="#inspect-instance_method" title="#inspect (instance method)">- (Object) <strong>inspect</strong> </a>
114
-
115
-
116
-
117
- </span>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <span class="summary_desc"><div class='inline'>
127
- <p>A simple Nokogiri inspired inspection routine.</p>
128
- </div></span>
129
-
130
- </li>
131
-
132
-
133
- </ul>
134
-
135
-
136
-
137
-
138
- <div id="instance_method_details" class="method_details_list">
139
- <h2>Instance Method Details</h2>
140
-
141
-
142
- <div class="method_details first">
143
- <p class="signature first" id="inspect-instance_method">
144
-
145
- - (<tt>Object</tt>) <strong>inspect</strong>
146
-
147
-
148
-
149
- </p><div class="docstring">
150
- <div class="discussion">
151
-
152
- <p>A simple Nokogiri inspired inspection routine.</p>
153
-
154
-
155
- </div>
156
- </div>
157
- <div class="tags">
158
-
159
-
160
- </div><table class="source_code">
161
- <tr>
162
- <td>
163
- <pre class="lines">
164
-
165
-
166
- 5
167
- 6
168
- 7
169
- 8
170
- 9
171
- 10
172
- 11</pre>
173
- </td>
174
- <td>
175
- <pre class="code"><span class="info file"># File 'lib/simpler_tiles/mixins/pp.rb', line 5</span>
176
-
177
- <span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
178
- <span class='id identifier rubyid_attributes'>attributes</span> <span class='op'>=</span> <span class='id identifier rubyid_inspect_attributes'>inspect_attributes</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attribute'>attribute</span><span class='op'>|</span>
179
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attribute'>attribute</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute'>attribute</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
180
- <span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> </span><span class='tstring_end'>'</span></span>
181
-
182
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>#&lt;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sprintf'>sprintf</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0x%x</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_object_id'>object_id</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attributes'>attributes</span><span class='rbrace'>}</span><span class='tstring_content'>&gt;</span><span class='tstring_end'>&quot;</span></span>
183
- <span class='kw'>end</span></pre>
184
- </td>
185
- </tr>
186
- </table>
187
- </div>
188
-
189
- </div>
190
-
191
- </div>
192
-
193
- <div id="footer">
194
- Generated on Sat Dec 8 18:04:34 2012 by
195
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
196
- 0.7.5 (ruby-1.9.3).
197
- </div>
198
-
199
- </body>
200
- </html>
@@ -1,506 +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::Query
8
-
9
- &mdash; 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 (Q)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../SimplerTiles.html" title="SimplerTiles (module)">SimplerTiles</a></span></span>
38
- &raquo;
39
- <span class="title">Query</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::Query
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::Query</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/query.rb<span class="defines">,<br />
95
- ext/simpler_tiles/query.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>A Query represents an OGR SQL query against a layer's datasource. Queries
105
- contain styles that are applied to each returned object from the datastore.</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="#add_style-instance_method" title="#add_style (instance method)">- (Object) <strong>add_style</strong> </a>
132
-
133
-
134
-
135
- </span>
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- <span class="summary_desc"><div class='inline'></div></span>
145
-
146
- </li>
147
-
148
-
149
- <li class="public ">
150
- <span class="summary_signature">
151
-
152
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Query) <strong>initialize</strong>(query) {|_self| ... }</a>
153
-
154
-
155
-
156
- </span>
157
-
158
- <span class="note title constructor">constructor</span>
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
- <span class="summary_desc"><div class='inline'>
168
- <p>Initialize a query with a string containing OGR SQL.</p>
169
- </div></span>
170
-
171
- </li>
172
-
173
-
174
- <li class="public ">
175
- <span class="summary_signature">
176
-
177
- <a href="#query-instance_method" title="#query (instance method)">- (String) <strong>query</strong> </a>
178
-
179
-
180
-
181
- </span>
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
- <span class="summary_desc"><div class='inline'>
191
- <p>Get the OGR SQL for this Query.</p>
192
- </div></span>
193
-
194
- </li>
195
-
196
-
197
- <li class="public ">
198
- <span class="summary_signature">
199
-
200
- <a href="#query%3D-instance_method" title="#query= (instance method)">- (String) <strong>query=</strong> </a>
201
-
202
-
203
-
204
- </span>
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
- <span class="summary_desc"><div class='inline'>
214
- <p>Set the OGR SQL for this Query.</p>
215
- </div></span>
216
-
217
- </li>
218
-
219
-
220
- <li class="public ">
221
- <span class="summary_signature">
222
-
223
- <a href="#styles-instance_method" title="#styles (instance method)">- (Object) <strong>styles</strong>(styles) </a>
224
-
225
-
226
-
227
- </span>
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
- <span class="summary_desc"><div class='inline'>
237
- <p>Styles will take a hash of style declarations and adds them to the internal
238
- c list.</p>
239
- </div></span>
240
-
241
- </li>
242
-
243
-
244
- </ul>
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
- <h3 class="inherited">Methods included from <span class='object_link'><a href="PP.html" title="SimplerTiles::PP (module)">PP</a></span></h3>
256
- <p class="inherited"><span class='object_link'><a href="PP.html#inspect-instance_method" title="SimplerTiles::PP#inspect (method)">#inspect</a></span></p>
257
- <div id="constructor_details" class="method_details_list">
258
- <h2>Constructor Details</h2>
259
-
260
- <div class="method_details first">
261
- <p class="signature first" id="initialize-instance_method">
262
-
263
- - (<tt><span class='object_link'><a href="" title="SimplerTiles::Query (class)">Query</a></span></tt>) <strong>initialize</strong>(query) {|_self| ... }
264
-
265
-
266
-
267
- </p><div class="docstring">
268
- <div class="discussion">
269
-
270
- <p>Initialize a query with a string containing OGR SQL.</p>
271
-
272
-
273
- </div>
274
- </div>
275
- <div class="tags">
276
-
277
- <h3>Yields:</h3>
278
- <ul class="yield">
279
-
280
- <li>
281
-
282
-
283
- <span class='type'>(<tt>_self</tt>)</span>
284
-
285
-
286
-
287
- </li>
288
-
289
- </ul>
290
- <h3>Yield Parameters:</h3>
291
- <ul class="yieldparam">
292
-
293
- <li>
294
-
295
- <span class='name'>_self</span>
296
-
297
-
298
- <span class='type'>(<tt><span class='object_link'><a href="" title="SimplerTiles::Query (class)">SimplerTiles::Query</a></span></tt>)</span>
299
-
300
-
301
-
302
- &mdash;
303
- <div class='inline'>
304
- <p>the object that the method was called on</p>
305
- </div>
306
-
307
- </li>
308
-
309
- </ul>
310
-
311
- </div><table class="source_code">
312
- <tr>
313
- <td>
314
- <pre class="lines">
315
-
316
-
317
- 8
318
- 9
319
- 10
320
- 11</pre>
321
- </td>
322
- <td>
323
- <pre class="code"><span class="info file"># File 'lib/simpler_tiles/query.rb', line 8</span>
324
-
325
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_query'>query</span><span class='rparen'>)</span>
326
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_query'>query</span> <span class='op'>=</span> <span class='id identifier rubyid_query'>query</span>
327
- <span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
328
- <span class='kw'>end</span></pre>
329
- </td>
330
- </tr>
331
- </table>
332
- </div>
333
-
334
- </div>
335
-
336
-
337
- <div id="instance_method_details" class="method_details_list">
338
- <h2>Instance Method Details</h2>
339
-
340
-
341
- <div class="method_details first">
342
- <p class="signature first" id="add_style-instance_method">
343
-
344
- - (<tt>Object</tt>) <strong>add_style</strong>
345
-
346
-
347
-
348
- </p>
349
- </div>
350
-
351
- <div class="method_details ">
352
- <p class="signature " id="query-instance_method">
353
-
354
- - (<tt>String</tt>) <strong>query</strong>
355
-
356
-
357
-
358
- </p><div class="docstring">
359
- <div class="discussion">
360
-
361
- <p>Get the OGR SQL for this Query.</p>
362
-
363
-
364
- </div>
365
- </div>
366
- <div class="tags">
367
-
368
- <h3>Returns:</h3>
369
- <ul class="return">
370
-
371
- <li>
372
-
373
-
374
- <span class='type'>(<tt>String</tt>)</span>
375
-
376
-
377
-
378
- </li>
379
-
380
- </ul>
381
-
382
- </div><table class="source_code">
383
- <tr>
384
- <td>
385
- <pre class="lines">
386
-
387
-
388
- </pre>
389
- </td>
390
- <td>
391
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/query.c'</span>
392
-
393
- static VALUE
394
- get_sql(VALUE self){</pre>
395
- </td>
396
- </tr>
397
- </table>
398
- </div>
399
-
400
- <div class="method_details ">
401
- <p class="signature " id="query=-instance_method">
402
-
403
- - (<tt>String</tt>) <strong>query=</strong>
404
-
405
-
406
-
407
- </p><div class="docstring">
408
- <div class="discussion">
409
-
410
- <p>Set the OGR SQL for this Query.</p>
411
-
412
-
413
- </div>
414
- </div>
415
- <div class="tags">
416
-
417
- <h3>Returns:</h3>
418
- <ul class="return">
419
-
420
- <li>
421
-
422
-
423
- <span class='type'>(<tt>String</tt>)</span>
424
-
425
-
426
-
427
- </li>
428
-
429
- </ul>
430
-
431
- </div><table class="source_code">
432
- <tr>
433
- <td>
434
- <pre class="lines">
435
-
436
-
437
- </pre>
438
- </td>
439
- <td>
440
- <pre class="code"><span class="info file"># File 'ext/simpler_tiles/query.c'</span>
441
-
442
- static VALUE
443
- set_sql(VALUE self, VALUE query){</pre>
444
- </td>
445
- </tr>
446
- </table>
447
- </div>
448
-
449
- <div class="method_details ">
450
- <p class="signature " id="styles-instance_method">
451
-
452
- - (<tt>Object</tt>) <strong>styles</strong>(styles)
453
-
454
-
455
-
456
- </p><div class="docstring">
457
- <div class="discussion">
458
-
459
- <p>Styles will take a hash of style declarations and adds them to the internal
460
- c list.</p>
461
-
462
-
463
- </div>
464
- </div>
465
- <div class="tags">
466
-
467
-
468
- </div><table class="source_code">
469
- <tr>
470
- <td>
471
- <pre class="lines">
472
-
473
-
474
- 15
475
- 16
476
- 17
477
- 18
478
- 19
479
- 20</pre>
480
- </td>
481
- <td>
482
- <pre class="code"><span class="info file"># File 'lib/simpler_tiles/query.rb', line 15</span>
483
-
484
- <span class='kw'>def</span> <span class='id identifier rubyid_styles'>styles</span><span class='lparen'>(</span><span class='id identifier rubyid_styles'>styles</span><span class='rparen'>)</span>
485
- <span class='id identifier rubyid_styles'>styles</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
486
- <span class='id identifier rubyid_style'>style</span> <span class='op'>=</span> <span class='const'>SimplerTiles</span><span class='op'>::</span><span class='const'>Style</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span>
487
- <span class='id identifier rubyid_add_style'>add_style</span> <span class='id identifier rubyid_style'>style</span>
488
- <span class='kw'>end</span>
489
- <span class='kw'>end</span></pre>
490
- </td>
491
- </tr>
492
- </table>
493
- </div>
494
-
495
- </div>
496
-
497
- </div>
498
-
499
- <div id="footer">
500
- Generated on Sat Dec 8 18:04:33 2012 by
501
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
502
- 0.7.5 (ruby-1.9.3).
503
- </div>
504
-
505
- </body>
506
- </html>