
Geospatial Python libraries
Authored by AGSRT Assessment
Others
Professional Development
Used 63+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?