[pgrouting-users] TRSP

Stephen Woodbridge woodbri at swoodbridge.com
Wed Jun 27 08:02:13 PDT 2012


I think this would be fine to make such a change. The SQL function 
should not abort with an error is no path is found but probably just 
return NULL or in the case of a set returning function just return no rows.

Patches or a pull request would be appreciated.

-Steve W

On 6/27/2012 10:48 AM, Steve Horn wrote:
> To clarify:
> When I say "I would like to continue processing" I mean to say that I
> would like my plpgsql function to continue processing (the function that
> is calling into the turn_restrict_shortest_path).
>
> On Wed, Jun 27, 2012 at 10:40 AM, Steve Horn <steve at stevehorn.cc
> <mailto:steve at stevehorn.cc>> wrote:
>
>     yeah, path with len==0 is another way to say it.
>
>     On around line 423 of GraphDefinition.cpp the *err_msg variable is
>     assigned "Path Not Found" and a -1 is returned.
>
>     This causes the plpgsql function to abort. Instead of aborting I
>     would like to continue processing.
>
>
>     On Wed, Jun 27, 2012 at 10:29 AM, Max Weninger
>     <max.weninger at gmail.com <mailto:max.weninger at gmail.com>> wrote:
>
>         Hi
>
>         What do you actually mean with "no path"
>         Do you mean a path with len==0?
>
>         regards
>
>         max
>
>         On Wed, 27 Jun 2012 10:19:03 -0400
>         Steve Horn <steve at stevehorn.cc> wrote:
>
>          > Hey Stephen,
>          > I am working with the TRSP code. Instead of returning an
>         error when
>          > the path cannot be found, I was wondering how difficult it
>         would be
>          > to change the function to return no path result instead?
>
>         _______________________________________________
>         Pgrouting-users mailing list
>         Pgrouting-users at lists.osgeo.org
>         <mailto:Pgrouting-users at lists.osgeo.org>
>         http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>
>
>
>
>     --
>     Steve Horn
>
>
>
>
> --
> Steve Horn
>
>
>
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>




More information about the Pgrouting-users mailing list