OPeNDAP C API (Ocapi) SDK

The OPeNDAP C API (OCAPI) is an OPeNDAP DAP 2.0 client implementation written in generic C. The package includes a library which can be linked statically or dynamically. Included is a optional command line interface which allows interactive access to the API. There are four main ways you can use the OCAPI:

Pre-Compiled Binary - You run a program from the command line, enter commands and get text responses.

User-Compiled Binary - You compile the source code provided in the API resource kit. You can then run the program from the command line, enter commands and get a text responses.

Dynamic Library - The OCAPI shared library, a single file, is dynamically linked with a program you have written, at run time. You must distribute the library file with your program. The shared library allows you to access OPeNDAP servers programmatically and retrieve live data structures your program can use.

Static Library - The OCAPI code base is statically linked with a program you have written when it is compiled. There is no separate file--the OPeNDAP functionality is compiled directly into your program. You include the ocapi.h header file from the OCAPI code base and can use the functions defined there to access OPeNDAP servers programmatically and retrieve live data structures your program can use.

Depending on which mode you want to use the procedures are very different. Refer to appropriate section of this document for instructions on each mode.

This material is based upon work supported by the National Science Foundation under Grant No.0721628. Any opinions, findings and conclusions or recomendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation (NSF).


OCAPI 1.4.1 (22 August 2008)

Binaries

 Linux
Fedora Core 8 x86_64
 Linux
Fedora Core 8 i386

Source code

Version 1.4.1 in a tar file
ocapi-1.4.1.tar.gz (sig) Required: You will need libcurl and xdr to be available on your system. See our Third-party software page for links to these packages. You will also need the pthreads package which is required by libcurl. Most Linux and OS/X systems have these packages. Other versions of Unix probably do not.

OCAPI 1.4.0 (22 July 2008)

Binaries

This version of the Ocapi is a source-only release. It contains updated parsers for the wire representation of DAP 2.0 response objects and it contains many fixes for memory errors (leaks, buffer overflows, et c.). Also included is a new test driver and updated test suite based on autotest. This version of the Ocapi library is stable and passes all of its tests, however, it should be used for client-side software only.

Source code

Version 1.4.0 in a tar file
ocapi-1.4.0.tar.gz (sig) Required: You will need libcurl and xdr to be available on your system. See our Third-party software page for links to these packages. You will also need the pthreads package which is required by libcurl. Most Linux and OS/X systems have these packages. Other versions of Unix probably do not.

OCAPI 1.33 (2 October 2006)

Binaries

 Linux
Fedora Core 4
 Mac
Mac Power PC
 Mac
Mac i386
 Win32
Win32 build

Source code

Version 1.33 in a tar file
ocapi-1.33.tar.gz Required: You will need libcurl and xdr to be available on your system. See our Third-party software page for links to these packages. You will also need the pthreads package which is required by libcurl.

OCAPI 1.25 (17 April 2006)

Binaries

 Mac
Mac build
 Win32
Win32 command-line executable build
 Linux
Red Hat Enterprose Linux 3
 Linux
Fedora Core 4

Source code

Version 1.25 in a tar file
ocapi-1.25.tar.gz Required: You will need libcurl and xdr to be available on your system. See our Third-party software page for links to these packages. You will also need the pthreads package which is required by libcurl.

Contributed builds

Version 1.25
Contributed: Sharing your binary builds for those operating systems not available here.