[pgrouting-dev] pgRouting 3 questions
Daniel Kastl
daniel at georepublic.de
Fri Apr 15 06:39:47 EDT 2011
Hi Cathal,
The subject of your today's email is maybe not the best selection ;-)
You can also send three emails with one question each.
2011/4/15 cathal coffey <coffey.cathal at gmail.com>
> Hi Devs,
>
> I have three questions today.
>
> *1) I would like pgrouting to be aware of one-way streets.*
> I have read the page "How to handle one-way streets" but it has left me
> wondering, am I supposed to manually identify and label every one way street
> in my database?
>
>
You can also try osm2po (osm2po.de) to import OSM data. It's fast and adds
several useful attributes to the table. It's not Open Source license though,
but it's free to use.
> *2) I am interested in buses so I do not want any of my shortest paths to
> include (pedestrian or bike) ways. *
> I am using the wrapper function dijkstra_sp_directed, is there a way to
> tell this function to ignore ways that are of type* *pedestrian or bike.
>
You just select the data you need. That's it.
You need to modify wrappers or need to use the core functions if you want to
have full control over what you want to select and what you don't want to
select.
>
> *3) pgRouting comes with some useful wrapper functions but it seems to me
> that it is missing one very useful one. *
> Why does pgRouting not ship with a function that calculates shortest paths
> from two (lon, lat) pairs?
> Both myself and Daniel have written functions that do just this.
> Daniel: http://websi.openvrp.com/
It wasn't me, it was Anton, who wrote the wrappers.
The reason why there are not more wrappers available on the website is
simple: nobody shares them ;-)
There might be several reasons for that, for example:
- it's too much to share them and contribute (we hope we made this easier
by migrating to Github)
- they are made for a certain data provider or a specific use case
>
> Cathal: http://ncg.nuim.ie/i2maps/projects/sp/index.html
> I am not familiar enough with plpgsql to convert my code from Python but if
> someone else wanted to do it then I would be very happy to see this shipped
> with pgRouting.
>
>
It's nice that you share your experience and code. Maybe a tutorial about
how to write a wrapper would help a lot of users. Any volunteer is welcome!
The library itself should be universal and work for any network data though.
It's important to keep this in mind.
Daniel
> Kind regards,
> Cathal
>
>
>
> _______________________________________________
> pgrouting-dev mailing list
> pgrouting-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-dev
>
>
--
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-dev/attachments/20110415/da5c91f1/attachment.html
More information about the pgrouting-dev
mailing list