File: examples.doxy

package info (click to toggle)
spatialite 5.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 74,240 kB
  • sloc: ansic: 587,051; makefile: 8,583; sh: 4,276; yacc: 1,973; xml: 717
file content (611 lines) | stat: -rw-r--r-- 22,879 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
/** \example demo1.c

This is a sample C source showing how to use SQLite / SpatiaLite 
from C. 

This program shows the  basic functionality that will be required for most
SpatiaLite programs:
 - how to connect an SQLite+SpatiaLite database
 - executing an SQL query 
 - fetching values from a result set
 - transforming BLOB-values into GEOMETRY
 - elementary processing GEOMETRY 

The typical output of this demo is shown below, when run against the sample
database.
\verbatim
$ ./demo1 test-2.3.sqlite 
SQLite version: 3.7.4
SpatiaLite version: 3.0.0-beta1


========= table 'HighWays' ========================
row #1
        PK_UID     = 1
        Name       = 'Unknown'
        Geometry   = LINESTRING SRID=32632 length=8697.57
row #2
        PK_UID     = 2
        Name       = 'Unknown'
        Geometry   = LINESTRING SRID=32632 length=39.79
row #3
        PK_UID     = 3
        Name       = 'Unknown'
        Geometry   = LINESTRING SRID=32632 length=14610.39
row #4
        PK_UID     = 4
        Name       = 'Unknown'
        Geometry   = LINESTRING SRID=32632 length=878.01
row #5
        PK_UID     = 5
        Name       = 'Unknown'
        Geometry   = LINESTRING SRID=32632 length=10.05


========= table 'Regions' ========================
row #1
        PK_UID     = 1
        Name       = 'VENETO'
        Geometry   = MULTIPOLYGON SRID=32632 area=646397.81
row #2
        PK_UID     = 2
        Name       = 'VENETO'
        Geometry   = MULTIPOLYGON SRID=32632 area=1290337.69
row #3
        PK_UID     = 3
        Name       = 'VENETO'
        Geometry   = MULTIPOLYGON SRID=32632 area=8784619.92
row #4
        PK_UID     = 4
        Name       = 'VENETO'
        Geometry   = MULTIPOLYGON SRID=32632 area=530524.68
row #5
        PK_UID     = 5
        Name       = 'LIGURIA'
        Geometry   = MULTIPOLYGON SRID=32632 area=5450277374.12


========= table 'Towns' ========================
row #1
        PK_UID     = 1
        Name       = 'Brozolo'
        Peoples    = 435
        LocalCounc = 1
        County     = 0
        Region     = 0
        Geometry   = POINT SRID=32632
row #2
        PK_UID     = 2
        Name       = 'Campiglione-Fenile'
        Peoples    = 1284
        LocalCounc = 1
        County     = 0
        Region     = 0
        Geometry   = POINT SRID=32632
row #3
        PK_UID     = 3
        Name       = 'Canischio'
        Peoples    = 274
        LocalCounc = 1
        County     = 0
        Region     = 0
        Geometry   = POINT SRID=32632
row #4
        PK_UID     = 4
        Name       = 'Cavagnolo'
        Peoples    = 2281
        LocalCounc = 1
        County     = 0
        Region     = 0
        Geometry   = POINT SRID=32632
row #5
        PK_UID     = 5
        Name       = 'Magliano Alfieri'
        Peoples    = 1674
        LocalCounc = 1
        County     = 0
        Region     = 0
        Geometry   = POINT SRID=32632




sample successfully terminated
\endverbatim

*/

/** \example demo2.c

This is a sample C source showing how to manipulate GEOMETRY within
Spatialite. It essentially follows on from the functionality shown in the
demo1.c example, and covers:
 - creating geometries
 - exploring geometries
 - querying the basic properties of a geometry
 
 Note that this does not require a database command line argument. Here is a
 typical run:
\verbatim
$ ./demo2 
step#1: POINT           Dimension=0 IsValid=1
                        POINT 0/1 x=1.5000 y=2.7500

step#2: LINESTRING      Dimension=1 IsValid=1
                        LINESTRING 0/1 has 5 vertices
                                vertex 0/5 x=1.0000 y=1.0000
                                vertex 1/5 x=2.0000 y=1.0000
                                vertex 2/5 x=2.0000 y=2.0000
                                vertex 3/5 x=100.0000 y=2.0000
                                vertex 4/5 x=100.0000 y=100.0000

step#3: POLYGON Dimension=2 IsValid=1
                        POLYGON 0/1 has 2 holes
                                ExteriorRing has 5 vertices
                                        vertex 0/5 x=0.0000 y=0.0000
                                        vertex 1/5 x=50.0000 y=0.0000
                                        vertex 2/5 x=50.0000 y=50.0000
                                        vertex 3/5 x=0.0000 y=50.0000
                                        vertex 4/5 x=0.0000 y=0.0000
                                InteriorRing 0/2 has 5 vertices
                                        vertex 0/5 x=40.0000 y=40.0000
                                        vertex 1/5 x=41.0000 y=40.0000
                                        vertex 2/5 x=41.0000 y=41.0000
                                        vertex 3/5 x=40.0000 y=41.0000
                                        vertex 4/5 x=40.0000 y=40.0000
                                InteriorRing 1/2 has 5 vertices
                                        vertex 0/5 x=30.0000 y=30.0000
                                        vertex 1/5 x=31.0000 y=30.0000
                                        vertex 2/5 x=31.0000 y=31.0000
                                        vertex 3/5 x=30.0000 y=31.0000
                                        vertex 4/5 x=30.0000 y=30.0000

step#4: MULTIPOINT      Dimension=0 IsValid=1
                        POINT 0/5 x=5.0000 y=5.0000
                        POINT 1/5 x=15.0000 y=5.0000
                        POINT 2/5 x=5.0000 y=15.0000
                        POINT 3/5 x=25.0000 y=5.0000
                        POINT 4/5 x=5.0000 y=25.0000

step#5: MULTILINESTRING Dimension=1 IsValid=1
                        LINESTRING 0/2 has 2 vertices
                                vertex 0/2 x=30.0000 y=10.0000
                                vertex 1/2 x=10.0000 y=30.0000
                        LINESTRING 1/2 has 2 vertices
                                vertex 0/2 x=40.0000 y=50.0000
                                vertex 1/2 x=50.0000 y=40.0000

step#6: MULTIPOLYGON    Dimension=2 IsValid=1
                        POLYGON 0/2 has 0 holes
                                ExteriorRing has 5 vertices
                                        vertex 0/5 x=60.0000 y=60.0000
                                        vertex 1/5 x=70.0000 y=60.0000
                                        vertex 2/5 x=70.0000 y=70.0000
                                        vertex 3/5 x=60.0000 y=70.0000
                                        vertex 4/5 x=60.0000 y=60.0000
                        POLYGON 1/2 has 0 holes
                                ExteriorRing has 5 vertices
                                        vertex 0/5 x=80.0000 y=80.0000
                                        vertex 1/5 x=90.0000 y=80.0000
                                        vertex 2/5 x=90.0000 y=90.0000
                                        vertex 3/5 x=80.0000 y=90.0000
                                        vertex 4/5 x=80.0000 y=80.0000

step#7: GEOMETRYCOLLECTION      Dimension=2 IsValid=1
                        POINT 0/2 x=100.0000 y=100.0000
                        POINT 1/2 x=100.0000 y=0.0000
                        LINESTRING 0/2 has 2 vertices
                                vertex 0/2 x=130.0000 y=110.0000
                                vertex 1/2 x=110.0000 y=130.0000
                        LINESTRING 1/2 has 2 vertices
                                vertex 0/2 x=140.0000 y=150.0000
                                vertex 1/2 x=150.0000 y=140.0000
                        POLYGON 0/2 has 0 holes
                                ExteriorRing has 5 vertices
                                        vertex 0/5 x=160.0000 y=160.0000
                                        vertex 1/5 x=170.0000 y=160.0000
                                        vertex 2/5 x=170.0000 y=170.0000
                                        vertex 3/5 x=160.0000 y=170.0000
                                        vertex 4/5 x=160.0000 y=160.0000
                        POLYGON 1/2 has 0 holes
                                ExteriorRing has 5 vertices
                                        vertex 0/5 x=180.0000 y=180.0000
                                        vertex 1/5 x=190.0000 y=180.0000
                                        vertex 2/5 x=190.0000 y=190.0000
                                        vertex 3/5 x=180.0000 y=190.0000
                                        vertex 4/5 x=180.0000 y=180.0000

step#8: checking WKT representations

GEOMETRYCOLLECTION(POINT(1.5 2.75))

GEOMETRYCOLLECTION(LINESTRING(1 1, 2 1, 2 2, 100 2, 100 100))

GEOMETRYCOLLECTION(POLYGON((0 0, 50 0, 50 50, 0 50, 0 0), (40 40, 41 40, 41 41, 40 41, 40 40), (30 30, 31 30, 31 31, 30 31, 30 30)))

GEOMETRYCOLLECTION(POINT(5 5), POINT(15 5), POINT(5 15), POINT(25 5), POINT(5 25))

GEOMETRYCOLLECTION(LINESTRING(30 10, 10 30), LINESTRING(40 50, 50 40))

GEOMETRYCOLLECTION(POLYGON((60 60, 70 60, 70 70, 60 70, 60 60)), POLYGON((80 80, 90 80, 90 90, 80 90, 80 80)))

GEOMETRYCOLLECTION(POINT(100 100), POINT(100 0), LINESTRING(130 110, 110 130), LINESTRING(140 150, 150 140), POLYGON((160 160, 170 160, 170 170, 160 170, 160 160)), POLYGON((180 180, 190 180, 190 190, 180 190, 180 180)))
\endverbatim
*/

