In [1]:
import arcgis
import geopandas as gp
In [2]:
%matplotlib inline
In [3]:
source = "http://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/USA_Congressional_Districts/FeatureServer"
In [4]:
service = arcgis.ArcGIS(source)
In [5]:
layer_id = 0
In [8]:
shapes = service.get(layer=layer_id,where= "STATE_ABBR='NC'")
type(shapes)
Out[8]:
In [9]:
features = shapes['features']
In [10]:
g = gp.GeoDataFrame.from_features(features)
g.plot();
In [ ]: