Opened 6 years ago

Closed 6 years ago

Last modified 6 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:

Description

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

Change History (3)

comment:1 Changed 6 years ago by Bborie Park

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
)
SELECT
	ST_SetValue(rast, 1, geom, 5)
FROM foo
CROSS JOIN bar;

comment:2 Changed 6 years ago by Bborie Park

Component: postgisraster
Resolution: fixed
Status: newclosed

fixed in r10462

comment:3 Changed 6 years ago by robe

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