Bases: object
Provides geography information of a region/country given as shapefile.
Parameters: | code : str
shapefile : str, optional
|
---|
Attributes
code | (str) Identifier of the selected record in the shapefile; uses the first argument returned by shapefile.Reader as identifier, for the default shapefile, this would be the FIPS country code. |
name | (str) Name of the selected record in the shapefile; uses the second argument returned by shapefile.Reader as identifier, for the default shapefile, this would be the FIPS country code. |
shpfile | (str) Path to the source shapefile. |
bbox | (tuple) Bounding box of the country. |
polygon | (list of tuples) Country boundary polygon. |