A Pen by Zachary Bennett on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from json import load, JSONEncoder | |
from optparse import OptionParser | |
from re import compile | |
float_pat = compile(r'^-?\d+\.\d+(e-?\d+)?$') | |
charfloat_pat = compile(r'^[\[,\,]-?\d+\.\d+(e-?\d+)?$') | |
parser = OptionParser(usage="""%prog [options] | |
Group multiple GeoJSON files into one output file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1994, in __call__ | |
return self.wsgi_app(environ, start_response) | |
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app | |
response = self.handle_exception(e) | |
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app | |
response = self.full_dispatch_request() | |
File "/opt/conda/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request |