ArticleslgStudy

computer science

TerraLib

TerraLib is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand TerraLib rather than just read about it. In short: TerraLib is an open-source geographic information system (GIS) software library. It extends object-relational database management systems (DBMS) to handle spatiotemporal data types.

TerraLib — main illustration
TerraLib — illustration

Key takeaways

  • TerraLib belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect TerraLib to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of TerraLib from memory before moving on to harder problems.

Reference excerpt

TerraLib is an open-source geographic information system (GIS) software library. It extends object-relational database management systems (DBMS) to handle spatiotemporal data types. Using TerraLib, the TerraView open-source GIS was developed, which provides functions for data conversion, visualization, exploratory spatial data analysis, spatial statistical modelling and spatial and non-spatial queries. Another application is TerraAmazon, Brazil's national database for monitoring deforestation in the Amazon Rainforest. It handles more than 2 million complex polygons and 60 GB of remote sensing images.

Design and development The library supports different DBMS, including MySQL, PostgreSQL, and Oracle. Its vector data model is upwards compliant with Open Geospatial Consortium (OGC) standards. TerraLib supports the development of geographical applications using spatial databases. The design goal for TerraLib is to support large-scale applications using socioeconomic and environmental data. It handles spatiotemporal data types (events, moving objects, cell spaces, modifiable objects) and allows spatial, temporal and attribute queries on the database. TerraLib supports dynamic modelling in generalized cell spaces and has a dynamic link with the R programming language for statistical analysis. It handles large image data sets. TerraLib is implemented as a library of C++ classes and functions, written in ANSI-C++, and has programming interfaces in Java and Visual Basic. TerraLib has a core development team based in Brazil. The team includes the Image Processing Division of Brazil's National Institute for Space Research (INPE), and the Computer Graphics Technology Group of the Pontifical Catholic University of Rio de Janeiro (PUC-Rio). TerraLib is licensed as open-source according to the GNU Lesser General Public License (LGPL).

TerraView TerraView is a GIS application built on the TerraLib GIS library. TerraView handles vector data (polygons, lines, points) and raster data (grids and images), both of them stored in a relational or geo-relational database, including ACCESS, PostgreSQL, MySQL and Oracle Spatial. TerraView has a visualization interface that allows attribute and spatial queries on object in geographical database. The interface allows different views on the database, producing thematic maps with different types of legends. TerraView is able to manage raster data in geographical database and allows the visualization and manipulation of raster data together with vector data. Raster data can be shared in different formats such as GeoTIFF, TIFF, JPEG, RAW, ASCII-Grid or ASCIISpring. TerraView supports vector operations including intersection and buffer maps. It also has statistical analysis functions: local and global autocorrelation indexes, semivariograms, and regionalisation. TerraView is free software distributed under the GPL license and is available on the Internet.

TerraAmazon

TerraAmazon is a free GIS software developed by Brazil´s National Institute for Space Research (INPE) and FUNCATE. TerraAmazon is a tool designed to be a multi-user editor of geographic vectorial data. It was developed to improve the corporate production of geographic data in order to provide accurate measurement of deforestation, forest degradation, land use and land cover change and similar applications. The data accessed by TerraAmazon is stored in a TerraLib model database and is worked within an intranet client–server environment, typically using PostgreSQL. It can operate both online and offline through the use of an open-source library. TerraAmazon was first developed by INPE and FUNCATE in early 2005. It was initially applied to PRODES project to monitor Brazil's Amazon rainforest. Due to its multi-user characteristic, it quickly conquered space, being used in other projects, such as DETER, DEGRAD and the Brazilian Second National Communication to the UNFCCC, among other relevant projects. TerraAmazon was made available to the public only in 2010. With the creation of INPE's Amazon Regional Center (CRA), located in Belém (Brazil), TerraAmazon reached international space, having regular trainings being held in CRA's facilities for both national and international specialists. TerraAmazon accepts vector files only in shapefile (.shp) format. Raster files are accepted in the following formats: geotiff files (.tiff), jpg files (.jpg), Spring Grid Files (.spr), binary RAW files (.raw) and ESRI ASCII Grid Files (.txt). Currently there are three plugins that available for TerraAmazon. They are also developed by INPE and FUNCATE and are provided within the installer of the system.

Image Processing Plugin (DIP Plugin): contains tools to register and orthorectificate images, run segmentations, linear mixture models, etc. Cloud Detection: contains one single tool for cloud detection. TerraPrint (Beta version): contains tools to produce layouts with the data

See also

SPRING

References

External links Official website

Illustrations

TerraLib illustration
TerraLib illustration

Worked examples

Example 1 — a first encounter with TerraLib

Start with the simplest possible case. Write down what TerraLib claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to TerraLib before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about TerraLib ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of TerraLib

In research
TerraLib appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses TerraLib in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
TerraLib is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free GIS software, Free computer libraries, so understanding it makes those chapters shorter.
In everyday life
Look for TerraLib outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “TerraLib” →

How to study TerraLib in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what TerraLib means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain TerraLib out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is TerraLib in simple terms?

TerraLib is an open-source geographic information system (GIS) software library. It extends object-relational database management systems (DBMS) to handle spatiotemporal data types.

Why does TerraLib matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study TerraLib?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on TerraLib.

Tags

  • Free GIS software
  • Free computer libraries

Keep exploring