Skip to content

Instantly share code, notes, and snippets.

@chambbj
chambbj / gist:11388736
Created April 29, 2014 01:33
keybase.md
### Keybase proof
I hereby claim:
* I am chambbj on github.
* I am chambbj (https://keybase.io/chambbj) on keybase.
* I have a public key whose fingerprint is DC17 920B 2DB8 F95E ACB6 3492 16E2 1035 79EE 6F99
To claim this, I am signing this object:
@chambbj
chambbj / gist:11389352
Created April 29, 2014 02:25
keybase.md
### Keybase proof
I hereby claim:
* I am chambbj on github.
* I am chambbj (https://keybase.io/chambbj) on keybase.
* I have a public key whose fingerprint is 7A8F 0CB4 5DA4 FB7C 91A9 8DE0 972F 1AEE E269 7C48
To claim this, I am signing this object:
@chambbj
chambbj / pdal.rb
Created March 28, 2012 18:26
My pdal formula for Homebrew (untested)
require 'formula'
class Pdal < Formula
homepage 'http://pointcloud.org'
url 'https://github.com/PDAL/PDAL/zipball/0.6.0'
md5 'e21c2227a9302f033f8ecf513baedf51'
version '0.6.0'
def options
[
@chambbj
chambbj / gist:2229405
Created March 28, 2012 18:53
GeoTIFF / GDAL issues
Bradleys-MacBook-Pro:make bchambers$ make
[ 29%] Built target pdalboost
[ 29%] Building CXX object src/CMakeFiles/pdal.dir/drivers/las/GeotiffSupport.cpp.o
In file included from /usr/local/include/cpl_conv.h:35,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.hpp:42,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.cpp:35:
/usr/local/include/cpl_vsi.h:173: error: declaration of C function ‘void* _GTIFcalloc(size_t)’ conflicts with
/usr/local/include/cpl_vsi.h:172: error: previous declaration ‘void* _GTIFcalloc(size_t*)’ here
In file included from /usr/local/include/cpl_conv.h:36,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.hpp:42,
@chambbj
chambbj / gist:2252331
Created March 30, 2012 15:37
Missing 3rd party lib Homebrew formulae (URGENT)
@chambbj
chambbj / loki.rb
Created March 30, 2012 15:39
Loki Homebrew issues
require 'formula'
class Loki < Formula
url 'http://downloads.sourceforge.net/project/loki-lib/Loki/Loki%200.1.7/loki-0.1.7.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Floki-lib%2Ffiles%2FLoki%2FLoki%25200.1.7%2F&ts=1333050366&use_mirror=softlayer'
homepage 'http://loki-lib.sourceforge.net/index.php?n=Main.HomePage'
md5 '8261e83cf2c904fd915823336e7116bd'
version '0.1.7'
def install
system "make" # Separate steps or install fails
@chambbj
chambbj / tvmet.rb
Created March 30, 2012 16:06
My tvmet formula for Homebrew
require 'formula'
class Tvmet < Formula
url 'http://downloads.sourceforge.net/project/tvmet/Tar.Gz_Bz2%20Archive/1.7.2/tvmet-1.7.2.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftvmet%2Ffiles%2F&ts=1333123044&use_mirror=softlayer'
homepage 'http://tvmet.sourceforge.net'
md5 '8e1b2ec67ebec65f680a8bd3ea38a656'
version '1.7.2'
def install
system "./configure", "--prefix=#{prefix}", "--disable-cppunit"
@chambbj
chambbj / liblas.rb
Created March 30, 2012 16:11
My updated libLAS formula for Homebrew
require 'formula'
class Liblas < Formula
homepage 'http://liblas.org'
url 'http://download.osgeo.org/liblas/libLAS-1.7.0.tar.gz'
md5 '03de7a61132902846c12f3b28c38eb37'
depends_on 'cmake' => :build
depends_on 'libgeotiff'
depends_on 'gdal'
@chambbj
chambbj / gist:2253610
Created March 30, 2012 18:12
OCI on Mac OS X
export ORACLE_HOME=[your installation path]/instantclient_10_2
export LD_LIBRARY_PATH=$ORACLE_HOME
export DYLD_LIBRARY_PATH=$ORACLE_HOME
@chambbj
chambbj / gist:2638789
Created May 8, 2012 19:44
libLAS SRS example
std::string proj_str ("+proj=utm +zone=19 +datum=WGS84");
liblas::SpatialReference srs;
srs.SetProj4(proj_str);
liblas::Header header;
header.SetSRS(srs);
liblas::Writer* writer = new liblas::Writer(ofs, header);