Opened 11 years ago

Closed 11 years ago

#373 closed enhancement/feature request (fixed)

Please split configuration file

Reported by: Pini Owned by: KaZeR
Priority: trivial Milestone:
Component: core Version: git master
Severity: Keywords:
Cc:

Description

Hi,

I forward here a request received through the Debian bug tracking system: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=527841

Thanks,

_Gilles.


Configuration file (/etc/navit/navit.xml) is far too large (4425 lines) to be edited by humanoids. Who cares about the color of a can bin while he just wants to enable his GPS device in navit ?

So I think navit.xml should be splitted, *at least* for styles (called "layout"). Here is a proposal :

etc/
`-- navit
   |-- layouts
   |   |-- bike.xml
   |   |-- car-dark.xml
   |   |-- car.xml
   |   `-- t@h.xml
   |-- mapsets
   |   |-- garmin.xml
   |   |-- openstreetmap.xml
   |   `-- reiserplanner.xml
   |-- navit.xml
   `-- vehicleprofiles
       |-- bike.xml
       |-- car.xml
       |-- horse.xml
       `-- pedestrian.xml

It gives navit.xml < 200 lines. Inclusions can be done using xi:include directives.

What do you think about it ?


Change History (2)

comment:1 Changed 11 years ago by dctucker

  • Priority changed from major to trivial

I think this could be done easily using some XML includes in navit.xml .. not sure this needs a major feature request.

The following includes maps:

<mapset enabled="yes">
   <xi:include href="$NAVIT_SHAREDIR/maps/*.xml"/>
</mapset>

comment:2 Changed 11 years ago by kazer

  • Resolution set to fixed
  • Status changed from new to closed

It has been discussed once more, and navit.xml will be kept as it is for now. Some day it should be written from the gui and splitting it up will make that quite hard.

Until then, the file can be split for your own convenience (multiple maps, multiple OSD, easier upgrading) using xi:include.

Note: See TracTickets for help on using tickets.