[postgis-users] raster intersecting geometry

Amy O'Keefe OKeefe-A2 at ulster.ac.uk
Fri Nov 6 04:49:38 PST 2020

Hi all,
could anyone help me with the below query?
I'm trying to find the geometries from a table (ch04.newpoint) which intersect the raster (ch04.dumprastval).

However I can't seem to get it to work!


CAST((gval).val As integer) AS val,
ST_Union((gval).geom) As geom
SELECT ST_Intersection(
) As gval
FROM ch04.dumprastval
ST_GeomFromText(geom,4326) FROM ch04.newpoint
ON ST_Intersects(rast,geom)
) As foo
GROUP BY (gval).val
ORDER BY (gval).val;

This email and any attachments are confidential and intended solely for the use of the addressee and may contain information which is covered by legal, professional or other privilege. If you have received this email in error please notify the system manager at postmaster at ulster.ac.uk and delete this email immediately. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Ulster University.
The University's computer systems may be monitored and communications carried out on them may be recorded to secure the effective operation of the system and for other lawful purposes. Ulster University does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of a separate attachment, the text of email is not intended to form a binding contract. Correspondence to and from the University may be subject to requests for disclosure by 3rd parties under relevant legislation.
The Ulster University was founded by Royal Charter in 1984 and is registered with company number RC000726 and VAT registered number GB672390524.The primary contact address for Ulster University in Northern Ireland is Cromore Road, Coleraine, Co. Londonderry BT52 1SA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20201106/ff5f36f6/attachment.html>

More information about the postgis-users mailing list