Skip to content

Commit

Permalink
Fix vector_to_geojson bug
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Sep 21, 2024
1 parent 856a7a0 commit a1cba6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samgeo/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def vector_to_geojson(filename, output=None, **kwargs):
dict: The geojson dictionary.
"""

if not filename.startswith("http"):
if filename.startswith("http"):
filename = download_file(filename)

gdf = gpd.read_file(filename, **kwargs)
Expand Down

0 comments on commit a1cba6f

Please sign in to comment.