Skip to content

Instantly share code, notes, and snippets.

@butchtm
butchtm / quadkey_to_geom.py
Last active August 2, 2022 08:40
Sample generation of geometry from bing tile quadkey
import geopandas as gpd
import morecantile
import shapely.geometry as geom
import pandas as pd
tms = morecantile.tms.get('WebMercatorQuad')
schools = pd.DataFrame(dict(name=['Rurubao School'], quadkey=['133332330000'], amenity=['school'],))
def quadkey_to_geom(x):
tile = tms.quadkey_to_tile(x)
@butchtm
butchtm / index-error-vector-zonal-stats-uat.ipynb
Last active July 7, 2022 03:00
index-error-vector-zonal-stats-UAT.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@butchtm
butchtm / h3-grid-error-tutorial-grids.ipynb
Created July 6, 2022 05:17
h3-grid-error-tutorial.grids.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.