[postgis-users] ST_Intersects Error

elliott elliott at cpi.com
Tue Nov 1 07:10:01 PDT 2011


I am getting the following error when using the ST_Intersects function 
in this query:

STATEMENT:  select ST_Value(rast, 
ST_Transform(ST_SetSRID(ST_Point(126.5, 37.5), 4326), ST_SRID(rast))) 
from srtm3 where ST_Intersects(rast, 
ST_Transform(ST_SetSRID(ST_Point(126.5, 37.5), 4326), ST_SRID(rast)));
ERROR:  lower bound of FOR loop cannot be null
CONTEXT:  PL/pgSQL function "_st_intersects" line 97 at FOR with integer 
loop variable

I am not sure what it is complaining about.  Any help would be greatly 
appreciated.



More information about the postgis-users mailing list