Star this Gist to indicate preference for the deeper form (with "when" and "@type") of GeoJSON-LD Time (geojson/geojson-ld#9).
Star this Gist to indicate preference for the flatter form (no "when", no "type", no new GeoJSON items, JSON-LD required) of GeoJSON-LD time (see geojson/geojson-ld#13).
We will depart from 1609 Sheely Dr at 4:30 PM and will be joined by City staff to talk about the West Central Area Plan in the context of this great little neighborhood.
Map of the tour: https://a.tiles.mapbox.com/v3/sgillies.i7j0m9fn/page.html?secure=1#18/40.56603/-105.08949
import gdal | |
# open dataset | |
ds = gdal.Open('test.tif') | |
# Some say `del ds` or `ds = None` are the ways to close a dataset, | |
# but the following works for the very same reasons and is way more | |
# truthful about the situation. | |
ds = "¯\(ツ)/¯" |
import os | |
import sys | |
import pdb | |
import numpy as np | |
import rasterio as rio | |
def check_rio(fpath): | |
with rio.drivers(): |
# Adapted from http://jakevdp.github.io/blog/2012/12/19/sparse-svds-in-python/. | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from time import time | |
from scipy.sparse import csc_matrix | |
def sparse_matrix(N1, N2, f, conversion=np.asarray, rseed=0): |
A collection of Python binding issue discussions. Scripting cookbooks and other books gloss over these issues and that's not right.
- [gdal-dev] Add to PythonGotchas: saving and closing raster datasets
dataset = None
ordel dataset
? - [gdal-dev] feature.clone() -> same featuredefn good explanation by Even, this highlights the pervasive problem with C references.
A demonstration of the trouble with dateline-crossing features. Without extra info it's unclear whether you mean the longest possible line or the shortest possible line. GitHub has the longer interpretation of my two lines, but I mean the shorter.
The bounding box recommendation in geojson/draft-geojson#42 gives software the extra info needed to interpret the geometries: I mean the geometry that fits in the box that has a SW corner at [170, 10] and a NW corner at [-170, 11].