Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Reading Vector Data | Foundations of Geospatial Data
Geospatial Data Science with Python

bookChallenge: Reading Vector Data

Opgave

Swipe to start coding

In this task, you will practice reading real vector geospatial datasets using GeoPandas.

Two datasets are hosted online:

  • A Shapefile of world countries;
  • A GeoJSON of world countries.

Your goals are:

  1. Load the Shapefile from the provided URL.
  2. Load the GeoJSON file from the provided URL.
  3. Compute and print the number of features in each dataset.

Fill in the missing parts in the code.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you give me a real-world example?

close

bookChallenge: Reading Vector Data

Stryg for at vise menuen

Opgave

Swipe to start coding

In this task, you will practice reading real vector geospatial datasets using GeoPandas.

Two datasets are hosted online:

  • A Shapefile of world countries;
  • A GeoJSON of world countries.

Your goals are:

  1. Load the Shapefile from the provided URL.
  2. Load the GeoJSON file from the provided URL.
  3. Compute and print the number of features in each dataset.

Fill in the missing parts in the code.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
single

single

some-alt