Skip to content

Commit

Permalink
Remove feature type
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 25, 2024
1 parent ee213f2 commit e832c90
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
10 changes: 1 addition & 9 deletions images/tiler-cache/seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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",
Expand All @@ -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
"""
Expand Down
2 changes: 0 additions & 2 deletions ohm/templates/tiler-cache-seed/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e832c90

Please sign in to comment.