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 functools | |
import fiona | |
import geojson | |
import pyproj | |
import shapely.geometry | |
import shapely.ops | |
omit = ['SHAPE_AREA', 'SHAPE_LEN'] |
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 fiona.crs | |
def convert(f_in, f_out): | |
with fiona.open(f_in) as source: | |
with fiona.open( | |
f_out, | |
'w', | |
driver='GeoJSON', | |
crs = fiona.crs.from_epsg(4326), |
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 difflib | |
import json | |
import re | |
import bs4 | |
import pandas as pd | |
import requests | |
regex = re.compile('\((.*)\)') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 matplotlib.pyplot as plt | |
import numpy as np | |
from shapely.geometry import LineString | |
from shapely.ops import triangulate | |
def uniform_sample(poly, n=100): | |
""" | |
Uniformly sample the Delaunay triangulation of a polygon. If the polygon | |
is convex, this will uniformly sample its area. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer