Hi David,
This is a good example. I have modified this to walk networks before, and it's a minimal and understandable example:
http://blog.cleverelephant.ca/2010/07/network-walking-in-postgis.html
There may be some better ways to do this, as the postgres tooling
has changed quite a bit. The use of a function may be precluded by
some modern fancy join type. Others can speak better to that than
I can these days.
Also, if you don't mind installing one more thing, pgrouting will do network traversal much more efficiently than a WITH RECURSIVE network traversal:
Cheers,
Best,
Steve
WARNING: This email originated outside of Cleveland Metroparks. DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe.
_______________________________________________ postgis-users mailing list postgi...@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/postgis-users