Skip to content

Commit

Permalink
Merge pull request #159 from Open-EO/new_s2_grid_job_splitter
Browse files Browse the repository at this point in the history
updated s2_grid artifactory urls to v2
  • Loading branch information
GriffinBabe authored Sep 10, 2024
2 parents 18afacc + 6d452ac commit 8f8ccd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/openeo_gfmap/manager/job_splitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ 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_bounds_4326.geoparquet"
url = "https://artifactory.vgt.vito.be/artifactory/auxdata-public/gfmap/s2grid_bounds_4326.geoparquet"
gdf_path = Path.home() / ".openeo-gfmap" / "s2grid_bounds_4326_v2.geoparquet"
url = "https://artifactory.vgt.vito.be/artifactory/auxdata-public/gfmap/s2grid_bounds_4326_v2.geoparquet"
else:
gdf_path = Path.home() / ".openeo-gfmap" / "s2grid_bounds_3857.geoparquet"
url = "https://artifactory.vgt.vito.be/artifactory/auxdata-public/gfmap/s2grid_bounds_3857.geoparquet"
gdf_path = Path.home() / ".openeo-gfmap" / "s2grid_bounds_3857_v2.geoparquet"
url = "https://artifactory.vgt.vito.be/artifactory/auxdata-public/gfmap/s2grid_bounds_3857_v2.geoparquet"

if not gdf_path.exists():
_log.info("S2 grid not found, downloading it from artifactory.")
Expand Down

0 comments on commit 8f8ccd0

Please sign in to comment.