Brief tutorial to introduce PostGIS as a tool for geographic data analysis developed with support from SmartMetropolis. We are open to study and collaborate in new ways to improve these kind of analysis or to mining other datasets. Just contact the contributors.