From e832c908c378d7d96c25e8587ed68431bd20ce6d Mon Sep 17 00:00:00 2001 From: Rub21 Date: Mon, 25 Nov 2024 15:23:51 -0500 Subject: [PATCH] Remove feature type --- images/tiler-cache/seed.py | 10 +--------- ohm/templates/tiler-cache-seed/cronjob.yaml | 2 -- values.staging.template.yaml | 3 +-- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/images/tiler-cache/seed.py b/images/tiler-cache/seed.py index a2366124..82643073 100644 --- a/images/tiler-cache/seed.py +++ b/images/tiler-cache/seed.py @@ -6,8 +6,6 @@ upload_to_s3, seed_tiles, save_geojson_boundary, - read_geojson_boundary, - boundary_to_tiles, check_tiler_db_postgres_status, process_geojson_to_feature_tiles, ) @@ -24,12 +22,6 @@ required=True, help="URL to the GeoJSON file defining the area of interest.", ) -@click.option( - "--feature-type", - required=True, - help="Type of objects in the GeoJSON file", - default="Polygon", -) @click.option( "--zoom-levels", help="Comma-separated list of zoom levels", @@ -51,7 +43,7 @@ help="CSV file to save the logs results", default="log_file.csv", ) -def main(geojson_url, feature_type, zoom_levels, concurrency, log_file, s3_bucket): +def main(geojson_url, zoom_levels, concurrency, log_file, s3_bucket): """ Main function to process and seed tiles """ diff --git a/ohm/templates/tiler-cache-seed/cronjob.yaml b/ohm/templates/tiler-cache-seed/cronjob.yaml index 9dee0eea..ada23846 100644 --- a/ohm/templates/tiler-cache-seed/cronjob.yaml +++ b/ohm/templates/tiler-cache-seed/cronjob.yaml @@ -60,8 +60,6 @@ spec: env: - name: GEOJSON_URL value: {{ .Values.ohm.tilerCacheSeed.env.GEOJSON_URL | quote }} - - name: FEATURE_TYPE - value: {{ .Values.ohm.tilerCacheSeed.env.FEATURE_TYPE | quote }} - name: ZOOM_LEVELS value: {{ .Values.ohm.tilerCacheSeed.env.ZOOM_LEVELS | quote }} - name: CONCURRENCY diff --git a/values.staging.template.yaml b/values.staging.template.yaml index f96c3c3e..d7d0bd52 100644 --- a/values.staging.template.yaml +++ b/values.staging.template.yaml @@ -987,8 +987,7 @@ ohm: enabled: true schedule: '0 * * * *' # testing every hour env: - GEOJSON_URL: https://osmseed-dev.s3.us-east-1.amazonaws.com/tiler/world.geojson - FEATURE_TYPE: Polygon + GEOJSON_URL: https://osmseed-dev.s3.us-east-1.amazonaws.com/tiler/wold-usa-eu.geojson ZOOM_LEVELS: '7,8,9' CONCURRENCY: 32 S3_BUCKET: osmseed-dev