Skip Menu |

This queue is for tickets about the Map-Tube-GraphViz CPAN distribution.

Report information
The Basics
Id: 103076
Status: resolved
Priority: 0/
Queue: Map-Tube-GraphViz

People
Owner: SKIM [...] cpan.org
Requestors: GWS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.06
Fixed in: 0.07



Subject: The module runs out of colours for large tube networks
Trying to produce a map from Map::Tube::Berlin will crash, complaining that No color for line 'Street'. at D:\dl\Perl\tubemaps/C:/perl/site/lib/Map/Tube/GraphViz/Utils.pm line 71. The Berlin map does not explicitly define the lines, and hence, no designated colours for the lines. Instead, the internal fallback using the array @COLORS is used, which has only highly finitely many entries. The above error message means, in effect, not "No colour was specified for line 'Street'", but rather "I cannot assign any colour to line 'Street'". A simple way of circumventing this would be to recycle colours instead of balking, like so: $obj->{'_color_index'} = ( $obj->{'_color_index'} + 1 ) % @COLORS; in function color_line().
Dne Út 24.bře.2015 17:42:33, GWS napsal(a): Hi, Show quoted text
> Trying to produce a map from Map::Tube::Berlin will crash, complaining > that > No color for line 'Street'. at > D:\dl\Perl\tubemaps/C:/perl/site/lib/Map/Tube/GraphViz/Utils.pm line > 71.
Sorry, i lost focus to this bug. Fixed in 0.07 version. Kind regards, Michal Josef Špaček
Subject: AW: [rt.cpan.org #103076] The module runs out of colours for large tube networks
Date: Tue, 3 Nov 2020 13:13:48 +0000
To: "bug-Map-Tube-GraphViz [...] rt.cpan.org" <bug-Map-Tube-GraphViz [...] rt.cpan.org>
From: "Selke, Gisbert W." <gisbert.selke [...] wido.bv.aok.de>
Děkuji tí, Míšo! \Gisbert Show quoted text
-----Ursprüngliche Nachricht----- Von: Michal Špaček via RT <bug-Map-Tube-GraphViz@rt.cpan.org> Gesendet: Dienstag, 3. November 2020 14:07 An: GWS@cpan.org Betreff: [rt.cpan.org #103076] The module runs out of colours for large tube networks <URL: https://rt.cpan.org/Ticket/Display.html?id=103076 > Dne Út 24.bře.2015 17:42:33, GWS napsal(a): Hi,
> Trying to produce a map from Map::Tube::Berlin will crash, complaining > that > No color for line 'Street'. at > D:\dl\Perl\tubemaps/C:/perl/site/lib/Map/Tube/GraphViz/Utils.pm line > 71.
Sorry, i lost focus to this bug. Fixed in 0.07 version. Kind regards, Michal Josef Špaček