Python Forum

Full Version: readshapefile function in basemap - confusion regarding arguments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need the map of a particular city in detail. I obtained the shapefile for the same in the form of a zipped folder.

I have already obtained the latitude longitude bounds for the city. Now, I need to read in the shapefile which I am unable to do. I am unable to understand what to pass as arguments to the readshapefile function.

Example :
map.readshapefile('./Paleo_Sturtian_750Ma', 'Paleo_Sturtian_750Mm')

If something like the above is called, how does it work? Why don't we give file extensions here?
Also, the first argument looks like a path, but what kind of path is it? Is it the path to the zipped folder on my system?

I am a beginner. So, I would really appreciate detailed help.
where did you get the shape file?
Are you aware of the US Census Tiger Shapefiles? see: https://www.census.gov/geo/maps-data/data/tiger.html