Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

30 day map challenge post #84

Merged
merged 31 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
9519183
Map challenge Initial commit
Sahil590 Dec 4, 2024
954a84c
restructure
Sahil590 Dec 4, 2024
1128987
suggested changes
Sahil590 Dec 5, 2024
389c5e4
QGIS and other bits
Sahil590 Dec 5, 2024
413bbc9
formatting
Sahil590 Dec 5, 2024
e1ac518
formatting
Sahil590 Dec 5, 2024
929e490
suggested changes
Sahil590 Dec 6, 2024
847d11b
improving the points description
Sahil590 Dec 6, 2024
f13fc6a
adding lines description
Sahil590 Dec 6, 2024
1742ab8
Dan's suggested changes
Sahil590 Dec 6, 2024
1a7d6cf
adding some closing thoughts
Sahil590 Dec 6, 2024
365fc2e
adding relevant tags
Sahil590 Dec 6, 2024
290875d
Diego's changes
Sahil590 Dec 6, 2024
ccda5ee
Formatting changes
Sahil590 Dec 6, 2024
79bc8af
spelling changes
Sahil590 Dec 6, 2024
3f5b4f7
some restructuring
Sahil590 Dec 6, 2024
e4e111b
spelling and link fixes
Sahil590 Dec 6, 2024
29f77f7
saranjeet suggested changes
Sahil590 Dec 9, 2024
078e269
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2024
c778126
adding words to ignore during spell check
Sahil590 Dec 9, 2024
c45a0b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2024
938df3e
adding more words to ignore
Sahil590 Dec 9, 2024
0080c09
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2024
971151f
change csv to upper case
Sahil590 Dec 9, 2024
6e2343d
Update docs/posts/20241216_30day_map_challenge.md
Sahil590 Dec 10, 2024
ce5b63b
Update docs/posts/20241216_30day_map_challenge.md
Sahil590 Dec 10, 2024
cf8e6f4
Update docs/posts/20241216_30day_map_challenge.md
Sahil590 Dec 10, 2024
950fef2
Update docs/posts/20241216_30day_map_challenge.md
Sahil590 Dec 10, 2024
50b123a
Update docs/posts/20241216_30day_map_challenge.md
Sahil590 Dec 10, 2024
c68c477
Dan suggested changes
Sahil590 Dec 10, 2024
a843935
spelling change
Sahil590 Dec 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions docs/posts/20241216_30day_map_challenge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
date: 2024-12-16
authors:
- Sahil590
categories:
- Technology
tags:
- Django
- Python
- Technology
- 30DayMapChallenge
- Mapping
---


# **Mapping with Python: The 30-Day Map Challenge**

![Map challenge overview](images/30day_map_challenge/30dmc_2024.png)

Every year, cartography enthusiasts, geographers, data visualizers, and mapmakers from around the world come together to participate in the [30-Day Map Challenge](https://30daymapchallenge.com/). Organized by Topi Tjukanov, this event celebrates the art and science of mapmaking. Whether you’re an experienced GIS professional or just starting out, this challenge invites you to create and share a map daily, guided by a unique daily theme.

The 30-Day Map Challenge is an inclusive and open-ended initiative that fosters creativity and experimentation in mapmaking. Each day in November presents a different theme, ranging from “Points” and “Lines” to “Fantasy” and “Historical.” Participants are encouraged to interpret these prompts flexibly, utilizing any data, tools, or artistic styles that resonate with them.

Participation is voluntary, and there’s no competition involved. Instead, this challenge is a celebration of cartographic creativity. Participants share their creations on social media platforms using the hashtag #30DayMapChallenge, creating a vibrant global gallery of diverse and imaginative maps.
Sahil590 marked this conversation as resolved.
Show resolved Hide resolved

This was my first year participating in the 30-day map challenge. I was inspired to take on the challenge being apart of a recent project the RSE team worked on. We created an interactive map that displayed location data gathered from mobile device to display trends over a map of England. The app used Django, which limited my options for mapping abilities. Since I wanted to directly query the Django database, I chose the library [django-plotly-dash](https://github.com/GibbsConsulting/django-plotly-dash).
Sahil590 marked this conversation as resolved.
Show resolved Hide resolved

For the maps showcased below, you can find the code, files, and data used to create the maps in my personal repository [Sahil590/30daymapchallenge](https://github.com/Sahil590/30daymapchallenge).

In this post, I’ll focus on four maps I created during the challenge:
Sahil590 marked this conversation as resolved.
Show resolved Hide resolved

## 1. Choropleth

![Classic choropleth map. Use color to show data variation across regions. This simple but effective technique is a staple for showing thematic differences. 🎨. Number of vehichles accessable acros the UK](images/30day_map_challenge/Choropleth.png)

This map type got me started on my journey, so it’s only fitting that this is the first map to showcase. For this challenge, I explored some information about vehicle access per household gathered through the 2021 UK census. I thought it would be a nice visualization to see where the most concentrated population of vehicles would be across the UK.

The map displays every nature reserve and park in the UK. The data was sourced from [data.gov](https://www.data.gov.uk/dataset/acdf4a9e-a115-41fb-bbe9-603c819aa7f7/local-nature-reserves-england).
dalonsoa marked this conversation as resolved.
Show resolved Hide resolved

## 2. Points

![30DayMapChallenge classic: A map with points. Start the challenge with points. Show individual locations—anything from cities to trees or more abstract concepts. Simple, but a key part of the challenge. 📍 Nature reserves across the UK](images/30day_map_challenge/Points_map.png){:style="display:block;margin:auto;width:50%" }

I created this map using [Plotly](https://plotly.com/examples/), a tool I’m familiar with.

Start your 30-day map challenge with points! Use a map to show individual locations, ranging from cities to trees and even more abstract concepts. This simple yet crucial element of the challenge will help you visualize your progress. 📍 Nature reserves across the UK: [Image](images/30day_map_challenge/Points_map.png)style="Display: block; margin: auto; width: 50%;
dalonsoa marked this conversation as resolved.
Show resolved Hide resolved

This was a classic challenge to kick off the month, as explained, it’s straightforward and focuses on a single location.

The data displayed on the map is every nature reserve and park located in the UK. The data was sourced from [data.gov](https://www.data.gov.uk/dataset/acdf4a9e-a115-41fb-bbe9-603c819aa7f7/local-nature-reserves-england).

## 3. Lines

![Day 2 A map with focus on lines. Roads, rivers, routes, or borders—this day is all about mapping connections and divisions. Another traditional way to keep things moving. 📏. Undersea internet cables ](images/30day_map_challenge/Lines.png)
Sahil590 marked this conversation as resolved.
Show resolved Hide resolved

The internet is a global network of interconnected cables that span continents, connecting people and devices worldwide. I wanted to visualize this network on a map.
Sahil590 marked this conversation as resolved.
Show resolved Hide resolved

To create this map, I used a GEOJSON file, a geospatial data interchange format based on JavaScript Object Notation (JSON). These files contain data that helps plot lines, points, and polygons on maps. In this case, I used it to plot lines but will also use it to plot polygons later.

The data displayed on the map was sourced from the [ArcGIS hub](https://hub.arcgis.com/maps/c12642b516bc4ee5bc9e89870ab14089/about).
Sahil590 marked this conversation as resolved.
Show resolved Hide resolved

## 4. New tool: QGIS

![Day 13 Use a tool you’ve never tried before. The challenge has always been about trying new things. Use a tool, software, or drawing technique you’ve never worked with before. 🧪🔧 QGIS ](images/30day_map_challenge/Qgis.png)

This day revolves around trying out a new tool—something entirely unfamiliar to me. For this challenge, I decided to use QGIS, a free and open-source software specifically designed for geospatial data creation, editing, analysis, visualization, and publication.
Sahil590 marked this conversation as resolved.
Show resolved Hide resolved

QGIS is incredibly powerful. It can handle various tasks, from thematic maps to geospatial analysis and interactive visualizations. Despite its capabilities, I had never used it before. So, I saw this as an ideal opportunity to learn something new and challenge myself.

For my initial map, I opted for simplicity and focused on visualizing the East African Region. I found a detailed dataset from [Natural Earth Hub](https://www.naturalearthdata.com/) that was recommended in my tutorial for QGIS. Once I found the data I needed, setting up the map became the next challenge. Since I had no prior experience, it took some time to get up to speed and produce a map that I was satisfied with, as shown in Figure above.
Sahil590 marked this conversation as resolved.
Show resolved Hide resolved

When creating this map, I discovered that it was much easier to creating a highly detailed and visually appealing map than compared to the python tools I have gotten used to using.
Sahil590 marked this conversation as resolved.
Show resolved Hide resolved

My initial impression of QGIS was that it was a tool with immense potential, but it also felt overwhelming due to the sheer number of options available. The interface was cluttered with menus, toolbars, and panels, but once I began exploring, everything became intuitive.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/posts/images/30day_map_challenge/Lines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/posts/images/30day_map_challenge/Qgis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading