85{
88 int32_t srid;
89
90 if (PG_ARGISNULL(0)) PG_RETURN_NULL();
92
94 if ( ! raster ) {
95 PG_FREE_IF_COPY(pgraster, 0);
96 elog(ERROR, "RASTER_getSRID: Could not deserialize raster");
97 PG_RETURN_NULL();
98 }
99
101
103 PG_FREE_IF_COPY(pgraster, 0);
104
105 PG_RETURN_INT32(
srid);
106}
int32_t rt_raster_get_srid(rt_raster raster)
Get raster's SRID.
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
rt_raster rt_raster_deserialize(void *serialized, int header_only)
Return a raster from a serialized form.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...