Simple Map Boundary Extraction with GeoPandas | by Lee Vaughan | Jan, 2025

QUICK SUCCESS DATA SCIENCE

Learn how to visualize nation borders with Python

A colorful cartoon of a surgeon carefully using tweezers to extract a map border from a map of Europe. The border looks like a piece of thread.
Extracting a border imagined by DALL-E3

I lately got here throughout a geography recreation the place you’re proven a section of border between international locations and requested to call them. Right here’s an instance; are you able to guess the 2 international locations that share this border?

A simple red line depicts the border between the USA and Mexico.
Guess this well-known “open” border (by the creator)

Right here’s one other “open” border. What’s the nation to the north?

A simple red line depicts the border between the USA and Canada.
Guess the border (by the creator)

What international locations share this tremendous lengthy border:

A simple red line depicts the border between Chile and Argentina.
Identify that border! (by the creator)

Older Boomers could also be conversant in this notorious border area:

A simple red line depicts the border between Laos, Cambodia, and Vietnam.
Guess the border (by the creator)

So as these have been the US-Mexico, US-Canada, Argentina-Chile, and Vietnam-Laos-Cambodia borders.