PostGIS  2.1.10dev-r@@SVN_REVISION@@
void rt_raster_set_srid ( rt_raster  raster,
int32_t  srid 
)

Set raster's SRID.

Parameters
raster: the raster to set SRID of
srid: the SRID to set for the raster

Definition at line 5668 of file rt_api.c.

References _rt_raster_geotransform_warn_offline_band(), clamp_srid(), and rt_raster_t::srid.

Referenced by build_overview(), convert_raster(), RASTER_addBandOutDB(), RASTER_asRaster(), RASTER_clip(), RASTER_fromGDALRaster(), RASTER_GDALWarp(), RASTER_makeEmpty(), RASTER_mapAlgebra2(), RASTER_mapAlgebraExpr(), RASTER_mapAlgebraFct(), RASTER_mapAlgebraFctNgb(), RASTER_setPixelValuesGeomval(), RASTER_setSRID(), RASTER_tile(), rt_band_load_offline_data(), rt_raster_clone(), rt_raster_from_band(), rt_raster_from_gdal_dataset(), rt_raster_from_two_rasters(), test_raster_cell_to_geopoint(), test_raster_clone(), test_raster_from_two_rasters(), test_raster_geopoint_to_cell(), and test_raster_metadata().

5668  {
5669  assert(NULL != raster);
5670 
5671  raster->srid = clamp_srid(srid);
5672 
5674 }
int clamp_srid(int srid)
Return a valid SRID from an arbitrary integer Raises a notice if what comes out is different from wha...
Definition: lwutil.c:326
int32_t srid
Definition: rt_api.h:2225
static void _rt_raster_geotransform_warn_offline_band(rt_raster raster)
Definition: rt_api.c:5400

Here is the call graph for this function:

Here is the caller graph for this function: