Skip to content

Commit

Permalink
Set pipeline configurations for dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrandje committed Sep 26, 2024
1 parent 0d33f10 commit 1d96065
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cartiflette/pipeline_constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

import os
from cartiflette.config import DATASETS_HIGH_RESOLUTION

# Keys for COG_TERRITOIRE and IRIS are True for high resolution and False for
Expand Down Expand Up @@ -78,9 +79,15 @@
"POPULATION-COM": ["Insee", "POPULATION", "POPULATION-IRIS-COM"],
}

PIPELINE_CRS = [2154, 4326, 3857]
PIPELINE_SIMPLIFICATION_LEVELS = [0, 40]
PIPELINE_FORMATS = ["geojson", "topojson", "gpkg"]
if os.environ.get("ENVIRONMENT", "dev") != "dev":
PIPELINE_CRS = [2154, 4326, 3857]
PIPELINE_SIMPLIFICATION_LEVELS = [100, 40]
PIPELINE_FORMATS = ["geojson", "topojson", "gpkg"]
else:
PIPELINE_CRS = [4326]
PIPELINE_SIMPLIFICATION_LEVELS = [40]
PIPELINE_FORMATS = ["topojson"]


# which dissolutions can be operated from a given raw geodataset, depending
# of it's source (either from IRIS or from COMMUNES)
Expand Down Expand Up @@ -233,7 +240,6 @@
for key, dissolutions in AVAILABLE_DISSOLUTIONS_FROM_RAW_MESH.items()
for dissolution in dissolutions
}
all_dissolutions = all_dissolutions

all_borders = {
split
Expand Down

0 comments on commit 1d96065

Please sign in to comment.