Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2056 closed defect (fixed)

[raster] ST_SetValue() for point does NOT check SRID

Reported by: Bborie Park Owned by: Bborie Park
Priority: blocker Milestone: PostGIS 2.0.2
Component: raster Version: 2.0.x
Keywords: history Cc:


There is no validation to ensure that the raster and the point geometry is of the same SRID.

Change History (3)

comment:1 by Bborie Park, 12 years ago

WITH foo AS (
	SELECT ST_AddBand(ST_MakeEmptyRaster(5, 5, -119, 51, 1, -1, 0, 0, 4326), 1, '8BUI', 1, 0) AS rast
), bar AS (
	SELECT ST_Transform('SRID=4326;POINT(-118 50)'::geometry, 26911) AS geom
	ST_SetValue(rast, 1, geom, 5)
FROM foo

comment:2 by Bborie Park, 12 years ago

Component: postgisraster
Resolution: fixed
Status: newclosed

fixed in r10462

comment:3 by robe, 12 years ago

Keywords: history added
Note: See TracTickets for help on using tickets.