<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 2:07 AM, Worth Lutz <span dir="ltr"><<a href="mailto:wal3@mindspring.com" target="_blank">wal3@mindspring.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<u></u>
<u></u>
<u></u>





<div lang="EN-US" link="blue" vlink="blue">

<div>

<p class=""><font size="3" color="blue" face="Arial"><span style="font-size:12pt;font-family:Arial;color:blue">I think that the “Gists” idea
is a good one.  I like the idea of having some simple wrapper examples which
demonstrate a concept. They do not have to be the solution to everyone’s
problem.</span></font></p></div></div></blockquote><div><br></div><div style>The advantages Gists are:</div><div style><ul style><li style>they can be discussed (comments beneath the source)</li><li style>they keep a reference to the author</li>

<li style>they can be forked</li><li style>no need to handle permissions for writing as it had to be for a "contrib" repository </li></ul><div style>So we could copy the current wrapper functions into Gists and then everyone could help to make them better.</div>

<div style><br></div><div style>"Highlights" could then also be linked in the manual or used for the tutorial.</div><div style><br></div><div style>You can already start: <a href="https://github.com/pgRouting/pgrouting/wiki/Writing-functions">https://github.com/pgRouting/pgrouting/wiki/Writing-functions</a> ;-)</div>

<div style><br></div><div style>Daniel</div><div style><br></div><div><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div lang="EN-US" link="blue" vlink="blue"><div><p class=""><font size="3" color="blue" face="Arial"><span style="font-size:12pt;font-family:Arial;color:blue"><u></u><u></u></span></font></p>

<p class=""><font size="3" color="blue" face="Arial"><span style="font-size:12pt;font-family:Arial;color:blue"><u></u> <u></u></span></font></p>

<p class=""><font size="3" color="blue" face="Arial"><span style="font-size:12pt;font-family:Arial;color:blue">An example of this would be the method
demonstrated in the “only” wrapper in the “pgrouting-contrib”
directory: How to split the nearest edge to a point and route from the point to
the split point and then to the same situation at the other end.<u></u><u></u></span></font></p>

<p class=""><font size="3" color="blue" face="Arial"><span style="font-size:12pt;font-family:Arial;color:blue"><u></u> <u></u></span></font></p>

<p class=""><font size="3" color="blue" face="Arial"><span style="font-size:12pt;font-family:Arial;color:blue">I’m sure there are other simple
concepts which could be demonstrated in a similar fashion.<u></u><u></u></span></font></p>

<p class=""><font size="3" color="blue" face="Arial"><span style="font-size:12pt;font-family:Arial;color:blue"><u></u> <u></u></span></font></p>

<p class=""><font size="3" color="blue" face="Arial"><span style="font-size:12pt;font-family:Arial;color:blue">Worth<u></u><u></u></span></font></p>

<p class=""><font size="3" color="blue" face="Arial"><span style="font-size:12pt;font-family:Arial;color:blue"><u></u> <u></u></span></font></p>

<div>

<div class="" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12pt">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class=""><b><font face="Tahoma"><span style="font-size:10pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font face="Tahoma"><span style="font-size:10pt;font-family:Tahoma"> <a href="mailto:pgrouting-dev-bounces@lists.osgeo.org" target="_blank">pgrouting-dev-bounces@lists.osgeo.org</a>
[mailto:<a href="mailto:pgrouting-dev-bounces@lists.osgeo.org" target="_blank">pgrouting-dev-bounces@lists.osgeo.org</a>] <b><span style="font-weight:bold">On Behalf Of </span></b>Daniel Kastl<br>
<b><span style="font-weight:bold">Sent:</span></b> Monday, May 13, 2013 12:46
PM</span></font></p><div class="im"><font face="Tahoma"><br>
<b><span style="font-weight:bold">To:</span></b> <u></u>pgRouting
 developers mailing list<u></u><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [pgrouting-dev] How
many people use the wrapper functions?</font></div><u></u><u></u><p></p>

</div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"><u></u> <u></u></span></font></p>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"><u></u> <u></u></span></font></p>

<div>

<div>

<blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">

<div>

<blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">I also learned what I know of PL/pgSQL by modifying the wrappers and I</span></font></p><div><div class="h5"><font size="3" face="Times New Roman"><br>


would have had a really hard time implementing the 'edge splitting' on<br>
my own. So I'm really grateful I found the wrappers. On the other hand<br>
the wrapper I used wasn't even included in pgrouting, so I guess we'd be<br>
safe to have them outside the distribution, either in the docs or as an<br>
external download.<u></u><u></u></font></div></div><p></p>

</blockquote>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"><u></u> <u></u></span></font></p>

</div><div><div class="h5">

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">Daniel and I have discussed adding a contrib directory, but then we get
a lot of stuff, that we don't know if it work with the current release. I think
we would be more inclined to have a wiki page that links to 3rd party github
projects or have a tips and tricks wiki page. The ideal situation is that we
link to a page the you maintain because that de-clutters the pgrouting maintained
pages and files.<u></u><u></u></span></font></p>

</div></div></blockquote><div><div class="h5">

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">The idea of the "pgrouting-contrib" repository was to provide
a place for a collection of user-contributed wrapper functions.<u></u><u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">But as you can see, the repository has been mostly inactive and there
was no second wrapper added ever to the initial one.<u></u><u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">So this was probably not a smart way to solve this ;-)<u></u><u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">Github Wiki pages are also somehow difficult to organize. <u></u><u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">Maybe Gist (<a href="https://gist.github.com/" target="_blank">https://gist.github.com/</a>) +
list on a Wiki page would be better ... but in the end it's important that
someone is willing to share his code.<u></u><u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">I don't want to maintain the current (arbitrary) wrapper functions just
to have some examples, but I know that it is difficult to find good resources
about writing in pl/pgsql, and it's usually best to learn from good examples.<u></u><u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">Right now I think that having some useful recipes and code snippets in
the documentation would be best. And we could start the list of
"Gists" with a few good wrapper examples, and then hope that more
people will contribute with even better examples.<u></u><u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"> <u></u><u></u></span></font></p>

</div>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">Daniel<u></u><u></u></span></font></p>

</div>

</div></div></div><div><div class="h5">

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"><br clear="all">
<u></u><u></u></span></font></p>

<div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt"><u></u> <u></u></span></font></p>

</div>

<p class=""><font size="3" face="Times New Roman"><span style="font-size:12pt">-- <br>
</span></font><font face="Arial"><span style="font-size:10pt;font-family:Arial">Georepublic UG & Georepublic <u></u><u></u>Japan<u></u><u></u><br>
eMail: <a href="mailto:daniel.kastl@georepublic.de" target="_blank"><font color="#4263ab"><span style="color:rgb(66,99,171)">daniel.kastl@georepublic.de</span></font></a><br>
Web: <a href="http://georepublic.de/" target="_blank"><font color="#4263ab"><span style="color:rgb(66,99,171)">http://georepublic.de</span></font></a></span></font> <u></u><u></u></p>

</div></div></div>

</div>

<div class="" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12pt">

<hr size="1" width="100%" noshade color="#aca899" align="center">

</span></font></div>

<p class="" color="#000000"><font size="3" face="Times New Roman"><span style="font-size:12pt"></span></font></p><div class="im"><font size="3" face="Times New Roman">No virus found in this message.<br>
Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br></font></div><font size="3" face="Times New Roman">
Version: 2013.0.3336 / Virus Database: 3162/6320 - Release Date: 05/13/13<u></u><u></u></font><p></p>

</div>

</div>


<br>_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
<br></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>
</div></div>