PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ _rti_warp_arg_init()

static _rti_warp_arg _rti_warp_arg_init ( )
static

Definition at line 71 of file rt_warp.c.

71  {
72  _rti_warp_arg arg = NULL;
73 
74  arg = rtalloc(sizeof(struct _rti_warp_arg_t));
75  if (arg == NULL) {
76  rterror("_rti_warp_arg_init: Could not allocate memory for _rti_warp_arg");
77  return NULL;
78  }
79 
80  arg->src.drv = NULL;
81  arg->src.destroy_drv = 0;
82  arg->src.ds = NULL;
83  arg->src.srs = NULL;
84 
85  arg->dst.drv = NULL;
86  arg->dst.destroy_drv = 0;
87  arg->dst.ds = NULL;
88  arg->dst.srs = NULL;
89 
90  arg->wopts = NULL;
91 
92  arg->transform.option.item = NULL;
93  arg->transform.option.len = 0;
94 
95  arg->transform.arg.transform = NULL;
96  arg->transform.arg.imgproj = NULL;
97  arg->transform.arg.approx = NULL;
98 
99  arg->transform.func = NULL;
100 
101  return arg;
102 }
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
Definition: rt_context.c:199
void * rtalloc(size_t size)
Wrappers used for managing memory.
Definition: rt_context.c:171
char * srs
Definition: rt_warp.c:47
GDALDriverH drv
Definition: rt_warp.c:45
struct _rti_warp_arg_t::@14 dst
GDALDatasetH ds
Definition: rt_warp.c:46
void * transform
Definition: rt_warp.c:60
int destroy_drv
Definition: rt_warp.c:48
GDALWarpOptions * wopts
Definition: rt_warp.c:51
struct _rti_warp_arg_t::@14 src

References _rti_warp_arg_t::destroy_drv, _rti_warp_arg_t::drv, _rti_warp_arg_t::ds, _rti_warp_arg_t::dst, rtalloc(), rterror(), _rti_warp_arg_t::src, _rti_warp_arg_t::srs, _rti_warp_arg_t::transform, and _rti_warp_arg_t::wopts.

Referenced by rt_raster_gdal_warp().

Here is the call graph for this function:
Here is the caller graph for this function: