<br><br><div class="gmail_quote">On Mon, Jul 2, 2012 at 9:41 AM, "Christophe Damour (SIGéal)" <span dir="ltr"><<a href="mailto:sigeal@sigeal.com" target="_blank">sigeal@sigeal.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I totally agree with both of you, Daniel and Mario.<br>
I too was a bit confused by existing wrappers when I began to use pgrouting.<br>
Wrappers should add extra functionalities.<br>
<br>
A function that accept source and target x/y would indeed be usefull, especially if it can return the first and last edge cut at the actual projection of source and target x/y. I will need such a function soon, so I will have to work on it...<br>

</blockquote><div><br></div><div>This is indeed an often requested "feature". But it can be more tricky than it initially looks like.</div><div>There is some example you can start with: <a href="https://github.com/pgRouting/pgrouting-contrib/tree/master/wrapper">https://github.com/pgRouting/pgrouting-contrib/tree/master/wrapper</a></div>

<div><br></div><div>For wrappers "shipped" we should define some criteria. As more we have as more needs to be documented and maintained. Instead a tutorial or a few recipes to help users to write and modify their own custom wrappers might make more sense. </div>

<div><br></div><div>Daniel</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Any hints appreciated.<br>
<br>
--<br>
Christophe<br>
<br>
<br>
Le 02/07/2012 09:28, Mario Basa a écrit :<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Daniel,<br>
<br>
I agree. Right now it really is quite confusing which function to use,<br>
and the description of each function is not also very helpful.<br>
<br>
I am curious though why is it that there is no sp function that<br>
accepts source_x,source_y and target_x,target_y parameters similar to<br>
that of driving_distance. This I think, will be very useful.<br>
<br>
Mario.<br>
<br>
<br>
On Mon, Jul 2, 2012 at 4:11 PM, Daniel Kastl <<a href="mailto:daniel@georepublic.de" target="_blank">daniel@georepublic.de</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Mario,<br>
<br>
In my opinion I would drop functions like the one you mentioned and reduce<br>
the number of wrappers as much as possible.<br>
<br>
I think a good and useful wrapper function is one, that selects a BBOX<br>
containing start and end point and returns records with geometries.<br>
Then everyone can modify it as needed. I don't think we should simplify<br>
those basic wrappers and make assumptions like naming the cost column<br>
"length" or so.<br>
<br>
What do you think?<br>
<br>
Daniel<br>
<br>
<br>
<br>
<br>
On Mon, Jul 2, 2012 at 9:02 AM, Mario Basa <<a href="mailto:mario.basa@gmail.com" target="_blank">mario.basa@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
The core wrapper functions have<br>
<br>
dijkstra_sp_delta_directed<br>
astar_sp_delta_directed<br>
<br>
with "length" hard coded as cost for some reason.<br>
<br>
While astar_sp_delta_cc has a cost column parameter, but all it does<br>
is call astar_sp_delta_cc_directed  with<br>
reverse_cost=false,directed=<u></u>false.<br>
<br>
There is also no dijkstra_sp_delta_cc with a cost column parameter, so<br>
a user has to rename the column containing the cost value to "length"<br>
to use this clipping function. Etc....<br>
<br>
Personally I am getting confused with all these functions and would<br>
like to just trim it down to dijkstra_sp_delta and astar_sp_delta with<br>
a cost column parameter along with reverse_cost and directed<br>
parameters.<br>
<br>
Opinions?<br>
<br>
Mario.<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
</blockquote>
<br>
<br>
<br>
--<br>
Georepublic UG & Georepublic Japan<br>
eMail: <a href="mailto:daniel.kastl@georepublic.de" target="_blank">daniel.kastl@georepublic.de</a><br>
Web: <a href="http://georepublic.de" target="_blank">http://georepublic.de</a><br>
<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171)" target="_blank">daniel.kastl@georepublic.de</a><br>

Web: <a href="http://georepublic.de/" style="color:rgb(66,99,171)" target="_blank">http://georepublic.de</a></span><br>