[pgrouting-users] Re: Error whith
Daniel Kastl
daniel at georepublic.de
Sat Aug 20 03:41:12 EDT 2011
On Fri, Aug 19, 2011 at 11:50 PM, Jules Kouadio <sekedoua at gmail.com> wrote:
> *Hi everybody.
> After compiling pgrouting whith success, i begin my fist test whith the
> shortest_path() function. My data come from open street map. I've insert it
> in my database whith ./osm2pgrouting.
>
> But a get an error when i execute this request:
>
>
> SELECT * FROM shortest_path('SELECT gid as
> id,source::integer,target::integer,length::double precision as cost FROM
> ways',965,14, false, false);
>
> ERROR: Start vertex was not found.
>
> Do you know where is the problem ?
>
> *
Start vertex was not found ... that's the problem. You need to have "965"
and "14" in "source" and "target". Maybe you took the road link id (gid).
Daniel
--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl at georepublic.de
Web: http://georepublic.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20110820/ba2b690e/attachment.html
More information about the Pgrouting-users
mailing list