Skip to content

Commit

Permalink
geodataframes are pandas dataframes
Browse files Browse the repository at this point in the history
  • Loading branch information
bw4sz committed Dec 29, 2023
1 parent c81d269 commit f99f9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepforest/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def read_file(input):
elif isinstance(input, gpd.GeoDataFrame):
df = input.copy(deep=True)

if isinstance(df, pd.DataFrame):
if type(df) == pd.DataFrame:
# If the geometry column is present, convert to geodataframe directly
if "geometry" in df.columns:
df['geometry'] = gpd.GeoSeries.from_wkt(df['geometry'])
Expand Down

0 comments on commit f99f9e6

Please sign in to comment.