Skip to content

Instantly share code, notes, and snippets.

View dayne's full-sized avatar

Dayne Broderson dayne

View GitHub Profile
  • NEED: a specific lat,lon point (or points)
  • NEED: click on the map to capture that point
  • NEED: specify the point via a lat/lon dialog box
  • WISH: upload a csv or similar
  • NEED: general shape for the project
  • NEED: click on the map to capture poly
  • WISH: be able to upload a kml,shp,
  • WANT a line segmant (road like thing)
  • WISH: a trackline from a GPS
#!/usr/bin/env ruby
#
# Usage: browser
# pipe html to a browser
# e.g.
# $ echo "<h1>hi mom!</h1>" | browser
# $ ron -5 man/rip.5.ron | browser
if $stdin.tty?
puts <<-usage
@dayne
dayne / SDMI.ORTHO.md5
Created May 24, 2011 07:58
ralph maps
46056eea3dd73550804212ec110dbfc3 SDMI.ORTHO/CM3_Pilot_20110408-CIR.jpg.tif
9a083d1c4be51e29ed8ebda922802192 SDMI.ORTHO/CM3_Pilot_20110408-PAN.tif
f1e8909ae504ec4ed8f2e7ee8b45e3da SDMI.ORTHO/CM3_Pilot_20110408-RGB.jpg.tif
f69a80cde74b6c8ffe7efaa420c90396 SDMI.ORTHO/CM3_South_20110408-CIR.jpg.tif
a4bd07bdc0badfbe5bdfb372fbc026bd SDMI.ORTHO/CM3_South_20110408-PAN.tif
2e026d4ebf09ccd2f78a85b9732231d4 SDMI.ORTHO/CM3_South_20110408-RGB.jpg.tif
1d54211671ce298e66049af0b2ac53b2 SDMI.ORTHO/NM2_20110408-CIR.jpg.tif
2184b005f74632a68c41b5d32c1b7f7f SDMI.ORTHO/NM2_20110408-PAN.tif
cab01640ddfdbbc0b159d80bbcc866e0 SDMI.ORTHO/NM2_20110408-RGB.jpg.tif
17eb753e5b54ea4c31cd7c9c382bcc81 SDMI.ORTHO/NM2_East_20110408-CIR.jpg.tif
@dayne
dayne / overview.markdown
Created August 15, 2011 18:58
qgis - print composer output

I'm seeing a repeatable bug in the latest (well, pulled from git a week ago) qgis.

Grab a raster file or wms

Give the raster some transparency (30% say)

New Print Composer

Make the whole image a map. I used A4 paper at 300dpi. (less than 300 no bug).

@dayne
dayne / gist:2926707
Created June 13, 2012 21:51 — forked from zhm/gist:2005158
Building GDAL 1.9 with ESRI FileGDB support on OS X Lion

Building GDAL 1.9.x with ESRI FileGDB support on OS X Lion

  • Download the SDK from ESRI's website http://resources.arcgis.com/content/geodatabases/10.0/file-gdb-api
  • Extract the SDK, and put the contents of the directory in a known location, I used ~/local/filegdb. Here's an example path to one of the files: ~/local/filegdb/lib/libFileGDBAPI.dylib
  • I use ~/local/filegdb so it can stay isolated in it's own place. You can put it anywhere, but the next few steps might be different.
  • Go into the directory containing the FileGDB SDK, e.g. ~/local/filegdb
  • ESRI built these dylib's using @rpath's, so to avoid needing to mess with DYLD_LIBRARY_PATH, I updated the @rpath's using install_name_tool. There might be a more elegant way to handle this. If so, comments are welcome!
  • Here are the commands I used to patch the dylibs, this is not required if you want to use DYLD_LIBRARY_PATH yourself:
set-option -g prefix C-A
setw -g aggressive-resize on
set -g base-index 1
bind-key a send-prefix
@dayne
dayne / 0-Fedora QGIS build notes
Last active December 19, 2015 16:49
Fedora QGIS build notes
Notes on a build for a local QGIS on Fedora.
Taken from my old jumbled notes from:
http://dayne.broderson.org/2011/08/14/qgis_on_fedora_15.html
http://dayne.broderson.org/2011/07/21/qgis_from_git.html
@dayne
dayne / .vimrc
Last active December 19, 2015 23:09
.vimrc
syntax on
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab
set background=dark
set t_Co=256 " 256 colors
"show the line numbers on the side. allow for lots of lines"
@dayne
dayne / west_fairbanks_below_540.json
Created October 25, 2014 23:21
west_fairbanks_below_540
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.