Connor Sutton commited on
Commit
5dc8756
1 Parent(s): 94913e7

altered restgdf usage for compatibility with new version

Browse files
Files changed (1) hide show
  1. geospatial-data-converter/app.py +2 -2
geospatial-data-converter/app.py CHANGED
@@ -4,7 +4,7 @@ import os
4
  import geopandas as gpd
5
  import streamlit as st
6
  from aiohttp import ClientSession
7
- from restgdf import Rest
8
 
9
  from utils import read_file, convert, output_format_dict
10
 
@@ -49,7 +49,7 @@ st.file_uploader(
49
  async def get_arcgis_data(url: str) -> tuple[str, gpd.GeoDataFrame]:
50
  """Get data from an ArcGIS featurelayer"""
51
  async with ClientSession() as session:
52
- rest = await Rest.from_url(url, session=session)
53
  name = rest.name
54
  gdf = await rest.getgdf()
55
  return name, gdf
 
4
  import geopandas as gpd
5
  import streamlit as st
6
  from aiohttp import ClientSession
7
+ from restgdf import FeatureLayer
8
 
9
  from utils import read_file, convert, output_format_dict
10
 
 
49
  async def get_arcgis_data(url: str) -> tuple[str, gpd.GeoDataFrame]:
50
  """Get data from an ArcGIS featurelayer"""
51
  async with ClientSession() as session:
52
+ rest = await FeatureLayer.from_url(url, session=session)
53
  name = rest.name
54
  gdf = await rest.getgdf()
55
  return name, gdf