typedef struct { LONG minx; LONG miny; LONG maxx; LONG maxy; LONG level; } TILEENV; SE_RASCONSTRAINT rasconstraint; SE_RASTILEINFO rastile_info; SE_RASTERATTR raster_attrib; TILEENV tileenv; get_tile_envelope(raster_attrib,&tileenv); rc = SE_rasconstraint_set_envelope ( rasconstraint, tileenv.minx, tileenv.minx, tileenv.maxx, tileenv.maxy); check_error (rc, NULL, NULL, "SE_rasconstraint_set_envelope"); band_numbers = malloc(sizeof(LONG) * number_of_bands); for (i=0; i