![]() |
readshapefile function in basemap - confusion regarding arguments - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: readshapefile function in basemap - confusion regarding arguments (/thread-16662.html) |
readshapefile function in basemap - confusion regarding arguments - sendiptangshu - Mar-09-2019 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. RE: readshapefile function in basemap - confusion regarding arguments - Larz60+ - Mar-09-2019 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 |