Hi Marco,
did you restart QMS after the "cp" and "sed" steps? Having the 4
foo_bar*.mem and the foo_bar_profiles.xml files in one folder and
restarting QMS loads in my case (Windows10) the correct profile files.
Here is the Routino part of the QMS debug log for my case:
2020-11-08 8:51:04.189 [debug] Loaded Routino DB
D:/GPS/Routing/profiles Germany_foot
2020-11-08 8:51:04.189 [debug] "ROUTINO" path
"d:/QtProjects/QMS/QMapShack/msvc_64/Files/routino-xml/profiles.xml"
2020-11-08 8:51:04.189 [debug] Profile ... Using
"D:/GPS/Routing/profiles/Germany_foot-profiles.xml"
2020-11-08 8:51:04.189 [debug] Loaded Routino DB
D:/GPS/Routing/profiles Germanybikeroutes
2020-11-08 8:51:04.189 [debug] "ROUTINO" path
"d:/QtProjects/QMS/QMapShack/msvc_64/Files/routino-xml/profiles.xml"
2020-11-08 8:51:04.189 [debug] Profile ... Using
"D:/GPS/Routing/profiles/Germanybikeroutes-profiles.xml"
2020-11-08 8:51:04.189 [debug] Loaded Routino DB
D:/GPS/Routing/profiles KG
2020-11-08 8:51:04.189 [debug] "ROUTINO" path
"d:/QtProjects/QMS/QMapShack/msvc_64/Files/routino-xml/profiles.xml"
2020-11-08 8:51:04.189 [debug] Profile ... Using
"d:/QtProjects/QMS/QMapShack/msvc_64/Files/routino-xml/profiles.xml"
Wolfgang
Am 07.11.2020 um 23:09 schrieb Marco:
On Sat, 7 Nov 2020 13:11:30 +0100
Marco <[email protected]> wrote:
On Sat, 7 Nov 2020 12:46:33 +0100
Marco <[email protected]> wrote:
- If you want to use an additional profiles file for some Routino
database: Copy the prefix-*.mem files of the considered database to
prefix_xxx-*.mem where xxx should describe the profile variant.
- Copy the default profiles.xml file to prefix_xxx-profiles.xml in
the folder where the prefix_xxx-*.mem database files are located.
But where are those prefix-*.mem files located? I cannot find them
on my system.
OK, got it, prefix is not actually “prefix” but <prefix>, it's the
files set up in “Setup Routino database” and the “prefix” is the
--prefix of the planetsplitter command.
I tried that method, but the edited xml file doesn't seem to be used
either. Changes to the xml have no effect.
Apologies for the monologue here, but to clarify, this is what I've done so far:
# in the directory of the routino database:
cp foo-nodes.mem foo_bar-nodes.mem
cp foo-relations.mem foo_bar-relations.mem
cp foo-segments.mem foo_bar-segments.mem
cp foo-ways.mem foo_bar-ways.mem
cp /usr/share/routino/profiles.xml foo_bar-profiles.xml
sed -i '/profile name="motorcycle"/,/<\/preferences>/s/100/0/g' \
foo_bar-profiles.xml
Then I've calculated a route using the database “foo bar” with the
profile “Motorcycle” and it's still using motorways. It shouldn't as
of my understanding. And an strace shows that instead of
foo_bar-profiles.xml being loaded, /usr/share/routino/profiles.xml
is.
So, I'm doing something wrong here.
Marco
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users