Using osm2po to extract traffic signal in the vertices used to provide the value 1 in the clazz column of the vertex table:

Add vertices costs to postgresql routable network

For some reason I keep getting the value -128 now. Is that supposed to be like this?

  • Can you give me a bit more background info? -128 looks like a barrier.
    – Carsten
    Oct 27 '15 at 15:25
  • In the osm2po.conf I've enabled the following line: postp.1.class = de.cm.osm2po.plugins.postp.PgVertexWriter. When I look at the data the only values are 0 and -128.
    – Yojimbo
    Oct 28 '15 at 15:42

I could fix the problem by enabling

nodeClazz.1.name=TrafficSignals nodeTagResolver.class=de.cm.osm2po.plugins.routing.TrafficSignalsNodeTagResolver

in the OSM2PO-Routing section

now both barriers and traffic signals (1,-128) are written

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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