[postgis-users] - The greater length River inside one Watershed
Marcello Benigno
benigno.marcello at gmail.com
Fri May 13 10:02:04 PDT 2011
Hello Friends,
The problem was not solved yet, but with the help of:
http://blog.cleverelephant.ca/2010/07/network-walking-in-postgis.html
I could find the following rivers of my batch point (test1.png), I would
find just the opposite result, the longest length in the opposite direction,
that is the longest river inside the basin (in yellow - test2.png).
-- the word rio is river in Portuguese
WITH RECURSIVE walk_network(gid, the_geom) AS (
SELECT gid, the_geom
FROM rio
WHERE gid = 311
UNION ALL
SELECT n.gid, n.the_geom
FROM rio n, walk_network w
WHERE ST_DWithin(ST_EndPoint(w.the_geom),ST_StartPoint(n.the_geom),0.01)
)
SELECT *
FROM walk_network;
I tried to create a view with the direction reversed my geometry with
ST_Reverse() and apply the same function as before, but unsuccessfully.
Thanks in advance,
--
*Marcello Benigno B. de Barros Filho*
Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
http://profmarcello.blogspot.com
http://about.me/marcello.benigno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110513/46f212d3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test1.png
Type: image/png
Size: 147570 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110513/46f212d3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.png
Type: image/png
Size: 161403 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110513/46f212d3/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rio.sql.zip
Type: application/zip
Size: 62369 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110513/46f212d3/attachment.zip>
More information about the postgis-users
mailing list