Categories
All Animations Maps OSGEO PostGIS QGIS Tutorials

My Strava Activities from the Same Place at the Same Time Animated

All of my activities from Strava if they started from the same place at the same time.

Strava Activites Animated

Longest activity time wise is an 11 hour walk.

Distance wise is a 200km helicopter ride.

Includes a couple of 100km cycles. But mainly walks on the beach, 5 km runs, and 10km cycles.

You can see the patterns from a number of locations that I have lived in.

How to

  1. Download your activities from Strava.
  2. Parse them into a PostgreSQL/PostGIS database with Python: https://github.com/HeikkiVesanto/StravaGarminParser/blob/master/parser_points_to_db.py
  3. Process the points to time series in the database: https://gist.github.com/HeikkiVesanto/3fbd55cda45394d069773a34ea244e4b
  4. Create animation in QGIS using the atlas generator.
Categories
All Animations Featured Ireland

Luas Map Compared to Real Geography

Inspired by /u/a_wandering_chemist on Reddit.

This is a look at how the map of the Dublin tram network, the Luas (Irish for speed), compares to the actual geographic footprint.

For a simpler view:

The processing of the transition is done in PostgreSQL with PostGIS, with the final animation in QGIS.

Categories
All Animations Scotland

Scotland’s Cartographic Outline

This is a topic I have covered in the past as well: Scotland’s Changing Outline

But the 1654 Blaeu Atlas of Scotland was an influential cartographic masterpiece. The National Library of Scotland have covered it’s publication history very well: The history behind the publication of the Blaeu Atlas of Scotland.

When the sixth volume of Joannis Blaeu’s Atlas Novus was released in 1655, the maps of Scotland formed one eighth of the total maps in his world atlas. Making Scotland one of the best mapped countries of the seventeenth-century world.

The animations include the following maps from the National Library of Scotland:

Blaeu Compared to Modern Day Outline from OpenStreetMap

Cycling Through the Maps by Publication Date

Blaeu – 1654
Sanson – 1665
Morden – 1687
Moll – 1714
Elphinstone – 1745
Dorret – 1751
Modern
Blaeu – 1654

Comparison to Modern Day In Between

Blaeu – 1654
Modern
Sanson – 1665
Modern
Morden – 1687
Modern
Moll – 1714
Modern
Elphinstone – 1745
Modern
Dorret – 1751
Modern
Blaeu – 1654

Comparison to Blaeu

Blaeu – 1654
Sanson – 1665
Blaeu – 1654
Morden – 1687
Blaeu – 1654
Moll – 1714
Blaeu – 1654
Elphinstone – 1745
Blaeu – 1654
Dorret – 1751
Blaeu – 1654

Overlaid

From: Scotland’s Changing Outline

Read about the maps here: Historic Maps of Scotland from Blaeu to Dorret (1600-1700)

Merch

There is also a t-shirt with all of the outlines overlaid, if you are a fan of Scottish cartographic history.

Categories
All Animations OpenStreetMap

Made With OpenStreetMap

Inspired by the “made with QGIS” logos by Klas Karlsson.

I made a few for OpenStreeMap ones. Well, I added some text to existing logos:

The simple OSM logo by ScubbX.

The main OSM logo by Ken Vermette.

Both logos are trademarked by the OSMF, but these are unofficial. For the full attribution and copyright guidelines visit the OpenStreetMap website.

Color:

License: CC BY-SA 3.0 Ken Vermette

PNG:

SVG:

Black:

License: CC BY-SA 2.0 ScubbX

PNG, clear background:

PNG, white background:

SVG:

White:

License: CC BY-SA 2.0 ScubbX

Example:

All buildings added to OSM in Ireland in 2021

Categories
All

Featured Posts

Categories
All Ireland Maps OSGEO QGIS

Commuting in Ireland Mapped

As part of the 2016 Irish Census the Central Statistics Office captured data on communing to work and school/college (POWSCAR). The raw data is available for research purposes, but the anonymised data is available to all. This data is aggregated to an Electoral Division (ED) level.

