
Geospatial Python libraries

Quiz
•
Others
•
Professional Development
•
Medium
AGSRT Assessment
Used 55+ times
FREE Resource
Student preview

60 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following code return? import numpy as np; np.array([1, 2, 3]).dtype
int64
float64
list
array
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you import the GeoDataFrame class from the geopandas library?
from geopandas import GeoDataFrame
import GeoDataFrame from geopandas
import geopandas as gpd; gpd.GeoDataFrame
from geopandas.GeoDataFrame import
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which line of code correctly reads a shapefile into a GeoDataFrame using Geopandas?
gpd.read_file('my_shapefile.shp')
gpd.open('my_shapefile.shp')
GeoDataFrame.read_file('my_shapefile.shp')
gpd.load('my_shapefile.shp')
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which function from rasterio is used to open and read raster data?
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How can you extract the X and Y coordinates of a point geometry in Geopandas? Assume gdf is a GeoDataFrame containing a Point geometry.*
gdf.geometry.x, gdf.geometry.y
gdf.x, gdf.y
gdf['geometry'].x, gdf['geometry'].y
. gdf.loc[:, 'geometry'].x, gdf.loc[:, 'geometry'].y
Create a free account and access millions of resources
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade