Skip to content

Commit

Permalink
changed local file paths for s2 grids #192
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVerelst committed Jan 22, 2025
1 parent e3f5a22 commit 5fa101b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openeo_gfmap/manager/job_splitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ def load_s2_grid(web_mercator: bool = False) -> gpd.GeoDataFrame:
"""Returns a geo data frame from the S2 grid."""
# Builds the path where the geodataframe should be
if not web_mercator:
gdf_path = Path.home() / ".openeo-gfmap" / "s2grid_voronoi_4326.parquet.parquet"
gdf_path = Path.home() / ".openeo-gfmap" / "s2grid_voronoi_4326.parquet"
url = "https://artifactory.vgt.vito.be/artifactory/auxdata-public/gfmap/s2grid_voronoi_4326.parquet"
else:
gdf_path = Path.home() / ".openeo-gfmap" / "s2grid_voronoi_3857parquet"
gdf_path = Path.home() / ".openeo-gfmap" / "s2grid_voronoi_3857.parquet"
url = "https://artifactory.vgt.vito.be/artifactory/auxdata-public/gfmap/s2grid_voronoi_3857.parquet"

if not gdf_path.exists():
Expand Down

0 comments on commit 5fa101b

Please sign in to comment.