Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
================================ | |
The GeoJSON Format Specification | |
================================ | |
:Abstract: | |
GeoJSON is a geospatial data interchange format based on JavaScript Object | |
Notation (JSON). | |
:Authors: | |
Howard Butler (Hobu Inc.), |
from math import sqrt | |
from matplotlib import pyplot | |
from shapely.geometry import * | |
GM = (sqrt(5)-1.0)/2.0 | |
W = 8.0 | |
H = W*GM | |
SIZE = (W, H) | |
COLORS = ['#6699cc', '#ffcc33'] |
"""Three ways of computing stats of a rasterio dataset.""" | |
import dask.array | |
import numpy | |
import rasterio | |
from rasterio.windows import Window | |
# Compute mean of entire dataset read into memory. Easiest, but doesn't | |
# scale for very large datasets. | |
with rasterio.open( |
"""Concurrent read-process-write example""" | |
import concurrent.futures | |
from itertools import islice | |
from time import sleep | |
import rasterio | |
CHUNK = 100 |
# Swapping x, y coords. | |
from descartes import PolygonPatch | |
from fiona import collection | |
from itertools import imap | |
import logging | |
from matplotlib import pyplot | |
log = logging.getLogger() |
PATH_REMOVE = '/usr/local' | |
CUSTOM_CXXFLAGS = '-fvisibility-inlines-hidden -DU_CHARSET_IS_UTF8=1' | |
CUSTOM_LDFLAGS = '' | |
RUNTIME_LINK = 'static' | |
INPUT_PLUGINS = 'csv,gdal,geojson,occi,ogr,osm,postgis,python,raster,rasterlite,shape,sqlite' | |
WARNING_CXXFLAGS = '-Wno-deprecated-register -Wno-redeclared-class-member' | |
PATH = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/bin/' | |
BOOST_INCLUDES = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/include/boost' | |
BOOST_LIBS = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/lib' | |
BOOST_PYTHON_LIB = 'boost_python-2.7' |