Ticket #1765 (new defect)

Opened 13 months ago

Incorrect ST_Extent example in README_Raster.txt

Reported by: mloskot Owned by: robe
Priority: medium Milestone: PostGIS Future
Component: documentation Version: 2.0.x
Keywords: extent Cc:

Description

Using PostgreSQL 9.1 x86 on Windows 7

SELECT postgis_raster_lib_build_date(), postgis_raster_lib_version();

"2012-04-03 23:11:11";"2.0.0 r9605"

 README_Raster.txt includes the following SQL:

SELECT ST_Extent(rast) FROM rt_test

which obviously leads to

ERROR:  function st_extent(raster) does not exist
LINE 1: SELECT ST_Extent(rast) FROM rt_test
               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

Apparently, correct command should read

SELECT ST_Extent(rast::geometry) FROM rt_test
Note: See TracTickets for help on using tickets.