/** \example demo3.c

This is a sample C source showing how to use the SQLite / SpatiaLite 
Spatial Index [RTree].

It follows on from demo1.c.

The main steps in this example are:
 - creating a new database
 - creating a sample geo-table 
 - inserting 1 million rows into this table
 - performing some spatial queries without Spatial Indexing
 - performing the same queries using the Spatial Index

The typical output of this demo is shown below (where test.sqlite does not
exist before the run).

\verbatim
$ ./demo3 test.sqlite
SQLite version: 3.7.4
SpatiaLite version: 3.0.0-beta1



now we are going to insert 1 million POINTs; wait, please ...

insert row: 25000               [elapsed time: 1.910]
insert row: 50000               [elapsed time: 4.050]
insert row: 75000               [elapsed time: 6.270]
insert row: 100000              [elapsed time: 8.460]
insert row: 125000              [elapsed time: 10.740]
insert row: 150000              [elapsed time: 12.910]
insert row: 175000              [elapsed time: 15.080]
insert row: 200000              [elapsed time: 17.350]
insert row: 225000              [elapsed time: 19.610]
insert row: 250000              [elapsed time: 21.890]
insert row: 275000              [elapsed time: 24.170]
insert row: 300000              [elapsed time: 26.380]
insert row: 325000              [elapsed time: 28.650]
insert row: 350000              [elapsed time: 30.900]
insert row: 375000              [elapsed time: 33.130]
insert row: 400000              [elapsed time: 35.340]
insert row: 425000              [elapsed time: 37.540]
insert row: 450000              [elapsed time: 39.760]
insert row: 475000              [elapsed time: 41.980]
insert row: 500000              [elapsed time: 44.220]
insert row: 525000              [elapsed time: 46.500]
insert row: 550000              [elapsed time: 48.740]
insert row: 575000              [elapsed time: 50.960]
insert row: 600000              [elapsed time: 53.190]
insert row: 625000              [elapsed time: 55.430]
insert row: 650000              [elapsed time: 57.670]
insert row: 675000              [elapsed time: 59.900]
insert row: 700000              [elapsed time: 62.130]
insert row: 725000              [elapsed time: 64.400]
insert row: 750000              [elapsed time: 66.660]
insert row: 775000              [elapsed time: 68.900]
insert row: 800000              [elapsed time: 71.140]
insert row: 825000              [elapsed time: 73.410]
insert row: 850000              [elapsed time: 75.670]
insert row: 875000              [elapsed time: 77.940]
insert row: 900000              [elapsed time: 80.230]
insert row: 925000              [elapsed time: 82.540]
insert row: 950000              [elapsed time: 84.840]
insert row: 975000              [elapsed time: 87.150]
insert row: 1000000             [elapsed time: 89.450]

performing test#0 - not using Spatial Index
Count(*) = 25           [elapsed time: 1.2700]

performing test#1 - not using Spatial Index
Count(*) = 25           [elapsed time: 1.2700]

performing test#2 - not using Spatial Index
Count(*) = 25           [elapsed time: 1.2900]

performing test#0 - using the R*Tree Spatial Index
Count(*) = 25           [elapsed time: 0.0000]

performing test#1 - using the R*Tree Spatial Index
Count(*) = 25           [elapsed time: 0.0000]

performing test#2 - using the R*Tree Spatial Index
Count(*) = 25           [elapsed time: 0.0000]


sample successfully terminated
\endverbatim

Note the significant difference in elapsed time associated with use of an 
appropriate index.

*/

