esri2gpd
esri2gpd copied to clipboard
Scrape features from the ArcGIS Server REST API and return a geopandas GeoDataFrame
esri2gpd
A lightweight Python tool to scrape features from the ArcGIS Server REST API and return a geopandas GeoDataFrame python.
Inspired by the R package esri2sf.
Installation
Via conda:
conda install -c controllerphl esri2gpd
Via PyPi:
pip install esri2gpd
Example
import esri2gpd
url = "https://services.arcgis.com/fLeGjb7u4uXqeF9q/ArcGIS/rest/services/Philly_Neighborhoods/FeatureServer/0"
gdf = esri2gpd.get(url, fields=['MAPNAME'], where="MAPNAME='Chestnut Hill'")
gdf.head()