PostGIS  2.5.7dev-r@@SVN_REVISION@@
raster/test/cunit/cu_tester.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * PostGIS - Spatial Types for PostgreSQL
4  * http://postgis.net
5  *
6  * This is free software; you can redistribute and/or modify it under
7  * the terms of the GNU General Public Licence. See the COPYING file.
8  *
9  **********************************************************************/
10 
11 #ifndef _CU_RASTER_TESTER_H
12 #define _CU_RASTER_TESTER_H 1
13 
14 #include "librtcore.h"
15 
16 #include "../../../postgis_config.h"
17 #include "../../raster_config.h"
18 
19 #define MAX_CUNIT_MSG_LENGTH 512
20 
21 #define PG_ADD_TEST(suite, testfunc) CU_add_test(suite, #testfunc, testfunc)
22 
23 /* Contains the most recent error message generated by rterror. */
24 extern char cu_error_msg[];
25 
26 /* Resets cu_error_msg back to blank. */
27 void cu_error_msg_reset(void);
28 
29 /* free raster object */
31 
32 /* helper to add bands to raster */
35  rt_pixtype pixtype,
36  int hasnodata, double nodataval
37 );
38 
39 /* Our internal callback to register Suites with the main tester */
40 typedef void (*PG_SuiteSetup)(void);
41 
42 #endif /* _CU_RASTER_TESTER_H */
rt_pixtype
Definition: librtcore.h:185
This library is the generic raster handling section of PostGIS.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
Definition: rtrowdump.py:121
rt_band cu_add_band(rt_raster raster, rt_pixtype pixtype, int hasnodata, double nodataval)
void(* PG_SuiteSetup)(void)
void cu_free_raster(rt_raster raster)
void cu_error_msg_reset(void)
char cu_error_msg[]