Bug 28765 - Not able to select a directory to choose the Routino Database
Summary: Not able to select a directory to choose the Routino Database
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-12 11:52 CEST by Olivier NICOD
Modified: 2021-04-18 09:38 CEST (History)
2 users (show)

See Also:
Source RPM: qmapshack-1.15.1-2.mga8.src.rpm, routino-3.3.3-1.mga8.src.rpm
CVE:
Status comment:


Attachments
Screenshot of dialogue for adding routino DB, showing the correct directory highlighted (22.76 KB, image/png)
2021-04-13 22:20 CEST, Lewis Smith
Details
Screenshot of subsequent (OK) routing pane showing LUX database (11.01 KB, image/png)
2021-04-13 22:22 CEST, Lewis Smith
Details
MapShack.conf (7.05 KB, text/plain)
2021-04-14 10:35 CEST, Olivier NICOD
Details
add a directory GUI (84.34 KB, image/png)
2021-04-15 22:43 CEST, Olivier NICOD
Details
Screenshot showing multiple directories in the '+' dialogue, all by GUI (23.87 KB, image/png)
2021-04-18 09:36 CEST, Lewis Smith
Details

Description Olivier NICOD 2021-04-12 11:52:30 CEST
Description of problem:


Version-Release number of selected component (if applicable):
QMapSchak 1.15.1

How reproducible:
the normal way to select a routino database

Steps to Reproduce:
1.In QMapShack, select 'Create a Routino dataBase' in the menu. 
2. Follow the steps (which are witten on an opening window ) 
3. After the files are created ( 'Done' is written ) , select the directory where the data base has been created ( in fact, Files with . mem extension) by clicking on the blue directory folder in the small Routino window, part of the  workspace.
And here, it is not possible to select any directory. 


I tried with another linux distribution (MX-Linux) , and it is working fine.
But I prefer Mageia..
Many thanks for taking this problem in consideration.
The packages are installed from the mageia repository (QmapShack and  Routino) 
I use it with the french language

Olivier
Comment 1 David GEIGER 2021-04-12 13:54:57 CEST
Which workable routino and qmapshack release MX-Linux uses?

CC: (none) => geiger.david68210

Comment 2 Lewis Smith 2021-04-12 14:03:35 CEST
Thank you for the report.

1. In QMapShack, select 'Create a Routino dataBase' in the Tool menu
2. Downloaded the Luxembourg .pbf file
Click the 'Select source files' icon at top, choose the downloaded file
Click the 'Select target path' icon at bottom, choose a directory
Typed a prefix (LUX) in the following field
Press the adjacent Start button :

/usr/bin/routino-planetsplitter --dir=/home/lewis/tmp --prefix=LUX --tagging=/usr/share/routino/tagging.xml --parse-only /home/lewis/Desktop/luxembourg-latest.osm.pbf
Parse OSM Data [/home/lewis/Desktop/luxembourg-latest.osm.pbf]
==============
...
Write Out Database Files
========================
Wrote Nodes: Nodes=331417  
Wrote Ways: Ways=16586  
Wrote Relations: Turn Relations=660
!!! done !!!

It created:
-rw-r--r-- 1 lewis lewis 3977864 Ebr  12 12:52  LUX-nodes.mem
-rw-r--r-- 1 lewis lewis   10564 Ebr  12 12:52  LUX-relations.mem
-rw-r--r-- 1 lewis lewis 8602532 Ebr  12 12:52  LUX-segments.mem
-rw-r--r-- 1 lewis lewis  396632 Ebr  12 12:52  LUX-ways.mem

3. In the RH Routing window, Database line, click the RH blue icon. This opens a mini-dialogue "Setup Routino database"; click the '+' icon, this opens a file chooser dialogue, you can select the (target) directory, and see the contents; but it is all greyed, not selectable. It does not look like a permissions problem.
There is no console output at all associated with this last stage.

Assigning this to DavidG whose baby it is. I see you have just put new version: 1.15.2 in Cauldron! To try? Can you put it in Updates_Testing?

CC: (none) => lewyssmith
Assignee: bugsquad => geiger.david68210
Source RPM: QMapSchak 1.15.1 => qmapshack-1.15.1-2.mga8.src.rpm, routino-3.3.3-1.mga8.src.rpm

Comment 3 David GEIGER 2021-04-12 16:41:25 CEST
Ok, here I found what is going wrong, if you follow all QMapShack instructions you have to create a folder with some recommended subfolders as explain here:


============
Give it a home
============

QMapShack needs a folder on your hard drive where all data is kept. Naturally this will grow very large. We recommend a folder with some subfolders:

Maps - where all maps are stored
DEM - where all elevation data is stored
Routino - where routing data for the Routino offline router is stored
BRouter - where routing data for the BRouter offline router is stored
Databases - where you create databases to organize your GIS data
GPX - where you keep GPX files

Do you want to create these folders right now? Give me a path and QMapShack will create all sub-folder and update all settings.

============

So here I created "/home/david/qmapshack" folder after I right ckick to "path" to auto create all subfolders.

Now I get:

Current home:
/home/david/qmapshack

$ ls /home/david/qmapshack/
BRouter/  Databases/  DEM/  GPX/  Maps/  Routino/

The routino folder should absolutely named as "Routino" and all database should be created in it. With folder named "routino" it doesn't work and if routino database are not in this specific folder it does not found any .mem files.
Comment 4 Lewis Smith 2021-04-12 21:21:25 CEST
Thanks for your feedback. I should have seen that for myself; a case of RT.M! I just followed Olivier's instructions, which he said worked with MX-Linux. Following your - their - instructions:
* Manually created a 'qmapshack' directory.
Then from the Welcome page you cited:
* Give it a home -  Give me a path and QMapShack will create all sub-folder and update all settings. [The directory created above, it created the sub-dirs]
* Routing - Routino - (Tool->Create Routino Database)
gave me the following, which looks good:

$ tree /mnt/common/tmp/qmapshack/
/mnt/common/tmp/qmapshack/
├── BRouter
├── Databases
├── DEM
├── GPX
├── Maps
└── Routino
    ├── LUX-nodes.mem
    ├── LUX-relations.mem
    ├── LUX-segments.mem
    └── LUX-ways.mem

> 3. In the RH Routing window, Database line, click the RH blue icon
Will attach screenshot of doing so. It showed the
 /mnt/common/tmp/qmapshack/Routino/
directory path, and just clicking OK then showed 'LUX' [prefix used] in the Database dropdown list. Have to assume this is all correct, without knowing how to drive it.

@Olivier : please re-try as indicated.

Status: NEW => NEEDINFO

Comment 5 Olivier NICOD 2021-04-13 11:22:08 CEST
‌Hello,

I made everything as you say.

[olivier@localhost ~]$ tree '/mnt/MonRaid1/qmapshack/Routino' 
/mnt/MonRaid1/qmapshack/Routino
├── LUX-nodes.mem
├── LUX-relations.mem
├── LUX-segments.mem
└── LUX-ways.mem

0 directories, 4 files
[olivier@localhost ~]$ 

when I click the RH blue, I get a window with a '+' to add a directory , a trash  , Ok and Cancel
No directory is listed
If I just click 'OK' the window closes and nothing more
If I click +, I can choose a directory , but it is not possible to add it, because Open button has no effect
I said that it works fine with MX-linux , so I do the same in Mageia, as you tell me to do, and it does not work...
maybe something else is going wrong in my computer ?

Olivier
Comment 6 Lewis Smith 2021-04-13 22:20:30 CEST
Created attachment 12617 [details]
Screenshot of dialogue for adding routino DB, showing the correct directory highlighted
Comment 7 Lewis Smith 2021-04-13 22:22:51 CEST
Created attachment 12618 [details]
Screenshot of subsequent (OK) routing pane showing LUX database

First screenshot was before clicking the OK; this second one the result of doing so.
Comment 8 Lewis Smith 2021-04-13 23:02:55 CEST
> when I click the RH blue, I get a window with a '+' to add a directory
> No directory is listed
The difference from what I did seems to be that your 'Setup Routino database' window did not already show /mnt/MonRaid1/qmapshack/Routino . Why?
Mine did (see first screenshot, directory highlighted), so rather than click '+' I just clicked the OK; which made my LUX prefix appear in the Routing pane Database field (second screenshot).

Did you follow the "Give me a path" and "QMapShack has a built-in Routino Database Creator (Tool->Create Routino Database)" links on the Welcome page?
I wonder whether your use of my LUX prefix (arbitrary) confused it, if you had previously defined a different prefix.

Because you have been round the loop more than once, I suspect that some path information is wrong somewhere. "QMapShack will create all sub-folder and update all settings" - the last bit makes me doubtful. I can find no mention of where the basic path is defined: nor any config file in $HOME to delete.

Unless you have added anything important, I would be tempted to uninstall the two packages and re-install them, and start from the beginning again. You already have the routino file you want downloaded. I seem to have managed what you are trying.
Comment 9 Olivier NICOD 2021-04-14 10:35:38 CEST
Created attachment 12619 [details]
MapShack.conf


Is it something wrong in the file ?
Comment 10 Olivier NICOD 2021-04-14 10:37:16 CEST
The file is in $HOME/.config/QLandKarte
Comment 11 Lewis Smith 2021-04-14 11:20:16 CEST
(In reply to Olivier NICOD from comment #10)
> The file is in $HOME/.config/QLandKarte
Thanks. That German name is why I did not find it!
I will compare later yours and mine. No time now.

Assignee: geiger.david68210 => bugsquad

Comment 12 Lewis Smith 2021-04-15 10:05:00 CEST
Comparing the two config files (note the exact spelling):
 $HOME/.config/QLandkarte/QMapShack.conf

Activities, Canvas similar
--------------------------
In section [Database]:
isSummaryVisible=true
lastDatabasePath=/mnt/common/tmp/qmapshack/Databases  [me only; it is empty]
names=@Invalid()
--------
[MainWindow] similar.

[Paths]                                    [this section me only] ***
homePath=/mnt/common/tmp/qmapshack         ***
lastGisPath=/mnt/common/tmp/qmapshack/GPX  [it is empty]

[Realtime] similar
----------
[Route]
brouter\*      [different, but not I think important]
current=0
mapquest\*     [different, but not I think important]
 YOU:
routino\database=-1
routino\language=2
routino\mode=0
routino\paths=@Invalid()       ***
routino\profile=0
 ME:
routino\database=0
routino\language=0
routino\mode=1
routino\paths=/mnt/common/tmp/qmapshack/Routino
routino\profile=0
-----------------
[RoutinoDatabaseBuilder]                    [this section me only]  ***
sourcePath=/home/lewis/Desktop              [where was the downloaded data]
targetPath=/mnt/common/tmp/qmapshack/Routino
-------
Subsequent sections Search, ToolBar, Units, Workspace not compared.

Looking at the *** items, there does seem to be something wrong with your configuration.
So I suggest you:
- delete the config file
- delete everything under '/mnt/MonRaid1/qmapshack/', but keep the directory
then start again from zero with your already downloaded country data.
If this does not work, we both need to start again in parallel.
Comment 13 Olivier NICOD 2021-04-15 11:53:32 CEST
Hello,

First of all, many thanks for your comments.

So, I have written manually in the conf file my routino path
Then I have started QMapShack
I do see LUX in the selector.
If I put several routino basest the mem files) in the same directory (FR, BE, LUX) , I do see all  in the choice list. This is good
But , if  I want to place the mem files in different directories, I cannnot do it by the interface.
It is only possible if I write manually the different pathes in the conf file, separated by a comma.
So my conclusion is that the software is working well, except the adding of the directories in the config file by the interface. 
Did you do these manipulations ?
Thanks again
Olivier
Comment 14 Lewis Smith 2021-04-15 20:46:29 CEST
Glad things are looking up.
> if  I want to place the mem files in different directories, I cannnot do it
> by the interface.
> It is only possible if I write manually the different pathes in the conf
> file, separated by a comma
1: why would you want to put .mem files in a different directory? I thought the software wanted them all in their dedicated directories; the prefix separates different ones.
2: please post what (and where) you write manually in the conf file to enable what you want.
3; having done your own manipulation, do the extra directories show somewhere in the GUI ?

> Did you do these manipulations ?
No.
Comment 15 Olivier NICOD 2021-04-15 22:43:49 CEST
Created attachment 12632 [details]
add a directory GUI

 my both directories appear in the list
Comment 16 Olivier NICOD 2021-04-15 22:45:30 CEST
in the conf file
[Route]
......language=4
mapquest\preference=0
routino\database=1
routino\language=2
routino\mode=1
routino\paths=/mnt/MonRaid1/qmapshack/Routino/LUX, /mnt/MonRaid1/qmapshack/Routino/FR
routino\profile=6
......
Comment 17 Olivier NICOD 2021-04-15 22:47:28 CEST
For me the solution is OK, only the GUI which adds the directories does not work
Comment 18 Lewis Smith 2021-04-18 09:36:28 CEST
Created attachment 12647 [details]
Screenshot showing multiple directories in the '+' dialogue, all by GUI

I think it does work correctly, but its rules are obscure. I made two directories  $HOME/another/  $HOME/Routino/  and was able to see and add them one at a time. Curiously, this line in config:
routino\paths=/mnt/common/tmp/qmapshack/Routino
only seemed to show the most recent. It looks as if you have to choose just one to work with. Whatever, this affair looks more a question of usability than a bug.
Comment 19 Lewis Smith 2021-04-18 09:38:02 CEST
Closing.

Resolution: (none) => WORKSFORME
Status: NEEDINFO => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.