Skip to content

Instantly share code, notes, and snippets.

psql DBNAME -c "\\copy (SELECT ST_AsGeoJson(ST_Union(the_geom)) FROM TABLENAME) to '/PATH/TO/YOUR/DESIRED/FILE.geojson'"

Storytelling from Space: Tools/Resources

This list of resources is all about acquring and processing aerial imagery. It's generally broken up in three ways: how to go about this in Photoshop/GIMP, using command-line tools, or in GIS software, depending what's most comfortable to you. Often these tools can be used in conjunction with each other.

Acquiring Landsat & MODIS

Web Interface

  • Landsat archive
@jqtrde
jqtrde / index.html
Last active August 29, 2015 14:17 — forked from wboykinm/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.7.0/mapbox-gl.js'></script>
<script src='tx.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.7.0/mapbox-gl.css' rel='stylesheet' />
<style>
@jqtrde
jqtrde / gdal_hdf.md
Last active August 29, 2015 14:17 — forked from drewbo/gdal_hdf.md

MODIS downloads are stored as .hdf files which makes them non-trivial to interact with.

I've previously mentioned using HEG but for a more streamlined approach we're going to want to use gdal.

Compiling GDAL with HDF4 support can actually be done fairly easily using brew although information on this was a bear to find. Thanks to Wood Sun we can do this via three commands

brew tap homebrew/versions
brew install hdf4
brew install https://raw.githubusercontent.com/geoalchimista/homebrew/master/formulae/gdal.rb --with-hdf4

Deploy your own PaaS!

Setting up Dokku with DigitalOcean and Namecheap

..or how I made my own heroku in a few hours for $3.98.

This write-up owes a great deal to dscape's Node.js Deployments with Docker, Dokku, & Digital Ocean, the dokku project itself, and the fine folks working on dokku's issues. I took dscape's article as a starting point when trying this out but found some details lacking so I documented my own process for getting dokku up and running.

1. Get a domain

  1. General Background and Overview
@jqtrde
jqtrde / on-websites.md
Created April 11, 2015 19:44
On designing websites.
@jqtrde
jqtrde / on-programming-with-node.md
Created April 12, 2015 20:13
On programming with Node.
@jqtrde
jqtrde / README.md
Last active August 29, 2015 14:21 — forked from jwass/README.md

Quick idea to understand what modules get imported.

Example:

>>> import importlog

# Run a bunch of code
>>> import shapely.geometry
>>> p = shapely.geometry.Point(0.0, 0.0)
&gt;&gt;&gt; b = p.buffer(1.0)