Opened 11 years ago

Closed 10 years ago

#263 closed defect/bug (wontfix)

separate the ways/pois from the rest of the configuration

Reported by: Kiddo Owned by: KaZeR
Priority: major Milestone: version 0.2.0
Component: core Version: git master
Severity: Keywords:
Cc:

Description

Please make the ways/layers/pois/whatever separate (layers_and_pois.xml? themes.xml?).

  • They are scary
  • Most newcomers (and regular users) won't ever touch them
  • They make the "configuration" file huge and difficult to manage
  • They make resolving merge conflicts or keeping track of svn changes a major pain

Change History (5)

comment:1 Changed 11 years ago by Singesang

Especially the layouts can get stored in $NAVIT_SHAREDIR/layouts/*.xml because they don't change that often and cosume over 90% of the current navit.xml. I'd do that then :)

comment:2 Changed 11 years ago by Tsadowski

Additionally it would be nice if personal files could override the provided configuration. $NAVIT_SHAREDIR/ could contain a provided base config, /etc/navit systemwide changes and ~/.navit/navit.xml personal changes. This way users would not have to touch the configuration if additional functionality is added.

Cheers, Torsten

comment:3 Changed 11 years ago by Wouldd

I'd add to this suggestion, map config should be separate from graphics/osd config and both separate from vehicle/POI etc. this would make it easier for device specific communities (such as nokia 770/810) could provide downloads of layouts that work well on that device, vehicle definitions that make sense for different uses etc. and it would be easier for people to drop in different files without messing up their core config of map location etc.

comment:4 Changed 11 years ago by KaZeR

  • Milestone set to version 0.2.0
  • Status changed from new to assigned

We'll try to get better management soon. Meanwhile, you can use the following which eases daily life in .navit/navit.xml

<config xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="$NAVIT_SHAREDIR/navit.xml" xpointer="xpointer(/config/*[name(.)!='navit'])"/>
<navit center="5000 N 0300 E" zoom="32" tracking="1" cursor="1" orientation="0">
        <graphics type="gtk_drawing_area"/>
        <gui type="internal" font_size="350" icon_xs="60" icon_s="96" icon_l="96"/>

        <osd enabled="yes" type="text" label="${navigation.item.street_name} ${navigation.item[1].street_name_systematic}"
          x="0" y="0" w="415" h="30" align="0" background_color="#000000cc" font_size="300" />
        <osd enabled="yes" type="gps_status"
          x="415" y="0" w="65" h="30" align="0" background_color="#000000cc" font_size="300" />

        <osd enabled="yes" type="text" label="ETA:${navigation.item.destination_time[arrival]}"
          x="0" y="-25" w="160" h="25" align="4" background_color="#000000cc" font_size="350" />
        <osd enabled="yes" type="text" label="TL:${navigation.item.destination_time[remaining]}"
          x="160" y="-25" w="160" h="25"align="4" background_color="#000000cc" font_size="350" />
        <osd enabled="yes" type="text" label="Dist:${navigation.item.destination_length[named]}"
          x="320" y="-25" w="160" h="25" align="4" background_color="#000000cc" font_size="350" />

        <osd enabled="yes" type="text" label="${vehicle.position_speed} / ${tracking.item.route_speed}"
          x="0" y="30" w="180" h="25" align="4" background_color="#000000cc" font_size="280"/>

        <osd enabled="yes" type="navigation_next_turn"
          x="320" y="30"  w="160" h="60"  background_color="#000000cc" />
        <osd enabled="yes" type="text" label="${navigation.item[1].length[named]}"
          x="320" y="90" w="160" h="40" align="" background_color="#000000cc" font_size="450"/>

        <osd enabled="yes" type="button" x="-96" y="-106" command="zoom_in()" src="zoom_in.xpm"/>
        <osd enabled="yes" type="button" x="0" y="-106" command="zoom_out()" src="zoom_out.xpm"/>

        <vehicle name="Local GPS" profilename="car" enabled="yes" active="yes" source="gpsd://localhost" gpsd_query="w+xj"
                 color="#0000ff" follow="2" animate="1">
            <log type="gpx" data=".navit/track_%Y%m%d-%i.gpx" flush_size="1000" flush_time="30"/>
            <xi:include href="$NAVIT_SHAREDIR/navit.xml" xpointer="xpointer(/config/navit/vehicule[@name='Local GPS']/cursor)" />
        </vehicle>

        <vehicle name="Demo" profilename="car" enabled="yes" active="no" source="demo://" color="#00ff00" follow="2" animate="1">
            <xi:include href="$NAVIT_SHAREDIR/navit.xml" xpointer="xpointer(/config/navit/vehicule[@name='Demo']/cursor)" />
        </vehicle>

        <xi:include href="$NAVIT_SHAREDIR/navit.xml" xpointer="xpointer(/config/navit/vehicleprofile)" />
        <xi:include href="$NAVIT_SHAREDIR/navit.xml" xpointer="xpointer(/config/navit/route)" />
        <xi:include href="$NAVIT_SHAREDIR/navit.xml" xpointer="xpointer(/config/navit/navigation)" />

        <mapset enabled="yes">
            <map type="mg" enabled="yes" data="/media/card/maps/" />
            <map type="mg" enabled="yes" data="/media/card/maps/smp2.smp" />
        </mapset>

        <xi:include href="$NAVIT_SHAREDIR/navit.xml" xpointer="xpointer(/config/navit/layout)" />

</navit>
</config>

Please see http://wiki.navit-project.org/index.php/Configuring_Navit#Support_for_XInclude.2FXPath for more informations. (example is for a FreeRunner?).

comment:5 Changed 10 years ago by kazer

  • Resolution set to wontfix
  • Status changed from assigned to closed

navit.xml split has been discussed quite a few times. Currently we rather keep it as it is.

Note: See TracTickets for help on using tickets.