Skip to content

Smathermather's Weblog

Remote Sensing, GIS, Ecology, and Oddball Techniques

Tag: Headwater Stream Assessment

Database, PostGIS, SQL

SQL/MMore Acrobatics

SELECT b.gid AS gid,
ST_Closestpoint(ST_Collect(a.the_geom), b.the_geom) AS the_geom,
b.stream_nam
FROM public.hydro_polyline_merge1 a INNER JOIN base.streams_phwh b
ON ST_Dwithin(a.the_geom, b.the_geom, 1000)
GROUP BY b.gid, b.the_geom, b.stream_nam Continue reading SQL/MMore Acrobatics

Unknown's avatarsmathermatherSeptember 9, 2010July 7, 2011Leave a comment
Blog at WordPress.com.
  • Subscribe Subscribed
    • Smathermather's Weblog
    • Join 217 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Smathermather's Weblog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar