Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

gosmore problem with cycle networks (and QUERY_STRING) #2113

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

gosmore problem with cycle networks (and QUERY_STRING) #2113

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: phicoh
[Submitted to the original trac issue database at 4.46pm, Wednesday, 29th July 2009]

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.

@openstreetmap-trac
Copy link
Author

Author: lambertus
[Added to the original trac issue at 7.31pm, Monday, 24th August 2009]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant