Skip to content

Instantly share code, notes, and snippets.

@jctull
jctull / qgis.rb
Last active December 14, 2015 13:28
Custom qgis.rb homebrew formula for proper grass support
require 'formula'
def which_python
"python"+`python -c 'import sys;print(sys.version[:3])'`.chomp
end
class PyQtImportable < Requirement
fatal true
satisfy { quiet_system 'python', '-c', 'from PyQt4 import QtCore' }
@jctull
jctull / QGIS cmake command for homebrew deps
Last active December 18, 2015 08:09
QGIS cmake command for homebrew deps
cmake -D CMAKE_INSTALL_PREFIX=/Applications -D CMAKE_BUILD_TYPE=Debug -D ENABLE_TESTS=TRUE -D WITH_ASTYLE=TRUE -D WITH_INTERNAL_SPATIALITE=FALSE -D WITH_PYSPATIALITE=FALSE -D QWT_LIBRARY=/usr/local/Cellar/qwt/6.0.1/lib/qwt.framework/qwt -D QWT_INCLUDE_DIR=/usr/local/Cellar/qwt/6.0.1/lib/qwt.framework/Headers -D WITH_MAPSERVER=FALSE -D WITH_APIDOC=FALSE -D QGIS_MACAPP_BUNDLE=0 WITH_STAGED_PLUGINS=FALSE -D BISON_EXECUTABLE=/usr/local/Cellar/bison/3.0/bin/bison -D GRASS_PREFIX=/usr/local/Cellar/grass/6.4.2/grass-6.4.2 -D PYTHON_CUSTOM_FRAMEWORK=/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework ..
@jctull
jctull / filegdb in gdal osx 10.9
Created November 10, 2013 20:42
FileGDB support in gdal for OS X 10.9 Mavericks
Here's what worked for me with some links to forums and such that helped me resolve this issue:
For gdal to be able to use FileGDB, I had to specify the use of gcc-4.9, and this has to be separately installed with 'brew install homebrew/versions/gcc49'.
I built netcdf as
brew install https://raw.github.com/nickrobison/homebrew-science/27713e03d8618983b44ba0b3ed21759eccae785b/netcdf.rb
I used a custom gdal formula linked in the install command below that doesn't force using netcdf from homebrew/science (if the above gets committed this patch is not needed) and adds 'cxxstdlib_check :skip' in the def install portion of the formula.
A solution for getting FileGDB support working with the current 1.3 api from ESRI is from this forum:
2015-09-21 14:16:31 -0700
./configure
--prefix=/usr/local/Cellar/gdal/HEAD
--mandir=/usr/local/Cellar/gdal/HEAD/share/man
--disable-debug
--with-local=/usr/local/Cellar/gdal/HEAD
--with-threads
--with-libtool
--with-pcraster=internal
2015-09-21 15:17:43 -0700
./autogen.sh
Platform is Darwin
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize: copying file 'config/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
2015-10-05 11:35:11 -0700
./autogen.sh
Platform is Darwin
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize: copying file 'config/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
2015-10-05 12:03:23 -0700
./autogen.sh
Platform is Darwin
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize: copying file 'config/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
2015-10-05 12:30:54 -0700
./autogen.sh
Platform is Darwin
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize: copying file 'config/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
2015-10-20 12:00:39 -0700
autoreconf
-i
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Schema name="US_Sagebrush_Biome_2019" id="US_Sagebrush_Biome_2019">
<SimpleField name="timestamp" type="string"></SimpleField>
<SimpleField name="begin" type="string"></SimpleField>
<SimpleField name="end" type="string"></SimpleField>
<SimpleField name="altitudeMode" type="string"></SimpleField>
<SimpleField name="tessellate" type="int"></SimpleField>
<SimpleField name="extrude" type="int"></SimpleField>