Skip to content

Commit

Permalink
Merge pull request #15 from hotosm/parks
Browse files Browse the repository at this point in the history
National Park service boundaries use UNIT_NAME instead of FOREST…
  • Loading branch information
spwoodcock authored Aug 20, 2024
2 parents d6ef46c + fbeb81c commit 12bf96b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utilities/tm-splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ async def main():
for feature in grid['features']:
if "FORESTNAME" in feature["properties"]:
name = feature["properties"]["FORESTNAME"].replace(' ', '_')
elif "UNIT_NAME" in feature["properties"]:
name = feature["properties"]["UNIT_NAME"].replace(' ', '_').replace('/', '_')
else:
name = f"{path.stem}_{index}"
index += 1
Expand Down

0 comments on commit 12bf96b

Please sign in to comment.