Skip to content

Instantly share code, notes, and snippets.

View nagellette's full-sized avatar
🎯
Focusing

Necip Enes Gengeç nagellette

🎯
Focusing
View GitHub Profile
@nagellette
nagellette / geojson-merge.py
Created December 14, 2019 22:40 — forked from ericrobskyhuntley/geojson-merge.py
Python script to merge all GeoJSON files in a directory into a single GeometryCollection and write as a GeoJSON.
import os
import glob
import geojson
json_dir_name = "./"
json_pattern = os.path.join(json_dir_name,'*.geojson')
file_list = glob.glob(json_pattern)
collection = []