ISPRS Int. J. Geo-Inf. 2013, 2(1), 201-219; doi:10.3390/ijgi2010201
Article

Pygrass: An Object Oriented Python Application Programming Interface (API) for Geographic Resources Analysis Support System (GRASS) Geographic Information System (GIS)

1 Department of Civil, Environmental and Mechanical Engineering, University of Trento, via Mesiano 77, Trento 38123, Italy 2 Thünen Institute of Climate-Smart Agriculture, Bundesallee 50, Braunschweig 38116, Germany
* Author to whom correspondence should be addressed.
Received: 1 January 2013; in revised form: 21 January 2013 / Accepted: 21 February 2013 / Published: 11 March 2013
(This article belongs to the Special Issue Geospatial Monitoring and Modelling of Environmental Change)
PDF Full-text Download PDF Full-Text [1269 KB, uploaded 11 March 2013 15:23 CET]
Abstract: PyGRASS is an object-oriented Python Application Programming Interface (API) for Geographic Resources Analysis Support System (GRASS) Geographic Information System (GIS), a powerful open source GIS widely used in academia, commercial settings and governmental agencies. We present the architecture of the PyGRASS library, covering interfaces to GRASS modules, vector and raster data, with a focus on the new capabilities that it provides to GRASS users and developers. Our design concept of the module interface allows the direct linking of inputs and outputs of GRASS modules to create process chains, including compatibility checks, process control and error handling. The module interface was designed to be easily extended to work with remote processing services (Web Processing Service (WPS), Web Service Definition Language (WSDL)/Simple Object Access Protocol (SOAP)). The new object-oriented Python programming API introduces an abstract layer that opens the possibility to use and access transparently the efficient raster and vector functions of GRASS that are implemented in C. The design goal was to provide an easy to use, but powerful, Python interface for users and developers who are not familiar with the programming language C and with the GRASS C-API. We demonstrate the capabilities, scalability and performance of PyGRASS with several dedicated tests and benchmarks. We compare and discuss the results of the benchmarks with dedicated C implementations.
Keywords: GRASS; python; GIS processing

Article Statistics

Load and display the download statistics.

Citations to this Article

Cite This Article

MDPI and ACS Style

Zambelli, P.; Gebbert, S.; Ciolli, M. Pygrass: An Object Oriented Python Application Programming Interface (API) for Geographic Resources Analysis Support System (GRASS) Geographic Information System (GIS). ISPRS Int. J. Geo-Inf. 2013, 2, 201-219.

AMA Style

Zambelli P, Gebbert S, Ciolli M. Pygrass: An Object Oriented Python Application Programming Interface (API) for Geographic Resources Analysis Support System (GRASS) Geographic Information System (GIS). ISPRS International Journal of Geo-Information. 2013; 2(1):201-219.

Chicago/Turabian Style

Zambelli, Pietro; Gebbert, Sören; Ciolli, Marco. 2013. "Pygrass: An Object Oriented Python Application Programming Interface (API) for Geographic Resources Analysis Support System (GRASS) Geographic Information System (GIS)." ISPRS Int. J. Geo-Inf. 2, no. 1: 201-219.

ISPRS Int. J. Geo-Inf. EISSN 2220-9964 Published by MDPI AG, Basel, Switzerland RSS E-Mail Table of Contents Alert