Edzer,

I'm sorry.

The only control I did was checking if the resulting network looked right.
At a global extent, it was, but zooming in revealed some errors.

The reason why I didn't compute the shortest path calculation on my script
is that I didn't have the minimum knowledge in igraph to do it. That's why
I said I didn't test the script completely. I should have mentionned I
expected some feedback on the shortest path calculation.

Your feedback and the code published by Barry helped me do some deeper
inspection.

The fact is that the lines that must go from one point to the nearest point
on the lines network are well created but some connect to the network, some
not. For those who don't, the distance between the end segment point and
the line to which it is supposed is extremely small.

My intent wasn't to pollute this thread, rather to contribute to it, not as
an "expert", which I am not, but as a beginner. I'll be more cautious in
the future, with all the respect I owe to the R-sig-geo contributors who
participate on the list.

Mathieu

2012/9/11 Edzer Pebesma <edzer.pebesma@uni-muenster.de>

>
>
> On 09/10/2012 12:47 PM, Mathieu Rajerison wrote:
> > Barry,
> >
> > I looked at your code and I wondered if it would not be more convenient
> to
> > find the closest point on a an edge rather than the closest vertex?
> >
> > In this case, what technique would be the best? I thought of
> > spatstat::project2Segment that I used in my script (but Edzer says it
> > doesn't work - I have to check that)
>
> I only made a comment on sending untested scripts, I made no comment on
> whether project2Segment did what you want it to do.
>
> >
> >
> > Mathieu
> >
> >
> > 2012/9/10 Mathieu Rajerison <mathieu.rajerison@gmail.com>
> >
> >> It looks really nice.
> >>
> >> Thanks Barry!
> >>
> >>
> >> 2012/9/9 Barry Rowlingson <b.rowlingson@lancaster.ac.uk>
> >>
> >>> I've just pushed a cleanup and a bunch of examples to RPubs:
> >>>
> >>> http://rpubs.com/geospacedman/routing
> >>>
> >>>  It uses the latest igraph!
> >>>
> >>>  It's all there, building the network and routing and plotting.
> >>>
> >>> Barry
> >>>
> >>> _______________________________________________
> >>> R-sig-Geo mailing list
> >>> R-sig-Geo@r-project.org
> >>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >>>
> >>
> >>
> >
>
> --
> Edzer Pebesma
> Institute for Geoinformatics (ifgi), University of Münster
> Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
> 8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
> http://www.52north.org/geostatistics      e.pebesma@wwu.de
>
>

	[[alternative HTML version deleted]]

