PostGIS  2.4.9dev-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 #include "librtcore.h"
12 
13 #include "../../../postgis_config.h"
14 #include "../../raster_config.h"
15 
16 #define MAX_CUNIT_MSG_LENGTH 512
17 
18 #define PG_ADD_TEST(suite, testfunc) CU_add_test(suite, #testfunc, testfunc)
19 
20 /* Contains the most recent error message generated by rterror. */
22 
23 /* Resets cu_error_msg back to blank. */
24 void cu_error_msg_reset(void);
25 
26 /* free raster object */
28 
29 /* helper to add bands to raster */
32  rt_pixtype pixtype,
33  int hasnodata, double nodataval
34 );
35 
36 /* Our internal callback to register Suites with the main tester */
37 typedef void (*PG_SuiteSetup)(void);
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
Definition: rtrowdump.py:121
void(* PG_SuiteSetup)(void)
void cu_error_msg_reset(void)
char cu_error_msg[MAX_CUNIT_MSG_LENGTH+1]
rt_pixtype
Definition: librtcore.h:185
void cu_free_raster(rt_raster raster)
rt_band cu_add_band(rt_raster raster, rt_pixtype pixtype, int hasnodata, double nodataval)
This library is the generic raster handling section of PostGIS.
#define MAX_CUNIT_MSG_LENGTH