LONG
rc;
SE_RASCOLINFO rascol_info;
SE_COORDREF coordref;
PE_COORDSYS pe = NULL;
/*
Initialize the SE_RASCOLINFO structure */
rc =
SE_rascolinfo_create (&rascol_info);
check_error (rc, NULL, NULL, "SE_rascolinfo_create");
/*
Initialize the coordinate reference structure */
rc =
SE_coordref_create (&coordref);
check_error (rc, NULL, NULL, "SE_coordref_create");
/*
Generate the coordinate reference string */
pe =
pe_factory (PE_PCS_WGS_1984_UTM_31N);
check_error (NULL == pe, NULL, NULL, "pe_factory");
/*
Set the coordinate reference string on the coordinate */
/*
coordinate reference structure */
rc
= SE_coordref_set_coordsys (coordref, pe);
check_error (rc, NULL, NULL, "SE_coordref_set_coordsys");
/*
Set the coordinate reference on the raster column info */
/*
structure */
rc = SE_rascolinfo_set_coordref (rascol_info, coordref);
check_error (rc, NULL, NULL, "SE_rascolinfo_set_coordref");
/*
Clean up the structures */
pe_coordsys_del (pe);
SE_coordref_free (coordref);
/*
Add the raster column to the business table. */
printf
("Creating raster column.../n\n");
rc =
SE_rastercolumn_create (connection, rascol_info);
check_error (rc, connection, NULL, "SE_rastercolumn_create");