File: Readme

package info (click to toggle)
libterralib 4.3.0%2Bdfsg.2-14
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 61,564 kB
  • sloc: cpp: 225,052; ansic: 31,562; makefile: 807; sh: 80; xml: 37
file content (143 lines) | stat: -rw-r--r-- 5,529 bytes parent folder | download | duplicates (8)
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
TerraLib Examples
=================

Each one of the items below corresponds to a directory that contains the  source files that
implement some operation using TerraLib. 

The data used in the examples can be found in the "data" directory.

Each directory also has some compilation/linking files. 

For Windows users these files are Microsoft Visual .NET 2003 solution and project files (*.sln, *.vcproj).
The executables are generated in the directory Release/Debug

For Linux users there are Makefiles and .pro files used by qmake. The executables are generated in each directory 
that contains the example.

Some of the examples depend on the execution of others. So we recommend that they
should be run in the order proposed bellow.

1. createDatabase
Illustrates how to create a TerraLib database, creating all of the tables that
make up the TerraLib data model.

2. createLayer
Illustrates how to create a layer with vector data in memory and save it in a
TerraLib database already created.

3. createTable
Illustrates how to create an attribute table in memory and save it in a TerraLib
database already created.

4. importMIDMIF
Illustrates how to import a vector data file in the MapInfo format(MID/MIF)for a
TerraLib database already created.
Source Data: Distritos.mid, Distritos.mif

5. importShape
Illustrates how to import a vector data file in the Shapefile format for a TerraLib
database already created.
Source Data: EstadosBrasil.shp, EstadosBrasil.shx, EstadosBrasil.dbf

6. importDBF
Illustrates how to import an attribute table in the DBF format as an external table
for a TerraLib database already created.
Source Data: SOCEC.dbf

7. importJPEG
Illustrates how to import an image in the JPEG format for a TerraLib database already
created.
Source Data: sampa.jpg

8. copyLayer
Illustrates how to copy a layer of a TerraLib database changing the projection of its
geometries.
It depends on the layer created in the item 4 (importMIDMIF).

9. importGeoTab
Illustrates how to import a vector data file in the SPRING format for a TerraLib
database already created.
Source Data: Cadastro_Escolas.geo, Cadastro_Escolas.tab

10. convertCoordinates
Illustrates how to use the TeProjection class to make the conversion between two
different projections.

11. databaseQuery
It illustrates how to use the TeDatabase class to submit queries on geometries tables
of a TerraLib database.
It depends on the layer created in the item 4 (importMIDMIF).

12. databaseSQLQuery
Illustrates how to query geometries tables through explicit SQL queries on a TerraLib
database.
It depends on the layer created in the item 4 (importMIDMIF).

13. spatialQuery
Illustrates how to make spatial queries on the layers of a TerraLib database.
Imports the shapefiles Mada_Distritos_SP, Mapa_Drenagem_SP and Mapa_Industrias_SP.

14. addGeomRepresentation
Illustrates how to add a point representation (centroids) to a layer with polygon
representation.
It depends on the layer created in the item 4 (importMIDMIF).

15. createTheme
Illustrates how to create views and themes from layers of a Terralib database,
without restriction and with restriction on its attributes.
It depends on the layer created in the item 4 (importMIDMIF).

16. themeGrouping
Illustrates how to create a grouping on a theme created in a TerraLib database.
It depends on the theme created in the item 15 (createTheme).

17. createSTElementSet
Illustrates how to create a Spatial Temporal Element Set, out of a theme created
in a TerraLib database.
It depends on the theme created in the item 15 (createTheme).

18. mosaicTIFFImages
Illustrates how to import two TIFF files to the same layer in a TerraLib database,
generating a mosaic of images.
It depends on the files nat1.tif and nat2.tif.

19. importCSV
Illustrates how to import a MIF / MIF file to a new layer in a TerraLib database
and how to import a second attribute table from a CSV file.
It depends on the files BairrosRecife.MIF BairrosRecife.MID and BairrosRecife2.csv

20. importGridData
Illustrates how to import grid data in raw format for a TerraLib database already
created.
Source Data: elevation.raw

21. rasterSlicing
Illustrates how to group the values of a raster data in a set of classes.
It depends on the layer created in example 20 (importGridData).

22. querierFromTheme
Illustrates how to use a querier from theme.
It depends on the theme created in the item 15 (createTheme).

23.proxMatrixAndSpatialStatistics
Illustrates how to build a proximity matrix and how to calculate some spatial analysis index.
It depends on the layer created in the item 4 (importMIDMIF)

24. spatialQueryAndBuffer
Illustrates how to do some spatial queries involving objects with points, lines and polygon geometries,
and to generate a buffer operation.
It depends on the layers create in the item 13 (spatialQuery).

25. querierFromLayer
Illustrates how to use a querier from layer.
Requires the layer CadastroEscolas created in the item 9 (importGeoTab).

26. createSTElementSetFromLayer
Illustrates how to create a new Spatial Temporal Element Set (STElementSet) from a layer. 
It uses the same input files used in the item 5 (importShape).
 
27. image_processing
This directory contains a set of testing routines for image processing
algorithms from TerraLib - LibPDI ( image_processing ).
This routines can be used as examples for using the tested classes.