1

Is there any way to convert data from a PostgreSQL noded table into an osm2po graph? this library is able to read pbf data and generate a graph from osm data but If I want to update roads data it is not possible. I can update a PostgreSQL database which contains osm data but have no idea if it is possible to deploy them into an osm2po graph?

1 Answer 1

3

I'm sorry it's not. osm2po is a chain of many conversion steps. The generated postgres table is only one of many. However, technically osm2po is prepared for custom sources. But this has to be implemented per use case and input format individually.

3
  • thanks very much. so it is possible to write some kind of input plugins for osm2po?is there any examples how to write them?I think it would be possible to write readers for postgresql tables Commented Aug 19, 2018 at 8:37
  • yes. new input formats (if custom or not) are welcome. The crucial interface is OsmParser. Once there is an implementation you can declare it in the config (one line), so it will be used instead of the default..
    – Carsten
    Commented Aug 19, 2018 at 8:43
  • Thanks very much. I'll look at it and check it I can implement a new input format. thanks Commented Aug 21, 2018 at 4:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.