simpler-tiles 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/SimplerTiles.html +10 -15
- data/doc/SimplerTiles/Bounds.html +50 -63
- data/doc/SimplerTiles/Layer.html +46 -63
- data/doc/SimplerTiles/Map.html +170 -244
- data/doc/SimplerTiles/PP.html +14 -18
- data/doc/SimplerTiles/Query.html +39 -54
- data/doc/SimplerTiles/Style.html +37 -53
- data/doc/_index.html +2 -2
- data/doc/file.README.html +24 -24
- data/doc/index.html +24 -24
- data/doc/method_list.html +12 -12
- data/doc/top-level-namespace.html +2 -2
- data/index.erb +4 -0
- data/lib/simpler_tiles/map.rb +1 -1
- data/lib/simpler_tiles/version.rb +1 -1
- data/simpler-tiles.gemspec +1 -2
- data/test/helper.rb +0 -1
- metadata +74 -87
data/doc/SimplerTiles/PP.html
CHANGED
@@ -83,9 +83,8 @@
|
|
83
83
|
|
84
84
|
<h2>Overview</h2><div class="docstring">
|
85
85
|
<div class="discussion">
|
86
|
-
|
87
|
-
PP contains a pretty print routine for SimplerTiles objects
|
88
|
-
</p>
|
86
|
+
|
87
|
+
<p>PP contains a pretty print routine for SimplerTiles objects.</p>
|
89
88
|
|
90
89
|
|
91
90
|
</div>
|
@@ -124,9 +123,8 @@ PP contains a pretty print routine for SimplerTiles objects.
|
|
124
123
|
|
125
124
|
|
126
125
|
|
127
|
-
<span class="summary_desc"><div class='inline'
|
128
|
-
A simple Nokogiri inspired inspection routine
|
129
|
-
</p>
|
126
|
+
<span class="summary_desc"><div class='inline'>
|
127
|
+
<p>A simple Nokogiri inspired inspection routine.</p>
|
130
128
|
</div></span>
|
131
129
|
|
132
130
|
</li>
|
@@ -150,9 +148,8 @@ A simple Nokogiri inspired inspection routine.
|
|
150
148
|
|
151
149
|
</p><div class="docstring">
|
152
150
|
<div class="discussion">
|
153
|
-
|
154
|
-
A simple Nokogiri inspired inspection routine
|
155
|
-
</p>
|
151
|
+
|
152
|
+
<p>A simple Nokogiri inspired inspection routine.</p>
|
156
153
|
|
157
154
|
|
158
155
|
</div>
|
@@ -177,14 +174,13 @@ A simple Nokogiri inspired inspection routine.
|
|
177
174
|
<td>
|
178
175
|
<pre class="code"><span class="info file"># File 'lib/simpler_tiles/mixins/pp.rb', line 5</span>
|
179
176
|
|
180
|
-
<span class='
|
181
|
-
<span class='
|
182
|
-
<span class='
|
183
|
-
<span class='
|
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'>"</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'>"</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>
|
184
181
|
|
185
|
-
<span class='
|
186
|
-
<span class='
|
187
|
-
</pre>
|
182
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>#<</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'>"</span><span class='tstring_content'>0x%x</span><span class='tstring_end'>"</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'>></span><span class='tstring_end'>"</span></span>
|
183
|
+
<span class='kw'>end</span></pre>
|
188
184
|
</td>
|
189
185
|
</tr>
|
190
186
|
</table>
|
@@ -195,9 +191,9 @@ A simple Nokogiri inspired inspection routine.
|
|
195
191
|
</div>
|
196
192
|
|
197
193
|
<div id="footer">
|
198
|
-
Generated on
|
194
|
+
Generated on Sat Dec 8 18:04:34 2012 by
|
199
195
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
200
|
-
0.7.5 (ruby-1.
|
196
|
+
0.7.5 (ruby-1.9.3).
|
201
197
|
</div>
|
202
198
|
|
203
199
|
</body>
|
data/doc/SimplerTiles/Query.html
CHANGED
@@ -100,11 +100,9 @@
|
|
100
100
|
|
101
101
|
<h2>Overview</h2><div class="docstring">
|
102
102
|
<div class="discussion">
|
103
|
-
|
104
|
-
A Query represents an OGR SQL query against a layer
|
105
|
-
|
106
|
-
datastore.
|
107
|
-
</p>
|
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>
|
108
106
|
|
109
107
|
|
110
108
|
</div>
|
@@ -166,9 +164,8 @@ datastore.
|
|
166
164
|
|
167
165
|
|
168
166
|
|
169
|
-
<span class="summary_desc"><div class='inline'
|
170
|
-
Initialize a query with a string containing OGR SQL
|
171
|
-
</p>
|
167
|
+
<span class="summary_desc"><div class='inline'>
|
168
|
+
<p>Initialize a query with a string containing OGR SQL.</p>
|
172
169
|
</div></span>
|
173
170
|
|
174
171
|
</li>
|
@@ -190,9 +187,8 @@ Initialize a query with a string containing OGR SQL.
|
|
190
187
|
|
191
188
|
|
192
189
|
|
193
|
-
<span class="summary_desc"><div class='inline'
|
194
|
-
Get the OGR SQL for this Query
|
195
|
-
</p>
|
190
|
+
<span class="summary_desc"><div class='inline'>
|
191
|
+
<p>Get the OGR SQL for this Query.</p>
|
196
192
|
</div></span>
|
197
193
|
|
198
194
|
</li>
|
@@ -214,9 +210,8 @@ Get the OGR SQL for this Query.
|
|
214
210
|
|
215
211
|
|
216
212
|
|
217
|
-
<span class="summary_desc"><div class='inline'
|
218
|
-
Set the OGR SQL for this Query
|
219
|
-
</p>
|
213
|
+
<span class="summary_desc"><div class='inline'>
|
214
|
+
<p>Set the OGR SQL for this Query.</p>
|
220
215
|
</div></span>
|
221
216
|
|
222
217
|
</li>
|
@@ -238,10 +233,9 @@ Set the OGR SQL for this Query.
|
|
238
233
|
|
239
234
|
|
240
235
|
|
241
|
-
<span class="summary_desc"><div class='inline'
|
242
|
-
Styles will take a hash of style declarations and adds them to the internal
|
243
|
-
c list
|
244
|
-
</p>
|
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>
|
245
239
|
</div></span>
|
246
240
|
|
247
241
|
</li>
|
@@ -272,9 +266,8 @@ c list.
|
|
272
266
|
|
273
267
|
</p><div class="docstring">
|
274
268
|
<div class="discussion">
|
275
|
-
|
276
|
-
Initialize a query with a string containing OGR SQL
|
277
|
-
</p>
|
269
|
+
|
270
|
+
<p>Initialize a query with a string containing OGR SQL.</p>
|
278
271
|
|
279
272
|
|
280
273
|
</div>
|
@@ -307,9 +300,8 @@ Initialize a query with a string containing OGR SQL.
|
|
307
300
|
|
308
301
|
|
309
302
|
—
|
310
|
-
<div class='inline'
|
311
|
-
the object that the method was called on
|
312
|
-
</p>
|
303
|
+
<div class='inline'>
|
304
|
+
<p>the object that the method was called on</p>
|
313
305
|
</div>
|
314
306
|
|
315
307
|
</li>
|
@@ -330,11 +322,10 @@ the object that the method was called on
|
|
330
322
|
<td>
|
331
323
|
<pre class="code"><span class="info file"># File 'lib/simpler_tiles/query.rb', line 8</span>
|
332
324
|
|
333
|
-
<span class='
|
334
|
-
<span class='
|
335
|
-
<span class='
|
336
|
-
<span class='
|
337
|
-
</pre>
|
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>
|
338
329
|
</td>
|
339
330
|
</tr>
|
340
331
|
</table>
|
@@ -366,9 +357,8 @@ the object that the method was called on
|
|
366
357
|
|
367
358
|
</p><div class="docstring">
|
368
359
|
<div class="discussion">
|
369
|
-
|
370
|
-
Get the OGR SQL for this Query
|
371
|
-
</p>
|
360
|
+
|
361
|
+
<p>Get the OGR SQL for this Query.</p>
|
372
362
|
|
373
363
|
|
374
364
|
</div>
|
@@ -400,9 +390,8 @@ Get the OGR SQL for this Query.
|
|
400
390
|
<td>
|
401
391
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/query.c'</span>
|
402
392
|
|
403
|
-
|
404
|
-
|
405
|
-
</pre>
|
393
|
+
static VALUE
|
394
|
+
get_sql(VALUE self){</pre>
|
406
395
|
</td>
|
407
396
|
</tr>
|
408
397
|
</table>
|
@@ -417,9 +406,8 @@ Get the OGR SQL for this Query.
|
|
417
406
|
|
418
407
|
</p><div class="docstring">
|
419
408
|
<div class="discussion">
|
420
|
-
|
421
|
-
Set the OGR SQL for this Query
|
422
|
-
</p>
|
409
|
+
|
410
|
+
<p>Set the OGR SQL for this Query.</p>
|
423
411
|
|
424
412
|
|
425
413
|
</div>
|
@@ -451,9 +439,8 @@ Set the OGR SQL for this Query.
|
|
451
439
|
<td>
|
452
440
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/query.c'</span>
|
453
441
|
|
454
|
-
|
455
|
-
|
456
|
-
</pre>
|
442
|
+
static VALUE
|
443
|
+
set_sql(VALUE self, VALUE query){</pre>
|
457
444
|
</td>
|
458
445
|
</tr>
|
459
446
|
</table>
|
@@ -468,10 +455,9 @@ Set the OGR SQL for this Query.
|
|
468
455
|
|
469
456
|
</p><div class="docstring">
|
470
457
|
<div class="discussion">
|
471
|
-
|
472
|
-
Styles will take a hash of style declarations and adds them to the internal
|
473
|
-
c list
|
474
|
-
</p>
|
458
|
+
|
459
|
+
<p>Styles will take a hash of style declarations and adds them to the internal
|
460
|
+
c list.</p>
|
475
461
|
|
476
462
|
|
477
463
|
</div>
|
@@ -495,13 +481,12 @@ c list.
|
|
495
481
|
<td>
|
496
482
|
<pre class="code"><span class="info file"># File 'lib/simpler_tiles/query.rb', line 15</span>
|
497
483
|
|
498
|
-
<span class='
|
499
|
-
<span class='
|
500
|
-
<span class='
|
501
|
-
<span class='
|
502
|
-
<span class='
|
503
|
-
<span class='
|
504
|
-
</pre>
|
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>
|
505
490
|
</td>
|
506
491
|
</tr>
|
507
492
|
</table>
|
@@ -512,9 +497,9 @@ c list.
|
|
512
497
|
</div>
|
513
498
|
|
514
499
|
<div id="footer">
|
515
|
-
Generated on
|
500
|
+
Generated on Sat Dec 8 18:04:33 2012 by
|
516
501
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
517
|
-
0.7.5 (ruby-1.
|
502
|
+
0.7.5 (ruby-1.9.3).
|
518
503
|
</div>
|
519
504
|
|
520
505
|
</body>
|
data/doc/SimplerTiles/Style.html
CHANGED
@@ -100,10 +100,9 @@
|
|
100
100
|
|
101
101
|
<h2>Overview</h2><div class="docstring">
|
102
102
|
<div class="discussion">
|
103
|
-
|
104
|
-
Each style defines a particular directive for styling the map. For a list
|
105
|
-
of keys and arguments refer to the simple-tiles documentation
|
106
|
-
</p>
|
103
|
+
|
104
|
+
<p>Each style defines a particular directive for styling the map. For a list
|
105
|
+
of keys and arguments refer to the simple-tiles documentation.</p>
|
107
106
|
|
108
107
|
|
109
108
|
</div>
|
@@ -142,9 +141,8 @@ of keys and arguments refer to the simple-tiles documentation.
|
|
142
141
|
|
143
142
|
|
144
143
|
|
145
|
-
<span class="summary_desc"><div class='inline'
|
146
|
-
Get the arg for this Style
|
147
|
-
</p>
|
144
|
+
<span class="summary_desc"><div class='inline'>
|
145
|
+
<p>Get the arg for this Style.</p>
|
148
146
|
</div></span>
|
149
147
|
|
150
148
|
</li>
|
@@ -166,9 +164,8 @@ Get the arg for this Style.
|
|
166
164
|
|
167
165
|
|
168
166
|
|
169
|
-
<span class="summary_desc"><div class='inline'
|
170
|
-
Set the arg for this Style
|
171
|
-
</p>
|
167
|
+
<span class="summary_desc"><div class='inline'>
|
168
|
+
<p>Set the arg for this Style.</p>
|
172
169
|
</div></span>
|
173
170
|
|
174
171
|
</li>
|
@@ -192,9 +189,8 @@ Set the arg for this Style.
|
|
192
189
|
|
193
190
|
|
194
191
|
|
195
|
-
<span class="summary_desc"><div class='inline'
|
196
|
-
Construct a new style
|
197
|
-
</p>
|
192
|
+
<span class="summary_desc"><div class='inline'>
|
193
|
+
<p>Construct a new style.</p>
|
198
194
|
</div></span>
|
199
195
|
|
200
196
|
</li>
|
@@ -216,9 +212,8 @@ Construct a new style.
|
|
216
212
|
|
217
213
|
|
218
214
|
|
219
|
-
<span class="summary_desc"><div class='inline'
|
220
|
-
Get the key for this Style
|
221
|
-
</p>
|
215
|
+
<span class="summary_desc"><div class='inline'>
|
216
|
+
<p>Get the key for this Style.</p>
|
222
217
|
</div></span>
|
223
218
|
|
224
219
|
</li>
|
@@ -240,9 +235,8 @@ Get the key for this Style.
|
|
240
235
|
|
241
236
|
|
242
237
|
|
243
|
-
<span class="summary_desc"><div class='inline'
|
244
|
-
Set the key for this Style
|
245
|
-
</p>
|
238
|
+
<span class="summary_desc"><div class='inline'>
|
239
|
+
<p>Set the key for this Style.</p>
|
246
240
|
</div></span>
|
247
241
|
|
248
242
|
</li>
|
@@ -273,9 +267,8 @@ Set the key for this Style.
|
|
273
267
|
|
274
268
|
</p><div class="docstring">
|
275
269
|
<div class="discussion">
|
276
|
-
|
277
|
-
Construct a new style
|
278
|
-
</p>
|
270
|
+
|
271
|
+
<p>Construct a new style</p>
|
279
272
|
|
280
273
|
|
281
274
|
</div>
|
@@ -297,11 +290,10 @@ Construct a new style
|
|
297
290
|
<td>
|
298
291
|
<pre class="code"><span class="info file"># File 'lib/simpler_tiles/style.rb', line 8</span>
|
299
292
|
|
300
|
-
<span class='
|
301
|
-
<span class='
|
302
|
-
<span class='
|
303
|
-
<span class='
|
304
|
-
</pre>
|
293
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span>
|
294
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='id identifier rubyid_key'>key</span>
|
295
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_arg'>arg</span> <span class='op'>=</span> <span class='id identifier rubyid_arg'>arg</span>
|
296
|
+
<span class='kw'>end</span></pre>
|
305
297
|
</td>
|
306
298
|
</tr>
|
307
299
|
</table>
|
@@ -323,9 +315,8 @@ Construct a new style
|
|
323
315
|
|
324
316
|
</p><div class="docstring">
|
325
317
|
<div class="discussion">
|
326
|
-
|
327
|
-
Get the arg for this Style
|
328
|
-
</p>
|
318
|
+
|
319
|
+
<p>Get the arg for this Style.</p>
|
329
320
|
|
330
321
|
|
331
322
|
</div>
|
@@ -357,9 +348,8 @@ Get the arg for this Style.
|
|
357
348
|
<td>
|
358
349
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/style.c'</span>
|
359
350
|
|
360
|
-
|
361
|
-
|
362
|
-
</pre>
|
351
|
+
static VALUE
|
352
|
+
get_arg(VALUE self){</pre>
|
363
353
|
</td>
|
364
354
|
</tr>
|
365
355
|
</table>
|
@@ -374,9 +364,8 @@ Get the arg for this Style.
|
|
374
364
|
|
375
365
|
</p><div class="docstring">
|
376
366
|
<div class="discussion">
|
377
|
-
|
378
|
-
Set the arg for this Style
|
379
|
-
</p>
|
367
|
+
|
368
|
+
<p>Set the arg for this Style.</p>
|
380
369
|
|
381
370
|
|
382
371
|
</div>
|
@@ -423,9 +412,8 @@ Set the arg for this Style.
|
|
423
412
|
<td>
|
424
413
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/style.c'</span>
|
425
414
|
|
426
|
-
|
427
|
-
|
428
|
-
</pre>
|
415
|
+
static VALUE
|
416
|
+
set_arg(VALUE self, VALUE arg){</pre>
|
429
417
|
</td>
|
430
418
|
</tr>
|
431
419
|
</table>
|
@@ -440,9 +428,8 @@ Set the arg for this Style.
|
|
440
428
|
|
441
429
|
</p><div class="docstring">
|
442
430
|
<div class="discussion">
|
443
|
-
|
444
|
-
Get the key for this Style
|
445
|
-
</p>
|
431
|
+
|
432
|
+
<p>Get the key for this Style.</p>
|
446
433
|
|
447
434
|
|
448
435
|
</div>
|
@@ -489,9 +476,8 @@ Get the key for this Style.
|
|
489
476
|
<td>
|
490
477
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/style.c'</span>
|
491
478
|
|
492
|
-
|
493
|
-
|
494
|
-
</pre>
|
479
|
+
static VALUE
|
480
|
+
get_key(VALUE self){</pre>
|
495
481
|
</td>
|
496
482
|
</tr>
|
497
483
|
</table>
|
@@ -506,9 +492,8 @@ Get the key for this Style.
|
|
506
492
|
|
507
493
|
</p><div class="docstring">
|
508
494
|
<div class="discussion">
|
509
|
-
|
510
|
-
Set the key for this Style
|
511
|
-
</p>
|
495
|
+
|
496
|
+
<p>Set the key for this Style.</p>
|
512
497
|
|
513
498
|
|
514
499
|
</div>
|
@@ -555,9 +540,8 @@ Set the key for this Style.
|
|
555
540
|
<td>
|
556
541
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/style.c'</span>
|
557
542
|
|
558
|
-
|
559
|
-
|
560
|
-
</pre>
|
543
|
+
static VALUE
|
544
|
+
set_key(VALUE self, VALUE key){</pre>
|
561
545
|
</td>
|
562
546
|
</tr>
|
563
547
|
</table>
|
@@ -568,9 +552,9 @@ Set the key for this Style.
|
|
568
552
|
</div>
|
569
553
|
|
570
554
|
<div id="footer">
|
571
|
-
Generated on
|
555
|
+
Generated on Sat Dec 8 18:04:34 2012 by
|
572
556
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
573
|
-
0.7.5 (ruby-1.
|
557
|
+
0.7.5 (ruby-1.9.3).
|
574
558
|
</div>
|
575
559
|
|
576
560
|
</body>
|