Python Forum
readshapefile function in basemap - confusion regarding arguments
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
readshapefile function in basemap - confusion regarding arguments
#1
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.
Reply
#2
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  mpl_toolkits.basemap rf_kartal 0 335 Jul-18-2023, 08:26 AM
Last Post: rf_kartal
  calling external function with arguments Wimpy_Wellington 7 1,344 Jul-05-2023, 06:33 PM
Last Post: deanhystad
  python basemap, cant show the right coordinates dbsr 0 939 Jun-08-2022, 01:55 PM
Last Post: dbsr
  'namespace' shorthand for function arguments? shadowphile 5 2,541 Aug-11-2021, 09:02 PM
Last Post: shadowphile
  Checking the number of arguments a function takes Chirumer 3 2,113 Jul-06-2021, 04:56 PM
Last Post: Chirumer
  Possible to dynamically pass arguments to a function? grimm1111 2 2,126 Feb-21-2021, 05:57 AM
Last Post: deanhystad
  How to pass multiple arguments into function Mekala 4 2,383 Jul-11-2020, 07:03 AM
Last Post: Mekala
  How to give a name to function arguments in C-API? WonszZeczny 0 1,313 Jun-22-2020, 10:20 AM
Last Post: WonszZeczny
  Function Recognises Variable Without Arguments Or Global Variable Calling. OJGeorge4 1 2,208 Apr-06-2020, 09:14 AM
Last Post: bowlofred
  Pass Arguments to Function phillyfa 2 1,982 Mar-27-2020, 12:05 PM
Last Post: phillyfa

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020