[cig-commits] r4105 - cs/spatialdata-0.1/trunk/tests/libtests/spatialdb

baagaard at geodynamics.org baagaard at geodynamics.org
Tue Jul 25 17:38:11 PDT 2006


Author: baagaard
Date: 2006-07-25 17:38:10 -0700 (Tue, 25 Jul 2006)
New Revision: 4105

Added:
   cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/testcquery.c
   cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/testcquery.h
Log:
Added forgotten files.

Added: cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/testcquery.c
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/testcquery.c	2006-07-26 00:37:42 UTC (rev 4104)
+++ cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/testcquery.c	2006-07-26 00:38:10 UTC (rev 4105)
@@ -0,0 +1,29 @@
+/*  -*- C -*-  */
+/*
+ * ======================================================================
+ *
+ *                           Brad T. Aagaard
+ *                        U.S. Geological Survey
+ *
+ * {LicenseText}
+ *
+ * ======================================================================
+ */
+
+#include "testcquery.h"
+#include "spatialdata/spatialdb/cspatialdb.h"
+
+/* ------------------------------------------------------------------- */
+int
+testcquery(void* db,
+	   double** pVals,
+	   int numVals,
+	   double x,
+	   double y,
+	   double z,
+	   void* cs)
+{ // testcquery
+  return spatialdb_query(db, pVals, numVals, x, y, z, cs);
+} // testcquery
+
+/* End of file  */

Added: cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/testcquery.h
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/testcquery.h	2006-07-26 00:37:42 UTC (rev 4104)
+++ cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/testcquery.h	2006-07-26 00:38:10 UTC (rev 4105)
@@ -0,0 +1,38 @@
+/*  -*- C -*-  */
+/*
+ * ======================================================================
+ *
+ *                           Brad T. Aagaard
+ *                        U.S. Geological Survey
+ *
+ * {LicenseText}
+ *
+ * ======================================================================
+ */
+
+#if !defined(spatialdata_spatialdb_testcquery_h)
+#define spatialdata_spatialdb_testcquery_h
+
+/** Call spatialdb_query().
+ *
+ * @param db Pointer to SpatialDB
+ * @param pVals Pointer to computed values (output from query)
+ * @param numVals Number of values expected (size of pVals array)
+ * @param x C coordinate of location for query
+ * @param y Y coordinate of location for query
+ * @param z Z coordinate of location for query
+ * @param cs Pointer to CoordSys
+ *
+ * @returns 0 on success, 1 on failure (i.e., values not set)
+ */
+int testcquery(void* db,
+	       double** pVals,
+	       int numVals,
+	       double x,
+	       double y,
+	       double z,
+	       void* cs);
+
+#endif /* spatialdata_spatialdb_testcquery_h */
+
+/* End of file  */



More information about the cig-commits mailing list