Skip to content

Instantly share code, notes, and snippets.

View fdrcslv's full-sized avatar

Federico Silvestri fdrcslv

  • Genova, Italy
View GitHub Profile
@fdrcslv
fdrcslv / merge-geojsons.py
Created January 14, 2020 10:13 — forked from themiurgo/merge-geojsons.py
Merge two or more geojson files.
#!/usr/bin/env python
from json import load, JSONEncoder
from argparse import ArgumentParser, FileType
from re import compile
import sys
float_pat = compile(r'^-?\d+\.\d+(e-?\d+)?$')
charfloat_pat = compile(r'^[\[,\,]-?\d+\.\d+(e-?\d+)?$')