A comparison of three Geospatial population density grids for Kraków, Poland.

Kraków city scene with three story buildings, tram lines and a pedestrians.
Kraków city scene with three story buildings, tram lines and a pedestrians.
Kraków Photo by Ostap Senyuk on Unsplash

In this post, I’ll walk you through 3 different Population Density datasets.


Photo by Jakob Owens on Unsplash

Quicktime is a great tool to make screen recordings on a Mac, for example for a product demo.

The problem is that Quicktime creates files in the MOV format, which take up a lot of disk space (500Mb for 5 minutes of video).

Compress

We’re going to convert that big file to .mp4 which will compress it to a more manageable size (64Mb for 5 minutes).

We’ll use ffmpeg, a command line tool, to do that.

Install ffmpeg

First, to install ffmpeg, open Terminal and run this command.

brew install ffmpeg

(Requires homebrew, which by the way is a great way to install…


Do not pip install gdal, do not install GDAL inside a virtual-env. Instead, use Conda.

These are my instructions on how to install GDAL using Conda on a Mac. Before we dive in, let me explain why I am writing this guide. GDAL stands for the “Geospatial Data Abstraction Libraryand it is released by the Open Source Geospatial Foundation. For Python, the GDAL package is released with a package called osgeo as well. And as it happens, I need both for a project I’m doing. And I want them neatly wrapped up inside a virtual environment.

One Does Not Simply pip install gdal Source

I started by trying to use pip and virtual-env. This obscure how-to (and first post on Medium!) comes…

Filip Wodnicki

R&D Software Engineer. Machine learning, data science, geospatial analytics. 🌍 github.com/filipwodnicki

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store