/** \example demo4.c

This is a sample C source showing how to use the SQLite / SpatiaLite 
Spatial Index [MbrCache].

It is very similar to demo3.c, but uses a different indexing approach

The main steps in this example are:
 - creating a new database
 - creating a sample geo-table 
 - inserting 1 million rows into this table
 - performing some spatial queries without Spatial Indexing
 - performing the same queries using the Spatial Index

The typical output of this demo is shown below (where test.sqlite does not
exist before the run).

\verbatim
$ ./demo4 test.sqlite
SQLite version: 3.7.4
SpatiaLite version: 3.0.0-beta1



now we are going to insert 1 million POINTs; wait, please ...

insert row: 25000               [elapsed time: 0.370]
insert row: 50000               [elapsed time: 0.820]
insert row: 75000               [elapsed time: 1.280]
insert row: 100000              [elapsed time: 1.750]
insert row: 125000              [elapsed time: 2.210]
insert row: 150000              [elapsed time: 2.690]
insert row: 175000              [elapsed time: 3.180]
insert row: 200000              [elapsed time: 3.670]
insert row: 225000              [elapsed time: 4.210]
insert row: 250000              [elapsed time: 4.720]
insert row: 275000              [elapsed time: 5.240]
insert row: 300000              [elapsed time: 5.780]
insert row: 325000              [elapsed time: 6.330]
insert row: 350000              [elapsed time: 6.910]
insert row: 375000              [elapsed time: 7.510]
insert row: 400000              [elapsed time: 8.120]
insert row: 425000              [elapsed time: 8.750]
insert row: 450000              [elapsed time: 9.420]
insert row: 475000              [elapsed time: 10.120]
insert row: 500000              [elapsed time: 10.850]
insert row: 525000              [elapsed time: 11.610]
insert row: 550000              [elapsed time: 12.390]
insert row: 575000              [elapsed time: 13.200]
insert row: 600000              [elapsed time: 14.040]
insert row: 625000              [elapsed time: 14.900]
insert row: 650000              [elapsed time: 15.790]
insert row: 675000              [elapsed time: 16.700]
insert row: 700000              [elapsed time: 17.650]
insert row: 725000              [elapsed time: 18.620]
insert row: 750000              [elapsed time: 19.610]
insert row: 775000              [elapsed time: 20.650]
insert row: 800000              [elapsed time: 21.700]
insert row: 825000              [elapsed time: 22.760]
insert row: 850000              [elapsed time: 23.860]
insert row: 875000              [elapsed time: 25.060]
insert row: 900000              [elapsed time: 26.290]
insert row: 925000              [elapsed time: 27.480]
insert row: 950000              [elapsed time: 28.760]
insert row: 975000              [elapsed time: 30.020]
insert row: 1000000             [elapsed time: 31.280]

performing test#0 - not using Spatial Index
Count(*) = 25           [elapsed time: 1.2500]

performing test#1 - not using Spatial Index
Count(*) = 25           [elapsed time: 1.2400]

performing test#2 - not using Spatial Index
Count(*) = 25           [elapsed time: 1.2400]

performing test#0 - using the MBR cache Spatial Index
Count(*) = 25           [elapsed time: 0.0000]

performing test#1 - using the MBR cache Spatial Index
Count(*) = 25           [elapsed time: 0.0000]

performing test#2 - using the MBR cache Spatial Index
Count(*) = 25           [elapsed time: 0.0000]


sample successfully terminated
\endverbatim

As for demo3.c, note the significant speed difference between the indexed
and non-indexed queries.
*/

