Skip to content

Commit

Permalink
Provide a job to scrape OSM boundaries - add name filter (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienKN committed Jan 3, 2024
1 parent 72b0e19 commit fc09b0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jobfile-osm-boundaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ export default {
hook: 'runCommand',
command: `osmium tags-filter <%= id.replace('.pbf', '-administrative.pbf') %> /admin_level=<%= level %> -t --overwrite --output <%= key %>.pbf`
},
filterName: {
hook: 'runCommand',
command: `osmium tags-filter <%= key %>.pbf name -t --overwrite --output <%= key %>-name.pbf`
},
extract: {
hook: 'runCommand',
command: `osmium export -f json <%= key %>.pbf --geometry-types=polygon --overwrite -o <%= key %>.geojson`
command: `osmium export -f json <%= key %>-name.pbf --geometry-types=polygon --overwrite -o <%= key %>.geojson`
},
readJson: {
key: `<%= key %>.geojson`
Expand Down

0 comments on commit fc09b0f

Please sign in to comment.