Skip to content

Instantly share code, notes, and snippets.

View cageyjames's full-sized avatar

James Fee cageyjames

View GitHub Profile
@oeon
oeon / ccl.geojson
Last active August 29, 2015 14:06 — forked from anonymous/map.geojson
California Collegiate League teams/stadiums
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dandye
dandye / fiona_bare_bones.py
Created March 27, 2012 00:13
Bare Bones Fiona Polygon
SCHEMA = {'geometry': 'Polygon', 'properties': {'name': 'str','token': 'str'}}
FEATURE = {'id': '1',
'geometry':
{'type': 'Polygon',
'coordinates': [[(-1.0, -1.0),
(-1.0, 1.0),
(1.0, 1.0),
(1.0, -1.0),
(-1.0, -1.0)]]
},
@zhm
zhm / gist:2005158
Last active February 28, 2022 17:11
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: