PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ rt_raster_set_srid()

void rt_raster_set_srid ( rt_raster  raster,
int32_t  srid 

Set raster's SRID.

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

Definition at line 363 of file rt_raster.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(), rt_raster_gdal_warp(), test_raster_cell_to_geopoint(), test_raster_clone(), test_raster_from_two_rasters(), test_raster_geopoint_to_cell(), and test_raster_metadata().

363  {
364  assert(NULL != raster);
366  raster->srid = clamp_srid(srid);
369 }
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:347
int32_t srid
Definition: librtcore.h:2300
static void _rt_raster_geotransform_warn_offline_band(rt_raster raster)
Definition: rt_raster.c:95
Here is the call graph for this function:
Here is the caller graph for this function: