This file contains 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 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
\documentclass[10pt]{article} | |
\usepackage{labels} | |
\usepackage{url} | |
\newcommand{\brk}{$\cdot$ } | |
%\LabelGridtrue % Enable this to | |
\LabelCols=2% Number of columns of labels per page | |
\LabelRows=6% Number of rows of labels per page | |
\begin{document} | |
\numberoflabels=12 |
This file contains 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 ast import literal_eval | |
from avro.io import DatumReader, DatumWriter, BinaryEncoder, BinaryDecoder | |
from avro.schema import Names, SchemaFromJSONData | |
import yaml | |
import numpy as np | |
class BinaryDatumWriter(object): |
This file contains 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
import fiona | |
import geopandas as gpd | |
# Enable fiona driver | |
gpd.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw' | |
# Read file | |
df = gpd.read_file(path, driver='KML') | |
# Write file |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.