tag_bound = {"boundary":"administrative","admin_level":7,"area":True}
amherst_bound = ox.geometries.geometries_from_place(place_name,tag_bound, which_result=None, buffer_dist=None)
type(amherst_bound)
# Check to make sure it looks reasonable by plotting it. See https://geoffboeing.com/2016/11/osmnx-python-street-networks/
ox.project_gdf(amherst_bound).plot()
_ = amherst_bound.axis('off')
# Save the file
amherst_bound.save_gdf_shapefile(filename= r"C:\Users\afhal\Dropbox\Arboriculture\PythonGIS\finalproject\testshape.shp")
C:\Users\afhal.conda\envs\OpenStreetMap\lib\site-packages\pandas\core\generic.py in
getattr
(self,name) 5137如果self._info_axis._can_hold_identifiers_and_holds_name(name):5138