There are 3440 EDs in Ireland, 3409 after amalgamating low population ones. These are legally defined administrative areas. Commutes into Northern Ireland are also captured, but only as one destination (Northern Ireland).

Overall the data consists of a CSV file with 291893 rows of commuting data.

Maps inspired by Dónal Casey.

Ireland

Mapping Irish commuting data at a country level allows us to see the patterns of commuting.

Purple

The map styles can easily be achieved in QGIS. They utilise blending modes and variable levels of symbology based on the commuter counts.

A great guide can be found on this from the Ordnance Survey. Carto tips: Using blend modes and opacity levels

I also talk about this at my FOSS4GUK 2019 talk: YouTube – IE
FOSS4GUK LIVE – Main Room / Biosphere Green – DAY 2

The purple map above use color: #6450d7 – Addition blend – 100% opacity – Line thickness: if (“count”>1000, 1000, “count”)/1000

Gold:

Gold

Color: #e5b636 – Addition blend – 100% opacity

This map was featured in the 2020 GeoHipster calendar.

Black and White:

9 cities

Nine largest cities:

9 cities

Individual Cities

I have also created individual maps for all settlements in Ireland. This should give a better local picture of the commuter flows.

Settlements were linked to EDs based on a few characteristics:

  • Settlement intersects ED AND either
  • The original point on surface is within 100 meters of a settlement OR
  • 75% of the settlement is in the ED OR
  • 90% of the ED is in the settlement

List of all settlements.

Examples:

Letterkenny:

Letterkenny

Galway:

Galway

Castleisland:

Castleisland

Tramore:

Tramore
Categories
All Featured Ireland Maps OSGEO PostGIS QGIS

Dublin Neighborhoods Mapped

Neighborhood boundaries are a fascinating topic. Where do people see their neighborhood extending to, how clear are those boundaries, and how do they shift with time.

This is a topic that has been tackled a number of times around the world, and with different types of locations (like cities). With the general public asked to draw their own neighborhood, or the ones they are familiar with, on a map. But there are challenges.

Sometimes the results are successful, like in Boston. Boston only has around 60 neighborhoods, which are relatively clearly defined based on the mapping results. And Bostonography clearly had a great readership, with over 2300 responses.

Older cities, like Glasgow are much more complex. In 2016 I did a similar survey, and from 367 responses I received 241 unique neighborhoods. You would need a much bigger set of responses to come to any real conclusions. But I still mapped the results for the West End of Glasgow, where most neighborhoods had multiple responses: Glasgow Regions Mapped

The challenges for Dublin neighborhoods is similar to Glasgow, although not as complex. But anything worth doing would require a lot of responses.

Luckily the Dublin InQuirer decided to run a similar survey, polling their subscribers for responses. The number of submissions was good, not quite beating the Boston yet, but getting close. 2200 responses and 133 unique neighborhoods mapped. They also did a few great things. One was making the data available to download. This meant that anyone could map the results, which is great. Additionally they are reaching out to areas with less responses, which is a great effort on their part.

Dublin InQuirer – Will You Draw Your Dublin Neighbourhood for Us?

Map your neighborhood.

Results:

I have mapped all of the neighborhoods as an interactive map, and individually if they had 10 or more responses.

Interactive:

Full page.

Individual Dublin Hoods:

The following have been mapped as they had over 10 responses:

Artane,
Baldoyle,
Ballinteer,
Ballsbridge,
Ballybough,
Ballyfermot,
Beaumont,
Blackrock,
Broadstone,
Cabra,
Castleknock,
Churchtown,
Clondalkin,
Clontarf,
Crumlin,
Dolphins Barn,
Donnybrook,
Donnycarney,
Drimnagh,
Drumcondra,
Dun Laoghaire,
East Wall,
Fairview,
Finglas,
Firhouse,
Glasnevin,
Goatstown,
Harold’s Cross,
Inchicore,
Islandbridge,
Kilmainham,
Kimmage,
Knocklyon,
Lower Crumlin,
Lucan,
Malahide,
Marino,
Navanroad,
Phibsborough,
Portmarnock,
Portobello,
Raheny,
Ranelagh,
Rathfarnham,
Rathgar,
Rathmines,
Rialto,
Sandymount,
Santry,
Smithfield,
Stoneybatter,
Sutton,
Tallaght,
Terenure,
The Liberties,
The Tenters,
Whitehall

Creation:

These maps were created with Python for downloading the data, PostgreSQL/PostGIS for the data processing, and QGIS for the rendering.

There is not a full tutorial, but the processing code is available in here:

Downloading the data.

SQL processing.

Categories
30 Day Map Challenge All Featured Ireland Maps OpenStreetMap OSGEO QGIS Scotland

30 Day Map Challenge 2021

This November I once again took part in the 30 Day Map Challenge started by Topi Tjukanov.

Categories

I had done it the first year (30 Day Map Challenge 2019), and had made a few maps for 2020 as well.

This year I wasn’t really sure I would take part, as I had no plans and nothing prepared. But it is a great challenge. It challenges your creativity, problem solving, and map making skills. It also sets a time limit so you don’t have to worry about being perfect. And making maps is good fun.

There were a few datasets that I had come across that I thought would be good subjects, and I got a lot of mileage out of them.

Dublin neighbourhoods

These included the Dublin Inquirer neighbourhood survey.

Will You Draw Your Dublin Neighbourhood for Us?

neighbourhoods.dublininquirer.com

I think this is a great initiative, and hopefully they get a real large set of responses. They are at over 2000 already so a great start.

I did something similar for Glasgow (here) but only got 367 responses in total. So the power of having a well read paper behind the initiative is great. They are also reaching out to areas that have not had many responses, which is really great work.

OpenStreetMap

I also wanted to do some maps around OpenStreetMap in Ireland. The community here has had a large push to map all of the buildings in Ireland, which has progressed well.

But it is very much a work in progress.

OSM Ireland Buildings poster from State Of The Map 2021

Selected Maps

Hexagons:

Hex

First of the Dublin boundaries series.

Final interactive version: Here

OpenStreetMap:

OpenStreetMap

For OSM day I wanted to try and make the data a bit easier to use for #QGIS novices.

I created styles that can be applied to the GEOFABRIK Shapefile extracts, from here.

The styles are available: https://github.com/HeikkiVesanto/QGIS_OSM_Styles

Red:

Red

Mac vs Mc.

Supermac’s is an Irish fast food restaurant chain, who have had a few trademark disputes over the years with McDonald’s over the use of Mc and Mac in burger names.

3D:

3D

This turned out a lot better than I expected.

Was pure QGIS. Create grid (5km x 5km), zonal statistics on CORINE (Majority) and DEM (Median). New field for height rounded up to the nearest 40:

to_int(ceil((“_h_median” / 40))) * 40

Set colors. Create centroids with same colors. These become the Lego nubs.

Rendered in QGIS2threejs plugin. The grid is extruded, with a height of height * 50. The centroids are cylinder rendered height * 50 + 30 * 50, so they come a bit higher, radius of 1800.

The “rayshader” export makes it look realistic.

Interactive: https://maps.gisforthought.com/LegoIreland/

Might be better to not use landuse, but elevation for the colours.

No Computer:

No Computer

Nice to get away from the computer. Definitely promotes some creativity. But I just took it as an opportunity to walk on the beach.

Land:

Land

My favourite of my maps.

Land use vineyard across Europe from CORINE 2020, with the major regions labelled.

GHSL:

GHSL

Seasonal population of the Balearic Islands.

Data clipping in QGIS/GDAL, rendered in Aerialod, with labels with GIMP afterwards.

This was my second favourite of my maps. I think the topic is interesting and the execution is pretty good. Was however quite manual and probably needed more exaggeration to see the differences.

Historical:

Historical

A time lapse of 1,831,044 buildings in Ireland being added to OpenStreetMap.

