We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Bringing language support to pygeoapi

Formale Metadaten

Titel
Bringing language support to pygeoapi
Serientitel
Anzahl der Teile
237
Autor
Mitwirkende
Lizenz
CC-Namensnennung 3.0 Unported:
Sie dürfen das Werk bzw. den Inhalt zu jedem legalen Zweck nutzen, verändern und in unveränderter oder veränderter Form vervielfältigen, verbreiten und öffentlich zugänglich machen, sofern Sie den Namen des Autors/Rechteinhabers in der von ihm festgelegten Weise nennen.
Identifikatoren
Herausgeber
Erscheinungsjahr
Sprache

Inhaltliche Metadaten

Fachgebiet
Genre
Abstract
The pygeoapi project easily allows developers to build their own data providers. This talk describes the creation process of a bilingual OGC API Records provider and how it led to a pull request that brought multilingual support to pygeoapi. The Canadian Geospatial Platform (CGP) has recently built an open REST API, known as the geoCore API, that offers users the ability to return metadata records both in French and English. As part of the OGC API Records code sprint, a pygeoapi data provider was developed that queries CGP's REST API. However, pygeoapi did not provide a mechanism yet that allowed us to query the CGP records in the desired language. Furthermore, pygeoapi's web frontend was available in a single language only and featured lots of hard-coded text strings. To solve this problem, a PR was created that made pygeoapi language aware and allowed users to request data in their language of choice using either a query parameter or an Accept-Language header. This talk will discuss the difficulties faced when adding language support and demonstrate the resulting pygeoapi provider and the technologies used to implement it.