/** \example demo5.c

This is a sample C source showing how to use the SpatiaLite's API 
gaiaGetVectorLayersList(), i.e. the one gathering statistic infos
for Vector Layers.
The typical output of this demo is shown below.

By simply specifying a DB-path demo5 will print the complete list
of all Vector Layers found in that DB:

\verbatim
$ ./demo5 /home/sandro/db-4.0.sqlite 
SQLite version: 3.7.11
SpatiaLite version: 4.0.0-RC2

****** VectorLayersList (mode=FAST) *********
VectorLayer: Type=BasedOnSqlTable TableName=com2011
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=8094
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220492.095518
	ReadOnly=FALSE Hidden=FALSE
VectorLayer: Type=BasedOnSqlTable TableName=prov2011
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=110
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018
	ReadOnly=FALSE Hidden=FALSE
VectorLayer: Type=BasedOnSqlTable TableName=reg2011
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=20
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018
	ReadOnly=FALSE Hidden=FALSE
VectorLayer: Type=BasedOnSqlView TableName=com_prov
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=8094
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220492.095518
	ReadOnly=FALSE Hidden=FALSE
VectorLayer: Type=BasedOnSqlView TableName=prov_reg
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=110
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018
	ReadOnly=TRUE Hidden=FALSE
VectorLayer: Type=BasedOnVirtualShape TableName=com2011a
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=8094
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220492.095518
VectorLayer: Type=BasedOnVirtualShape TableName=prov2011a
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=110
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018
VectorLayer: Type=BasedOnVirtualShape TableName=reg2011a
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=20
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018


****** VectorLayersList (mode=PRECISE) *********
VectorLayer: Type=BasedOnSqlTable TableName=com2011
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=8094
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220492.095518
	ReadOnly=FALSE Hidden=FALSE
VectorLayer: Type=BasedOnSqlTable TableName=prov2011
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=110
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018
	ReadOnly=FALSE Hidden=FALSE
VectorLayer: Type=BasedOnSqlTable TableName=reg2011
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=20
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018
	ReadOnly=FALSE Hidden=FALSE
VectorLayer: Type=BasedOnSqlView TableName=com_prov
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=8094
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220492.095518
	ReadOnly=FALSE Hidden=FALSE
VectorLayer: Type=BasedOnSqlView TableName=prov_reg
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=110
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018
	ReadOnly=TRUE Hidden=FALSE
VectorLayer: Type=BasedOnVirtualShape TableName=com2011a
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=8094
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220492.095518
VectorLayer: Type=BasedOnVirtualShape TableName=prov2011a
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=110
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018
VectorLayer: Type=BasedOnVirtualShape TableName=reg2011a
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=20
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220491.200018

sample successfully terminated
\endverbatim

By optionally specifying a Layer name  demo5 will print a more detailed
list for that single Layer:

\verbatim
$ ./demo5 /home/sandro/db-4.0.sqlite com2011
SQLite version: 3.7.11
SpatiaLite version: 4.0.0-RC2

****** VectorLayersList (mode=FAST) *********
VectorLayer: Type=BasedOnSqlTable TableName=com2011
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=8094
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220492.095518
	ReadOnly=FALSE Hidden=FALSE
		Field #0) FieldName=PRO_COM
			IntegerValues=8094 
			IntRange 1001 / 110010
		Field #1) FieldName=COD_REG
			IntegerValues=8094 
			IntRange 1 / 20
		Field #2) FieldName=COD_PRO
			IntegerValues=8094 
			IntRange 1 / 110
		Field #3) FieldName=NOME_COM
			TextValues=8094 
			MaxSize/Length=35
		Field #4) FieldName=NOME_TED
			TextValues=8094 
			MaxSize/Length=36
		Field #5) FieldName=SHAPE_Leng
			DoubleValues=8094 
			DoubleRange 1566.303618 / 327044.574999
		Field #6) FieldName=SHAPE_Area
			DoubleValues=8094 
			DoubleRange 120613.967719 / 1287358944.600000
		Field #7) FieldName=Geometry
			BlobValues=8094 
			MaxSize/Length=222151


****** VectorLayersList (mode=PRECISE) *********
VectorLayer: Type=BasedOnSqlTable TableName=com2011
	GeometryName=geometry SRID=23032 GeometryType=MULTIPOLYGON Dims=XY
	RowCount=8094
	ExtentMin 313360.999831 / 3933878.175118
	ExtentMax 1312106.500031 / 5220492.095518
	ReadOnly=FALSE Hidden=FALSE
		Field #0) FieldName=PRO_COM
			IntegerValues=8094 
			IntRange 1001 / 110010
		Field #1) FieldName=COD_REG
			IntegerValues=8094 
			IntRange 1 / 20
		Field #2) FieldName=COD_PRO
			IntegerValues=8094 
			IntRange 1 / 110
		Field #3) FieldName=NOME_COM
			TextValues=8094 
			MaxSize/Length=35
		Field #4) FieldName=NOME_TED
			TextValues=8094 
			MaxSize/Length=36
		Field #5) FieldName=SHAPE_Leng
			DoubleValues=8094 
			DoubleRange 1566.303618 / 327044.574999
		Field #6) FieldName=SHAPE_Area
			DoubleValues=8094 
			DoubleRange 120613.967719 / 1287358944.600000
		Field #7) FieldName=Geometry
			BlobValues=8094 
			MaxSize/Length=222151

sample successfully terminated
\endverbatim
*/