If you want to get involved see: OpenStreetMap Ireland Buildings

Globe:

Globe

Simple spinning globe in QGIS, but I was happy that I was able to automate the export: Gist

All maps:

See here

Categories
30 Day Map Challenge All Featured Ireland Maps

30 Day Map Challenge 2019

Last November I took part in the 30 Day Map Challenge. An excellent project suggested by Topi Tjukanov on twitter:

I perhaps had a bit of an advantage. I had already completed a very similar challenge in 2014. Mapvember.

Where I made a post on this blog every day for all of November, primarily maps.

Where I made a post on this blog every day for all of November, primarily maps.

And a summary:
https://gisforthought.com/mapvember/

There are a lot of advantages to this style of map creation and a few down sides.

Advantages

  • It puts a time limit on the maps. This forces you to put them out there no matter the status. It is easy to leave maps half finished because they are not perfect. I know the internet can be a harsh critic sometimes, but you are making a map a day, it won’t be perfect.
  • You can revisit some older maps that have been discarded in the past. Perhaps they didn’t look so good, weren’t so interesting. That doesn’t matter, you are posting a map a day they don’t have to be perfect.
  • There are a lot of ideas out there. I use a Google keep note to store map ideas I have. The list keeps on getting longer and without some pushing it never gets shorter.
  • Collaboration. There were some great maps made, and every day you could enjoy them as well, feeling part of the community. Sharing ideas and techniques.
  • Increase your talents. The only way you are going to get better at mapping is by making some maps. No better way to do it than pushing yourself.
  • Work with new data. 30 maps is a lot of maps. You can explore new datasets and new software.
  • Grow your following. As the challenge is on Twitter it is a good way to build your following. I got 139 new followers over the month. Now for some people that isn’t much. But I only have 600 in general so it’s a sizeable amount. Although I’m not sure there is that much value to followers. But 197k impressions is good? 1 follower per 1000 who saw a map.

Disadvantages

30 maps is a lot of maps to make. A day is a short time to make one. My tactic, based on my previous experience, was to make a few upfront and ready to go. So by the time November started I had a few maps ready, so I could be ahead of the curve.

I used tweetdeck to schedule the tweets. I didn’t map on the weekend for the most part. I had other commitments, so scheduling and making some easy maps was crucial to completing the challenge.

There are no real rules to the challenge, interpret it how you wish. Do a map a day, or a map a week, but the important part is enjoying it.

Maps

There is a great website that collects all the maps created by theme and creator:

https://david.frigge.nz/30DayMapChallenge/index.html

I have posted all of my maps here.

With a select few favorites:

Day 1Points – Ireland’s population mapped as one point per person. 6,572,675 points in total:

Day 2Lines – 1 week of flying for Ryanair EI-DYP Boeing 737-800:

Day 5Raster – Total rainfall in Ireland in 2018 from Met Eireann data:

Day 10Black and White – Register of renewed liquor licences: Publican’s Houses Dublin:

Day 19Urban – Perhaps Dublin’s most confused street:

All in all I whole heartedly recommend taking part when November rolls around again.

Categories
All Ireland Maps

Ireland 2020 General Election HEX Maps

Ireland has a great single transferable election system. It means that every vote is meaningful even for smaller parties and candidates. It also means mapping the results is difficult. As each constituency has more than one seat, ranging from three to five.

One way to map the results is to have the constituencies split up. Either geographically, so split into parts based on how many seats it has. Or into equal sized pieces, like hexes.

Since I had not seen an election hex map for Ireland yet. I thought I would attempt to make one for the February 2020 General Election.


As HEX. One hex per seat.


Hex no labels.


Constituencies split into equal sized parts based on number of seats.

The hexes and split files can be found on GitHub:
https://github.com/HeikkiVesanto/Ireland2020GeneralElectionHEX

Geometries were split using the tutorial from Paul Ramsey:
http://blog.cleverelephant.ca/2018/06/polygon-splitting.html