IF ( gtype != 'ST_Point' ) THEN
RAISE EXCEPTION 'Attempting to get the value of a pixel with a non-point geometry';
END IF;
+
+ IF ST_SRID(pt) != ST_SRID(rast) THEN
+ RAISE EXCEPTION 'Raster and geometry do not have the same SRID';
+ END IF;
+
x := st_x(pt);
y := st_y(pt);
RETURN st_value(rast,
NOTICE: Attempting to get pixel value with out of range raster coordinates: (-2, -2)
NOTICE: Attempting to get pixel value with out of range raster coordinates: (-2, -2)
NOTICE: Attempting to get pixel value with out of range raster coordinates: (-2, -2)
+ERROR: Raster and geometry do not have the same SRID
+ERROR: Raster and geometry do not have the same SRID
NOTICE: Raster do not have a nodata value defined. Set band nodata value first. Nodata value not set. Returning original raster
NOTICE: Raster do not have a nodata value defined. Set band nodata value first. Nodata value not set. Returning original raster
NOTICE: Raster do not have a nodata value defined. Set band nodata value first. Nodata value not set. Returning original raster