PostGIS  2.1.10dev-r@@SVN_REVISION@@
raster/test/cunit/cu_tester.h
Go to the documentation of this file.
1 /**********************************************************************
2  * $Id$
3  *
4  * PostGIS - Spatial Types for PostgreSQL
5  * http://postgis.net
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  **********************************************************************/
22 
23 #include "rt_api.h"
24 
25 #define MAX_CUNIT_MSG_LENGTH 512
26 #define PG_ADD_TEST(suite, testfunc) CU_add_test(suite, #testfunc, testfunc)
27 
28 /* Contains the most recent error message generated by rterror. */
30 
31 /* Resets cu_error_msg back to blank. */
32 void cu_error_msg_reset(void);
33 
34 /* free raster object */
36 
37 /* helper to add bands to raster */
40  rt_pixtype pixtype,
41  int hasnodata, double nodataval
42 );
43 
44 /* Our internal callback to register Suites with the main tester */
45 typedef void (*PG_SuiteSetup)(void);
This library is the generic raster handling section of PostGIS.
void(* PG_SuiteSetup)(void)
void cu_error_msg_reset(void)
tuple raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
Definition: rtrowdump.py:123
char cu_error_msg[MAX_CUNIT_MSG_LENGTH+1]
void cu_free_raster(rt_raster raster)
rt_band cu_add_band(rt_raster raster, rt_pixtype pixtype, int hasnodata, double nodataval)
rt_pixtype
Definition: rt_api.h:172
#define MAX_CUNIT_MSG_LENGTH