diff --git a/samgeo/common.py b/samgeo/common.py index b8043258..860e1a28 100644 --- a/samgeo/common.py +++ b/samgeo/common.py @@ -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)