PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rt_raster_set_scale()

void rt_raster_set_scale ( rt_raster  raster,
double  scaleX,
double  scaleY 
)

Set scale in projection units.

Parameters
raster: the raster to set georeference of
scaleX: scale X in projection units
scaleY: scale Y height in projection units

NOTE: doesn't recompute offsets

Definition at line 137 of file rt_raster.c.

140  {
141  assert(NULL != raster);
142 
143  raster->scaleX = scaleX;
144  raster->scaleY = scaleY;
145 
147 }
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
Definition: rtrowdump.py:121
static void _rt_raster_geotransform_warn_offline_band(rt_raster raster)
Definition: rt_raster.c:95

References _rt_raster_geotransform_warn_offline_band(), and rtrowdump::raster.

Referenced by fillRasterToPolygonize(), RASTER_makeEmpty(), RASTER_mapAlgebra2(), RASTER_mapAlgebraExpr(), RASTER_mapAlgebraFct(), RASTER_mapAlgebraFctNgb(), RASTER_setScale(), RASTER_setScaleXY(), rt_raster_compute_skewed_raster(), rt_raster_from_two_rasters(), rt_raster_gdal_rasterize(), rt_raster_gdal_warp(), rt_raster_iterator(), rt_raster_set_phys_params(), test_band_get_pixel_line(), test_gdal_warp(), test_raster_clone(), test_raster_convex_hull(), test_raster_envelope(), test_raster_envelope_geom(), test_raster_from_two_rasters(), test_raster_fully_within_distance(), test_raster_geos_contains(), test_raster_geos_contains_properly(), test_raster_geos_covered_by(), test_raster_geos_covers(), test_raster_geos_overlaps(), test_raster_geos_touches(), test_raster_intersects(), test_raster_iterator(), test_raster_metadata(), test_raster_perimeter(), test_raster_same_alignment(), test_raster_surface(), test_raster_to_gdal(), and test_raster_within_distance().

Here is the call graph for this function:
Here is the caller graph for this function: