Course contentsShow
← Data Science
Lesson 1308 of 2,14533. Advanced Visualization TechniquesFree lesson

Geographic Data Types and Coordinate Systems

Understanding latitude/longitude, projections, and how geographic data is represented in different coordinate reference systems.

Geographic Data Types and Coordinate Systems

What You'll Learn

You'll understand how geographic data is structured, how locations are represented numerically, and why coordinate reference systems matter for accurate visualization.

Understanding Geographic Data

Geographic data represents locations on Earth's surface. Think of it like giving directions: you can say "123 Main Street" (an address) or "40.7° North, 74.0° West" (coordinates). In data science, we typically work with latitude and longitude, which are angles measured in degrees.

Latitude measures north-south position from the equator (0°) to the poles (±90°). Longitude measures east-west position from the Prime Meridian (0°) through ±180°. Together, they pinpoint any location on Earth.

The Challenge: Earth Isn't Flat

Here's the problem: Earth is a 3D sphere, but your screen is 2D. Map projections are mathematical transformations that flatten the globe onto a plane—like peeling an orange and trying to lay the peel flat. Every projection distorts something: area, shape, distance, or direction.

Common projections include:

  • Mercator: Preserves angles (useful for navigation) but distorts area dramatically near poles
  • Equal-area: Preserves area ratios but distorts shapes
  • Web Mercator: What you see in Google Maps and most web applications

Coordinate Reference Systems (CRS)

A CRS defines exactly how coordinates relate to positions on Earth. It includes the projection, the datum (Earth's shape model), and units. Two datasets with different CRS won't align properly—it's like mixing metric and imperial measurements.

When visualizing geographic data, always verify your CRS matches across all data sources, or transform them to a common system before plotting.

Key Takeaway: Geographic data uses latitude/longitude pairs to specify Earth locations, but displaying them on flat maps requires projections that introduce trade-offs, and coordinate reference systems must match for accurate spatial analysis.