Opened 11 years ago

Closed 11 years ago

#2113 closed defect (fixed)

gosmore problem with cycle networks (and QUERY_STRING)

Reported by: phicoh Owned by: ddean@…
Priority: major Milestone:
Component: gosmore Version:
Keywords: cyclenet QUERY_STRING Cc: pch-osm-trac@…


Gosmore fails during the generation of output for QUERY_STRING when a resulting route uses ways that are part of a cycle network.

The problem is that the cyclenet code in RebuildPak? assigns style types that are not in the STYLES macro and therefore not in the klasTable array that gosmore uses to generate road types.

On FreeBSD this results in a crash, on Linux the road type is displayed as '(null)'

The attached patch fixes this in two ways: the code that generates output is modified to print '(unknown-style)' if the style type is not in klasTable. The patch also adds the styles of the cyclenet in the default elemstyles.xml to the STYLES macro.

Attachments (1)

x.diff (2.2 KB) - added by phicoh 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by phicoh

Attachment: x.diff added

comment:1 Changed 11 years ago by lambertus

(In [17226]) Applying patch by Phicoh (Refs #2113)

comment:2 Changed 11 years ago by Lambertus

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.