Skip to content

reading in .shp files #781

Answered by ethanwhite
robinsandfort asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @robinsandfort - read_data() is taking a file path as input. So you want something like

# Full path version
 shp = utilities.read_file(input="/full/path/to/test_read_file_boxes_projected.shp")

# Relative path version
 shp = utilities.read_file(input="path/to/test_read_file_boxes_projected.shp")

get_data() is only for access data we distribute with the package for testing/examples.

The stuff with {} and .format(tmpdir) is because this docs example was copied from our tests. We'll put it on the list to clean that up since it's definitely confusing.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ethanwhite
Comment options

Answer selected by robinsandfort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants