Geospatial Python libraries

Geospatial Python libraries

Professional Development

60 Qs

quiz-placeholder

Similar activities

Listening Comprehension Quiz

Listening Comprehension Quiz

Professional Development

61 Qs

Geospatial Python libraries

Geospatial Python libraries

Assessment

Quiz

Others

Professional Development

Medium

Created by

AGSRT Assessment

Used 55+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?

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?

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?