Skip to main content

TerraLib: An Open Source GIS Library for Large-Scale Environmental and Socio-Economic Applications

  • Chapter
Open Source Approaches in Spatial Data Handling

Abstract

This chapter describes TerraLib, an open source GIS software library. The design goal for TerraLib is to support large-scale applications using socio-economic and environmental data. TerraLib supports coding of geographical applications using spatial databases, and stores data in different database management systems including MySQL and PostgreSQL. Its vector data model is upwards compliant with Open Geospatial Consortium (OGC) standards. It handles spatio-temporal data types (events, moving objects, cell spaces, modifiable objects) and allows spatial, temporal, and attribute queries on the database. TerraLib supports dynamic modeling in generalized cell spaces, has a direct runtime link with the R programming language for statistical analysis, and handles large image data sets. The library is developed in C++, and has programming interfaces in Java and Visual Basic. Using TerraLib, the Brazilian National Institute for Space Research (INPE) developed the TerraView open source GIS, which provides functions for data conversion, display, exploratory spatial data analysis, and spatial and non-spatial queries. Another noteworthy application is TerraAmazon, Brazil’s national database for monitoring deforestation in the Amazon rainforest, which manages more than 2 million complex polygons and 60 gigabytes of remote sensing images.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  • Aguiar A, Câmara G, Cartaxo R (2003) Modeling spatial relations by generalized proximity matrices. V Brazilian Symposium in Geoinformatics – GeoInfo 2003, Campos do Jordão, SP, Brazil

    Google Scholar 

  • Aguiar APD (2006) Modeling Land Use Change in the Brazilian Amazon: Exploring Intra-Regional Heterogeneity. PhD Thesis, Remote Sensing Program. Sao Jose dos Campos, INPE

    Google Scholar 

  • Aksoy S, Koperski K, Tusk C, Marchisio G (2004) Interactive training of advanced classifiers for mining remote sensing image archives. ACM International Conference on Knowledge Discovery and Data Mining, Seattle, WA, ACM

    Google Scholar 

  • Alexandrescu A (2001) Modern C++ design: Generic programming and design patterns applied. Addison-Wesley, Reading

    Google Scholar 

  • Allen JF (1983) Maintaining knowledge about temporal intervals. Commun ACM 26:832–843

    Article  Google Scholar 

  • Almeida CM, Batty M, Monteiro AMV, Câmara G, Soares-Filho BS, Cerqueira GC, Pennachin CL (2003) Stochastic cellular automata modeling of urban land use dynamics: empirical development and estimation. Comput Environ Urban Syst 27:481–509

    Article  Google Scholar 

  • Anselin L (1988) Spatial econometrics: methods and models. Kluwer, Dordrecht

    Google Scholar 

  • Anselin L (1989) What’s special about spatial data: Alternative perspectives on spatial data analysis. Santa Barbara, CA, NCGIA Report 89-4

    Google Scholar 

  • Anselin L (1995) Local indicators of spatial association – LISA. Geogr Anal 27:91–115

    Google Scholar 

  • Anselin L, Bao S (1997) Exploratory spatial data analysis linking Spacestat and ArcView. In M Fischer and A Getis (eds.) Recent Developments in Spatial Analysis, Springer Verlag, Berlin.

    Google Scholar 

  • Anselin L (1999) Interactive techniques and exploratory spatial data analysis. In: Longley P, Goodchild M, Maguire D, Rhind D (eds) Geographical Information Systems: principles, techniques, management and applications. Geoinformation International, Cambridge

    Google Scholar 

  • Anselin L, Syabri I, Kho Y (2006) GeoDa: An introduction to spatial data analysis. Geogr Anal 38:5–22

    Article  Google Scholar 

  • Andrade PR, Ribeiro PJ (2005) A process and environment for embedding the R Software into TerraLib. VII Brazilian Symposium on Geoinformatics (GeoInfo 2005), Campos do Jordao, Brazil, INPE/SBC

    Google Scholar 

  • Arthur B (1994) Increasing returns and path dependence in the economy. The University of Michigan Press, Ann Arbor, MI

    Google Scholar 

  • Assunção R, Neves M, Camara G, Freitas CDC (2006) Efficient regionalisation techniques for socio-economic geographical units using minimum spanning trees. Int J Geogr Inf Sci 20:797–812

    Article  Google Scholar 

  • Austern M (1998) Generic programming and the STL: Using and extending the C++ standard template library. Addison-Wesley, Reading, MA

    Google Scholar 

  • Batory D, Singhal V, Sirkin M, Thomas J (1993) Scalable software libraries. SIGSOFT Softw. Eng. Notes 18:191–199

    Article  Google Scholar 

  • Batty M (2000) GeoComputation using cellular automata. In: Openshaw S, Abrahart RJ (eds) GeoComputation, Taylor & Francis, London, 95–126

    Google Scholar 

  • Blanchette J, Summerfield M (2006) C++ GUI programming with Qt 4. Prentice Hall, Indianapolis, Indiana

    Google Scholar 

  • Blaschke T, Hay G (2001) Object-oriented image analysis and scale-space: theory and methods for modeling and evaluating multiscale landscape structure. Int Arch Photogramm Remote Sens 34:22–29

    Google Scholar 

  • Bivand R, Neteler M (2000) Open source geocomputation: using the R data analysis language integrated with GRASS GIS and PostgreSQL data base systems. 5th International Conference on GeoComputation, Greenwich, UK

    Google Scholar 

  • Burrough P (1998) Dynamic modelling and geocomputation. In: Longley P, Brooks S, McDonnell R, Macmillan B (eds) Geocomputation: A Primer. John Wiley, New York

    Google Scholar 

  • Câmara G, Souza R, Freitas U, Garrido J (1996) SPRING: Integrating remote sensing and GIS with object-oriented data modelling. Comput Graph 15:13–22

    Google Scholar 

  • Câmara G, Souza RCM, Pedrosa BM, Vinhas L, Monteiro AMV, Paiva JAC, Carvalho MT, Raoult B (2001) Design patterns in GIS development: the TerraLib experience. III Simpósio Brasileiro de GeoInformatica, Rio de Janeiro, RJ

    Google Scholar 

  • Carneiro T (2006) Nested-CA: a foundation for multiscale modeling of land use and land change. Computer Science Department. Sao Jose dos Campos, INPE. Doctorate Thesis in Computer Science

    Google Scholar 

  • Chang SK, Yan CW, Dimitroff D, Arndt T (1988) An intelligent image database system. IEEE Trans Software Eng 14:681–688

    Article  Google Scholar 

  • Couclelis H (1997) From cellular automata to urban models: New principles for model development and implementation. Environ Plann B 24:165–174

    Article  Google Scholar 

  • Daratech (2006) GIS markets and opportunities 2006 survey. Cambridge, MA, Daratech Inc

    Google Scholar 

  • DeWitt D, Kabra N, Luo J, Patel J, Yu J-B (1994) Client-server paradise. VLDB Conference, Santiago, Chile

    Google Scholar 

  • Diggle P (2003) Statistical analysis of spatial point patterns. 2nd edn Edward Arnold, London

    Google Scholar 

  • Diggle P, Ribeiro PJ (2007) Model-based geostatistics. Springer, Heidelberg

    Google Scholar 

  • Dutton G (ed) (1978) First international advanced study symposium on topological data structures for geographic information systems. Addison-Wesley, Reading, MA

    Google Scholar 

  • Elliott J, Eckstein R, Loy M, Wood D, Cole B (2002) Java swing. O’Reilly Press, Sebastopol, CA

    Google Scholar 

  • Erwig M, Schneider M (2002) Spatio-temporal predicates. IEEE Trans Knowl Data Eng 14:881–901

    Article  Google Scholar 

  • Feitosa F, Camara G, Monteiro AM, Koschitzki T, Silva MS (2007) Global and local spatial indices of urban segregation. Int J Geogr Inf Sci 21:299–323

    Article  Google Scholar 

  • Ferreira KR, Queiroz G, Paiva JA, Souza RC, Câmara G (2002) A software architecture for building spatial databases with object-relational DBMS. XVII Brazilian Symposium on Databases, Gramado, RS

    Google Scholar 

  • Ferreira KR, Vinhas L, Queiroz GR, Câmara G, Souza RCM (2005) The architecture of a flexible querier for spatio-temporal databases. VII Brazilian Symposium in Geoinformatics, Campos do Jordao, Brazil

    Google Scholar 

  • Fonseca F, Egenhofer M, Agouris P, Camara G (2002) Using ontologies for integrated geographic information systems. Trans GIS 6:231–257

    Article  Google Scholar 

  • Fotheringham AS, Brunsdon C, Charlton M (2002) Geographically weighted regression: The analysis of spatially varying relationships. Wiley, Chichester

    Google Scholar 

  • Fowler GS, Korn DG, Vo K-P (1995) Principles for writing reusable libraries. Proceedings of the 1995 Symposium on Software reusability. Seattle, Washington, United States, ACM Press

    Google Scholar 

  • Galton A (2004) Fields and objects in space, time, and space-time. Spat Cogn Comput 4:39–68

    Article  Google Scholar 

  • Gamma E, Helm R, Johnson R, Vlissides J (1995) Design patterns: Elements of reusable object-oriented software. Addison-Wesley, Reading, MA

    Google Scholar 

  • Goodchild ME (2003) Geographic information science and systems for environmental management. Ann Rev Environ Resour 28:493–519

    Article  Google Scholar 

  • Goovaerts P (1997) Geostatistics for natural resources evaluation. Oxford Univ Press, New York

    Google Scholar 

  • Grenon P, Smith B (2003) SNAP and SPAN: Towards dynamic spatial ontology. Spat Cogn Comput 4:69–104

    Article  Google Scholar 

  • Güting RH, Schneider M (2005) Moving objects databases. Morgan Kaufmann, New York

    Google Scholar 

  • Henzinger TA (1996) The theory of hybrid automata. Proceedings of the 11th Symposium on Logic in Computer Science (LICS’96), IEEE

    Google Scholar 

  • Hornsby K, Egenhofer M (2000) Identity-based change: A foundation for spatio-temporal knowledge representation. Int J Geogr Inf Sci 14:207–224

    Article  Google Scholar 

  • Ihaka R, Gentleman R (1996) R: A language for data analysis and graphics. J Comput Graph Stat 5:299–314

    Article  Google Scholar 

  • Krasner GE, Pope ST (1988) A cookbook for using the model-view controller user interface paradigm in Smalltalk-80. J Object-Oriented Program 1:26–49

    Google Scholar 

  • Krueger CW (1992) Software reuse. ACM Comput Surv 24:131–183

    Article  Google Scholar 

  • Martin D (2003) Extending the automated zoning procedure to reconcile incompatible zoning systems. Int J Geogr Inf Sci 17:181–196

    Article  Google Scholar 

  • Medak D (2001) Lifestyles. In: Frank AU, Raper J, Cheylan J-P (eds) Life and Motion of Socio-Economic Units. ESF Series. Taylor & Francis, London

    Google Scholar 

  • Meinel G, Neubert M (2004) A comparison of segmentation programs for high resolution remote sensing data. Int Arch Photogramm Remote Sens XXXV:1097–1105

    Google Scholar 

  • Meyer B (1990) Lessons from the design of the Eiffel libraries. Commun ACM 33:68–88

    Article  Google Scholar 

  • Mockus A, Fielding R, Herbsleb J (2002) Two case studies of open source software development: Apache and Mozilla. ACM Transactions on Software Engineering and Methodology 11

    Google Scholar 

  • Navulur K (2006) Multispectral image analysis using the object-oriented paradigm. CRC Press, Boca Raton, CA

    Google Scholar 

  • Openshaw S, Alvanides S (2001) Designing zoning systems for representation of socio-economic data. In: Frank A, Raper J, Cheylan J (eds) Time and Motion of Socio-Economic Units, Taylor and Francis, London

    Google Scholar 

  • Parks BO (1993) The need for integration. In: Goodchild MJ, Parks BO, Steyaert LT (eds) Environmental modelling with GIS. OUP, Oxford, 31–34

    Google Scholar 

  • Pebesma E, Bivand R (2005) Classes and methods for spatial data in R. R News 5:9–13

    Google Scholar 

  • Pedrosa B, Câmara G, Fonseca F, Souza RCM (2002) TerraML – A cell-based modeling language for an open-source GIS library. II International Conference on Geographical Information Science (GIScience 2002), Boulder, CO, 2002

    Google Scholar 

  • Queiroz GR (2003) Algoritmos Geométricos para Bancos de Dados Geográficos: Da Teoria à Prática na TerraLib (Geometric Algorithms for Spatial Databases: From Theory to Practice in TerraLib). Computer Science. São José dos Campos, INPE. MsC

    Google Scholar 

  • Rodrigues VL, Andrade MVA, Queiroz GR, Magalhães M (2006) An efficient map overlay algorithm for TerraLib. VIII Brazilian Symposium on GeoInformatics, GeoInfo2006, Campos do Jordão, SP, Brazil, INPE

    Google Scholar 

  • Rodrigues VL, Cavalier AP, Andrade MVA, Queiroz GR (2005) Exact algorithms for map manipulation in TerraLib. VII Brazilian Symposium on GeoInformatics, GeoInfo2005, Campos do Jordão, SP, Brazil, INPE

    Google Scholar 

  • Rowlingson B, Diggle P (1993) Splancs: spatial point pattern analysis code in S-Plus. Comput Geosci 19:627–655

    Google Scholar 

  • Silva MPS, Camara G, Souza RCM, Valeriano D, Escada MIS (2005) Mining patterns of change in remote sensing image databases. The Fifth IEEE International Conference on Data Mining, New Orleans, Louisiana, USA

    Google Scholar 

  • Sistla AP, Wolfson O, Chamberlain S, Dao S (1997) Modeling and querying moving objects. Proceedings of the Thirteenth International Conference on Data Engineering 422–432

    Google Scholar 

  • Veldkamp A, Fresco L (1996) CLUE: A conceptual model to study the conversion of land use and its effects. Ecol Model 85:253–270

    Article  Google Scholar 

  • Vinhas L, Ferreira KR, Ribeiro G (2007) TerraLib programming tutorial. São José dos Campos, Brasil, INPE (avaliable on http://www.terralib.org)

    Google Scholar 

  • Vinhas L, Queiroz GR, Ferreira K, Câmara G, Paiva JA (2002) Generic programming applied to GIS algorithms. IV Brazilian Symposium on Geoinformatics, Caxambu, Brazil

    Google Scholar 

  • Vinhas L, Souza RCM, Câmara G (2003) Image data handling in spatial databases. V Brazilian Symposium on Geoinformatics, Campos do Jordão, Brazil

    Google Scholar 

  • Warmerdam F (2007) Shapefile C Library V1.2, http://shapelib.maptools.org/Last accessed July 28th, 2008

    Google Scholar 

  • Weber S (2004) The success of open source. Harvard University Press, Cambridge, 75

    Google Scholar 

  • Worboys M (2005) Event-oriented approaches to geographic phenomena. Int J of Geogr Inf Syst 19:1–28

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Câmara, G. et al. (2008). TerraLib: An Open Source GIS Library for Large-Scale Environmental and Socio-Economic Applications. In: Hall, G.B., Leahy, M.G. (eds) Open Source Approaches in Spatial Data Handling. Advances in Geographic Information Science, vol 2. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-74831-1_12

Download citation

Publish with us

Policies and ethics