Search Header Logo

Geospatial Python libraries

Authored by AGSRT Assessment

Others

Professional Development

60 Questions

Used 60+ times

Geospatial Python libraries
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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?

rasterio.load()

rasterio.get()

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

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct way to convert a GeoDataFrame to a JSON string

gdf.to_json()

gdf.to_string('json')

gdf.export('json')

json.dumps(gdf)

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which GDAL/OGR function is used to read vector data formats?

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?