Skip to content

Instantly share code, notes, and snippets.

@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 / 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:3989768
Created October 31, 2012 20:48
LAS to GeoJSON XML pipeline
<?xml version="1.0" encoding="utf-8"?>
<Pipeline version="1.0">
<Writer type="drivers.text.writer">
<Option name="filename">
output.json
</Option>
<Option name="order">
X,Y,Z
</Option>
<Option name="keep_unspecified">
@chambbj
chambbj / gist:3426434
Created August 22, 2012 15:00
remaining pdal_test errors on os x
myhost:osx2 bchambers$ bin/pdal_test ../../test/data/
Running 198 test cases...
0.100
Wrote 1065 points
0.100
Wrote 1065 points
0.100
Wrote 1065 points
0.100
Wrote 1065 points
@chambbj
chambbj / gist:3418680
Created August 21, 2012 19:45
pdal_test failing on mac
myhost:osx bchambers$ bin/pdal_test ../../test/data
Running 198 test cases...
0.100
Wrote 1065 points
0.100
Wrote 1065 points
0.100
Wrote 1065 points
0.100
Wrote 1065 points
@chambbj
chambbj / gist:2711166
Created May 16, 2012 15:20
PDAL tests failing
$ mkdir build && cd build
$ mkdir osx && cd osx
$ cmake ../.. \
-DWITH_GDAL=ON \
-DWITH_GEOTIFF=ON \
-DWITH_LASZIP=ON \
-DWITH_TESTS=ON \
-DWITH_ORACLE=ON
@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);
@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 / 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 / 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"