geographic data

Understanding the World

Recent Posts

More Posts

The first post of this year 2020, I will dedicate to a question that I was recently asked. The question was how to calculate the shortest distance between different points and how to know which is the closest point. When we work with spatial data in R, currently the easiest thing is to use the sf package in combination with the tidyverse collection of packages. We also use the units package which is very useful for working with units of measurement.


The General Directorate for the Cadastre of Spain has spatial information of the all buildings except for the Basque Country and Navarra. This data set is part of the implementation of INSPIRE, the Space Information Infrastructure in Europe. More information can be found here. We will use the links (urls) in ATOM format, which is an RSS type for web feeds, allowing us to obtain the download links for each municipality.



More Publications

(2020). Meteorological drought lacunarity around the world and its classification. In Earth Syst. Sci. Data Discuss..

Code 10.5194/essd-2019-115

(2020). Wildfire burnt area patterns and trends in Western Mediterranean Europe via the application of a concentration index. In Land Degradation and Development, 31:311-324.




[2019-2022] AVODIS - Understanding and building on the social context of rural Portugal to prevent wildfire disasters. (University of Porto)

[2020-2021] Short-term effect of heat and cold on the use of respiratory medications. An ecological study of time series. (DRO-ANT-2020-01, AEMPS) (Universidad de Santiago de Compostela)

[2018-2020] CLICES- CLImate of the last CEntury in Spanish mainland. (University of Barcelona, University of Zaragoza, CSIC)

[2017-2020] ELECTRONET - Atmospheric Electricity Network: coupling with the Earth System, climate and biological systems. info (Cost Action 15211)

[2016-2019] FIREXTR - Prevent and prepare society for extreme fire events: the challenge of seeing the forest and not just the trees. info (University of Porto)

[2018-2020] Prevalence of consumption of alcohol, cannabis and other drugs in students between 14 and 18 years of age in Lugo. (University of Santiago de Compostela)

[2017-2019] MEDEA3 - Study of socioeconomic and environmental inequalities in the geographical distribution of mortality in large cities (1996-2015). info (Multicenter Research Project)

[2017-2019] Intensive alcohol consumption: characterization of a new trajectory towards alcoholism. (University of Santiago de Compostela)

[2014-2016] Biometeorological approach to study the spatial variability of influenza in the Iberian Peninsula. (University of Cantabria)


  • 2019

Introduction in Geographic Information Systems and Cartography with R [15h] (Summer School, Universitat Politècnica de Catalunya)

Introduction in Geographic Information Systems and Cartography with R, II Edition [15h] (Summer School, University of Santiago de Compostela)

Introduction in Geographic Information Systems with R [30h] (University of Porto)

  • 2018

Introduction in Geographic Information Systems and Cartography with R, I Edition [15h] (Summer School, University of Santiago de Compostela)

  • 2014

Practical applications of R with climatological data [25h] (University of Barcelona)

Climatic applications of Geographic Information Systems [12h] (University of Santiago de Compostela)

  • 2013

Introduction to Statistics with R [20h] (University of Santiago de Compostela)

Introduction in data management, manipulation, visualization and statistics with R [40h] (University of Barcelona)