- 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/filegdbso 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 withDYLD_LIBRARY_PATH, I updated the@rpath's usinginstall_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_PATHyourself:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Requires jQuery from http://jquery.com/ | |
| // and jQuerySparklines from http://omnipotent.net/jquery.sparkline | |
| // AngularJS directives for jquery sparkline | |
| angular.module('sparkline', []); | |
| angular.module('sparkline') | |
| .directive('jqSparkline', [function () { | |
| 'use strict'; | |
| return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To enable SSL in Rails you could now simply use *force_ssl* in your | |
| # ApplicationController but there is two more things to think about: | |
| # In development our SSL webserver is running on port 3001 so we would | |
| # actually need to use *force_ssl port: 3001* but then this wouldn't | |
| # work for production. | |
| # Also there is a good chance you might not always want to use SSL in development | |
| # so it would be nice if we could just enable or disable SSL in the config. | |
| # To make all this work first copy the file *ssl_with_configured_port.rb* to | |
| # your *lib* directory. Second to enable SSL add *config.use_ssl = true* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script language="javascript" type="text/javascript"> | |
| $(document).ready(function() { | |
| window.swagger = new SwaggerApi({url: ":9000/api-docs"}); | |
| swagger.build(); | |
| success = function(data) { | |
| document.getElementById("mydata").innerHTML = data.content.data; | |
| } |
NewerOlder