[pgrouting-dev] How many people use the wrapper functions?

Worth Lutz wal3 at mindspring.com
Mon May 13 10:07:48 PDT 2013


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.

 

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.

 

I'm sure there are other simple concepts which could be demonstrated in a
similar fashion.

 

Worth

 

  _____  

From: pgrouting-dev-bounces at lists.osgeo.org
[mailto:pgrouting-dev-bounces at lists.osgeo.org] On Behalf Of Daniel Kastl
Sent: Monday, May 13, 2013 12:46 PM
To: pgRouting developers mailing list
Subject: Re: [pgrouting-dev] How many people use the wrapper functions?

 

 

I also learned what I know of PL/pgSQL by modifying the wrappers and I
would have had a really hard time implementing the 'edge splitting' on
my own. So I'm really grateful I found the wrappers. On the other hand
the wrapper I used wasn't even included in pgrouting, so I guess we'd be
safe to have them outside the distribution, either in the docs or as an
external download.

 

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.

 

The idea of the "pgrouting-contrib" repository was to provide a place for a
collection of user-contributed wrapper functions.

But as you can see, the repository has been mostly inactive and there was no
second wrapper added ever to the initial one.

So this was probably not a smart way to solve this ;-)

 

Github Wiki pages are also somehow difficult to organize. 

Maybe Gist (https://gist.github.com/) + list on a Wiki page would be better
... but in the end it's important that someone is willing to share his code.

 

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.

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.

 

 

Daniel




 

-- 
Georepublic UG & Georepublic Japan
eMail:  <mailto:daniel.kastl at georepublic.de> daniel.kastl at georepublic.de
Web:  <http://georepublic.de/> http://georepublic.de 

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3336 / Virus Database: 3162/6320 - Release Date: 05/13/13

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-dev/attachments/20130513/2f28cdc3/attachment-0001.html>


More information about the pgrouting-dev mailing list