This file contains hidden or 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
""" Functions to drive algorithm execution in Apache Spark. | |
All coordinates are handled according to GeoJSON specifications. | |
http://geojson.org/geojson-spec.html""" | |
import geojson | |
import itertools | |
import math | |
def bbox(multipoint): |
This file contains hidden or 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
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
This file contains hidden or 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
# also: https://pcjericks.github.io/py-gdalogr-cookbook/vector_layers.html#load-data-to-memory | |
# another, maybe better approach to this is to use the gdal 'MEM' driver and then use | |
# sds.ReadRaster() and sds.WriteRaster() to get at the bytes. | |
# >>> from osgeo import gdal | |
# >>> driver = gdal.GetDriverByName('MEM') | |
# >>> sds = driver.Create('', 200, 300, 4) | |
# >>> sds.ReadRaster() | |
# If specifying gzip encoding and transferring the image results via body this way, |
NewerOlder