maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] [Announce] Native offline maps: OSM Scout Server (https://talk.maemo.org/showthread.php?t=97823)

Fellfrosch 2017-03-16 18:58

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525523)
That's new. It corresponds to the case where it cannot create or open SQLite database in the folder that you allocated. Its either some problem with the file permissions, my bug, Qt bug or combination of these.

Let's try to track it down.

* If you go to the allocated folder and try to create subfolder, does it work? Do you have permissions as user "nemo" to do it?

* Close OSM Scout Server, go to the allocated folder. Do you have "files.sqlite" in that folder? If you have it, delete this file and start application again.

* If it all fails, please try to allocate folder just in /home/nemo . Like /home/nemo/Maps.OSM

I assume you used some regular filename, without äöõ or some other fancy character in the path.

If we are still in trouble - let me know version of your SFOS, where did you try to allocate it. Please also open then new issue at github and paste the configuration file for OSM Scout Server from

/home/nemo/.config/harbour-osmscout-server/harbour-osmscout-server.conf

Please let me know how it went.

Ohhhhhhh .....

Stupid me!!!! Of course it was a permission problem. Sorry for bothering you with my thoughtlessness :o

Changed permission, everything works as expected. Thanx for your great work!!!

rinigus 2017-03-16 19:03

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by Fellfrosch (Post 1525530)
Ohhhhhhh .....

Stupid me!!!! Of course it was a permission problem. Sorry for bothering you with my thoughtlessness :o

Changed permission, everything works as expected. Thanx for your great work!!!

Thank you for reporting it. Its better to get it iron out and ensure that the error message is actually correct. Also, since I didn't anticipate it - I found a condition where the server was responding incorrectly. So, thank you for report :)

XOleg 2017-03-17 15:24

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525476)
So, to add a new region, you have to make a directory under corresponding district. The hierarchy has to be followed, otherwise we will very fart get into too slow imports and huge mess.

In case of Russia, the link that you provided for smaller regions also had Poly files. So, it's a matter of inserting them into corresponding folders and following our convention. I'll be happy if you or someone else would arrange it accordingly.

Hi, @rinigis. if I understand correctly it's possible to replace files in folder for district by files(after import from PBF) for region only? if I understood correctly description(from site) maps for regions are made with Poly files. I don't see Poly files in folders for OSM_SCout_server maps on device.

rinigus 2017-03-17 15:38

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525560)
Hi, @rinigis. if I understand correctly it's possible to replace files in folder for district by files(after import from PBF) for region only? if I understood correctly description(from site) maps for regions are made with Poly files. I don't see Poly files in folders for OSM_SCout_server maps on device.

Yes, we can make that way that you get smaller regions instead of the larger ones. Let's keep both options possible, so you would place poly files under hierarchy folder in GitHub.

Poly files are used when I generate the regions, not on device. So, you would have to make it in GitHub and send over to me via forking/pull request in GitHub. Then I can run scripts on my computer, send it to @MartinK system and download them to your phone. Easy, isn't it :)

XOleg 2017-03-17 18:24

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525562)
Yes, we can make that way that you get smaller regions instead of the larger ones. Let's keep both options possible, so you would place poly files under hierarchy folder in GitHub.

Poly files are used when I generate the regions, not on device. So, you would have to make it in GitHub and send over to me via forking/pull request in GitHub. Then I can run scripts on my computer, send it to @MartinK system and download them to your phone. Easy, isn't it :)

@rinigus good idea. maybe this will be convenient not for me only. I'll read manual and will try to send files.

rinigus 2017-03-17 20:19

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525567)
@rinigus good idea. maybe this will be convenient not for me only. I'll read manual and will try to send files.

@XOleg, try to do with only one sub-division first. Then I can give the feedback on your pull request and we can continue after that on other parts. That way we'll do it as efficient as possible.

XOleg 2017-03-18 03:27

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus. I'm sorry, but don't understand this technology.
I see regions here http://gis-lab.info/projects/osm_dump/ (for exemple http://data.gis-lab.info/osm_dump/du.../RU-AD.osm.pbf), Poly files here http://data.gis-lab.info/osm_dump/poly/ (for this exemple RU-AD.poly).
And?.. what to do next with this?..

rinigus 2017-03-18 06:12

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525584)
@rinigus. I'm sorry, but don't understand this technology.
I see regions here http://gis-lab.info/projects/osm_dump/ (for exemple http://data.gis-lab.info/osm_dump/du.../RU-AD.osm.pbf), Poly files here http://data.gis-lab.info/osm_dump/poly/ (for this exemple RU-AD.poly).
And?.. what to do next with this?..

So, we would like to get it under

https://github.com/rinigus/osmscout-...h-fed-district

in a separate folder. I think I've got it right and its under South Federal District, right? In particular, we would like then to make a subfolder with the name "adygea" and place 2 files into that subfolder

"poly" - this will contain RU-AD.poly . Please rename that into just "poly"

name - this will have Adygea or Republic of Adygea . I guess, you will have to choose how to call it. The name you put into this file, will be the one that you will see on your phone.

As a result, we will have subfolder with files:

adygea
adygea/poly
adygea/name

Now, to get these files in, you would have to go through typical GitHub development process:

1. Register at github.com

2. Go to https://github.com/rinigus/osmscout-server

3. Under https://github.com/rinigus/osmscout-server , press "Fork" to make your copy of it.

4. In YOUR copy, I presume under https://github.com/XOleg/osmscout-server , go to https://github.com/XOleg/osmscout-se...h-fed-district and press "Create new file".

5. With "New file name", you can type adygea/name and type Adygea or Republic of Adygea in the contents .

6. When happy with the file, go to the bottom, insert in a smaller box "adding adygea/name" and press Commit

7. Repeat 5 & 6 for poly

8. Go to your copy root (https://github.com/XOleg/osmscout-server) and submit your changes via Pull Request (press "New pull request" and go through the changes). Wait a bit till you get my reply :)

When you get to practice it a bit more, it would be better to create a branch when you work on Pull Requests, but maybe its fine without it for now

I am sure there are lots of tutorials on GitHub development online. Since there are lots of Russians developing open source projects, I am sure you even have a luxury to read the help/tutorials in Russian. Main thing is to not get scared away in the beginning, its actually rather simple.

Good luck and just ask if you have any problems.

XOleg 2017-03-18 06:34

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus. thanks for help. I'll try...

I made. This is OK?

How about translate to Russian for name of regions?

XOleg 2017-03-18 07:56

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus
@XOleg, just looked into your GitHub. Its going fine, except you added a name file as

adygea/name

not just as adygea. To change the name:

1. go to https://github.com/XOleg/osmscout-se...istrict/adygea

2. press pencil buttom (edit)

3. you would have the name on the top part of the page, where you can edit "adegea". Edit it by adding "/" and then "name"

4. Commit the changes

1. It's impossible:
"Sorry, a file exists where you’re trying to create a subdirectory. Choose a new path and try again."

2. It's OK for poly in district folder? This file is for Adygea

XOleg 2017-03-18 08:18

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus I corrected. I restored district folder with poly for district from geofabrik and created region folder

rinigus 2017-03-18 08:24

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525590)
@rinigus I corrected. I restored district folder with poly for district from geofabrik and created region folder

It looks great now! That's exactly as it is supposed to be. Please send it over and we could test whether all works. For that, go to your github project page and create new pull request, as explained earlier.

I'll try to merge and test it ASAP. After accepted, you could just continue with the other regions at your own speed.

rinigus 2017-03-18 08:29

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525586)
How about translate to Russian for name of regions?

This is actually hard question. We have 360 regions to translate - that's a huge task! I do wonder how to automate that.

There is also another issue - how to organize translations? Do we do it via transifex? Then all regions would be translated not when inserted but through the code.

Alternative is to add name.ru , for example, and put russian translation into it. But the issue would be that it would be hard for translators to go through the maze of files and get it translated. If its too hard - noone would do it

If anyone knows a good solution, speak up.

velox 2017-03-18 08:32

Re: [Announce] Native offline maps: OSM Scout Server
 
A bit off-topic, so please don't reply:
I just wanted to point out the great job rinigus is doing here, both for support and for development. I don't use Scout Server (yet), but still felt the urge to click 'thanks' to the last pages of his support/change comments – please consider doing exactly that if he helped you… I think this effort calls for a few more thanks below his name. ;)

XOleg 2017-03-18 09:17

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525591)
It looks great now! That's exactly as it is supposed to be. Please send it over and we could test whether all works. For that, go to your github project page and create new pull request, as explained earlier.

I'll try to merge and test it ASAP. After accepted, you could just continue with the other regions at your own speed.

@rinigus I'm sorry. I don' understood. I pressed "create pull request" after correction.
This is not enough?

P.S. Transifex it's not bad for me. It's not very difficult to translate name of regions. 360 names. It's possible to reduce? ;-)

rinigus 2017-03-18 09:31

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525596)
@rinigus I'm sorry. I don' understood. I pressed "create pull request" after correction.
This is not enough?

P.S. Transifex it's not bad for me. It's not very difficult to translate name of regions. 360 names. It's possible to reduce? ;-)

Strange, I haven't received anything. You might have not confirmed it.

1. Go to https://github.com/XOleg/osmscout-server

2. Press "Pull request"

3. You will get a page called "Comparing changes". Press big green button "Create pull request"

Re translations: let's see if we can somehow at least prefill some of them

XOleg 2017-03-18 10:16

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525598)
Strange, I haven't received anything. You might have not confirmed it.

1. Go to https://github.com/XOleg/osmscout-server

2. Press "Pull request"

3. You will get a page called "Comparing changes". Press big green button "Create pull request"

Re translations: let's see if we can somehow at least prefill some of them

After 1-3 I see https://github.com/rinigus/osmscout-server and "Name is requested"

rinigus 2017-03-18 10:19

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525599)
Name is requested

That's right, put there something. Like "adding adygea"

XOleg 2017-03-18 10:23

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525600)
That's right, put there something. Like "adding adygea"

this is made

rinigus 2017-03-18 10:36

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525602)
this is made

@XOleg - just tested - it all worked nicely. Now, how do we do? Do you want to make more regions and then we make all the updates later tonight? It takes 2-4 hours to get it into the server, due to the technical solution used.

Translators: I am finishing an intermediate release that would expose updates to GUI and also would help on the communication with the maps distribution server. Unfortunately, one of the longer help strings has been changed and was dropped by lang generator. I hope its OK and you could update it. Your older version can be seen at https://github.com/rinigus/osmscout-...7c06756226482a among all other changes in line numbers.

XOleg 2017-03-18 10:43

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus. Yes I'll continue now.

I see translation for this moment

Zeta 2017-03-18 12:08

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525603)
@XOleg - just tested - it all worked nicely. Now, how do we do? Do you want to make more regions and then we make all the updates later tonight? It takes 2-4 hours to get it into the server, due to the technical solution used.

Translators: I am finishing an intermediate release that would expose updates to GUI and also would help on the communication with the maps distribution server. Unfortunately, one of the longer help strings has been changed and was dropped by lang generator. I hope its OK and you could update it. Your older version can be seen at https://github.com/rinigus/osmscout-...7c06756226482a among all other changes in line numbers.

Done.

One strings seems strange : "Creates directory<br>%1<br>and configures it for storing maps". Should really this string extend on several lines (br), despites the "and" that would indicate it is a unique sentence ?

Also can you explain the meaning of the "%L1 (D) / %L2 (W)" substring that is found in some strings. What do the "D" and "W" represent ? I forgot to ask last time, and have kept them as is in the French Translation.

rinigus 2017-03-18 12:41

Re: [Announce] Native offline maps: OSM Scout Server
 
Thank you!

Quote:

Originally Posted by Zeta (Post 1525608)
One strings seems strange : "Creates directory<br>%1<br>and configures it for storing maps". Should really this string extend on several lines (br), despites the "and" that would indicate it is a unique sentence ?

In practice, its "Creates directory<br>/home/nemo/Maps.OSM<br>and configures it for storing maps". Without breaking lines, you get a long path that is split into two lines on probably all devices. With the breaks, its clearer, I think.

Quote:

Originally Posted by Zeta (Post 1525608)
Also can you explain the meaning of the "%L1 (D) / %L2 (W)" substring that is found in some strings. What do the "D" and "W" represent ? I forgot to ask last time, and have kept them as is in the French Translation.

:) . That's used during downloads. For example, 100.0 (D) / 200 (W) and tells you how much is left to download (D) and write (W) to the storage after unpacking.

XOleg 2017-03-18 12:49

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus. I finished South-FD. to make Full request after each district or to continue with others to end?

Crimea region is part of South-FD for this moment. maybe delete Crimea district?

P.S. I corrected translation.

Zeta 2017-03-18 12:50

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525609)
With the breaks, its clearer, I think.

Ok. Thanks. I've translated it like you expected, so it's good for me.

Quote:

Originally Posted by rinigus (Post 1525609)
:) . That's used during downloads. For example, 100.0 (D) / 200 (W) and tells you how much is left to download (D) and write (W) to the storage after unpacking.

Ok. I'll see in the next translation batch if I can come up with something clear in French, in the meantime, it will stay like in English.

rinigus 2017-03-18 13:17

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525610)
@rinigus. I finished South-FD. to make Full request after each district or to continue with others to end?

Crimea region is part of South-FD for this moment. maybe delete Crimea district?

P.S. I corrected translation.

I must say I was very surprised seeing Crimea as a part of Russia as shown by Geofabrik. However, I decided not to enter into any political debate at that stage and just propagate regions as done by Geofabrik, hence the statement regarding hierarchies in README.

Situation with Crimea is a pain for many and quite well characterized by Wikipedia (de jure vs de facto) and its status. In OSM, they have "Boundary relation for territories occupied by Russia", if I remember correctly.

I would prefer to stay away from this sore subject. I think we could follow Geofabrik lead and position it according to de facto and you could go ahead and correct that as it is now and position it under South-FD.

Please note that if we get argumentation regarding this positioning, we would have to address it probably. Its just extremely sad that there is this war and the countries cannot continue focusing on well-being of each other

XOleg 2017-03-18 14:32

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus.
1. my question is about maps service, not political. We have 2 datasets for 1 region. server will work correct for voyagers?..

2. I make all regions without Pull request? Pull request will then?

rinigus 2017-03-18 15:28

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525615)
@rinigus.
1. my question is about maps service, not political. We have 2 datasets for 1 region. server will work correct for voyagers?..

2. I make all regions without Pull request? Pull request will then?

1.correct , that's best way to approach . let's put only one for the same region . if the region moved , them let's move it accordingly. so, please delete old
option and insert where it's moved now in hierarchy .

2. please submit when ready . it's not related to release , we can update it separately

XOleg 2017-03-18 16:11

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525621)
1.correct , that's best way to approach . let's put only one for the same region . if the region moved , them let's move it accordingly. so, please delete old
option and insert where it's moved now in hierarchy .

2. please submit when ready . it's not related to release , we can update it separately

1. OK. I'll delete crimea-district.

2.OK. Two districts remain

eson 2017-03-18 16:35

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by Zeta (Post 1525611)
I'll see in the next translation batch if I can come up with something clear in French, in the meantime, it will stay like in English.

I have the same problem in Swedish. There's no clear one-character translation, so I just keep the original letters. Optimal linguistic would be using the whole word. Like "left" and "written". Don't know if it is graphically feasible though.

rinigus 2017-03-18 16:58

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525623)
1. OK. I'll delete crimea-district.

2.OK. Two districts remain

Huge work, thank you! @XOleg, don't forget to insert the "special" region that you wanted. See how I made Barcelona, as an example. You basically just have to make poly file yourself by writing in coordinates of 4 points. Just remember to do it in the right order for this format - longitude, latitude. Format description here, if you need it: http://wiki.openstreetmap.org/wiki/O...er_File_Format . Put some nice name to that region and we are good to go.

Quote:

Originally Posted by eson (Post 1525624)
I have the same problem in Swedish. There's no clear one-character translation, so I just keep the original letters. Optimal linguistic would be using the whole word. Like "left" and "written". Don't know if it is graphically feasible though.

Actually, both numbers correspond to remaining part, i.e. left to download, left to write. Its probably not too important, just gives some visual feedback to the user that things are moving.

XOleg 2017-03-18 17:01

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus. I finished by Pull request

rinigus 2017-03-18 17:37

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525629)
@rinigus. I finished by Pull request

All imported. I have started pushing it to the cloud and later @MartinK server would get the added regions. If all goes well we'll have all new regions available late tonight, probably around 20:00 GMT.

As soon as the upload on my side is done, I'll push new regions to github from which you could see the updated list of regions (you'll be able to get them by "Update list"). Just the download of the region will not work until the @MartinK's server will fetch it (~20:00 GMT).

Thank you again!

XOleg 2017-03-18 17:59

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus. but without your help... :-)

I would hope the work was not in vain...

rinigus 2017-03-18 19:02

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525632)
@rinigus. but without your help... :-)

I would hope the work was not in vain...

Surely not in vain. I missed the target (too much to upload) so updates will take 2 more hours, ~22:00 GMT as it looks for now.

MartinK 2017-03-19 02:37

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1525636)
Surely not in vain. I missed the target (too much to upload) so updates will take 2 more hours, ~22:00 GMT as it looks for now.

Looks like the update went fine & the new regions are in. :)

rinigus 2017-03-19 08:06

0.7.5
 
I have just published 0.7.5 release. It exposes map update functionality to GUI, fixes a race condition on map updates by loading list of provided countries/features from data.modrana.org, and updates the translations.

Unless there are some issues coming up with the Map Manager, I am planning now to continue the work on geocoder-nlp performance and database size.

XOleg 2017-03-19 09:42

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus appli and maps updated without problem for me. but I have a question. Routing is impossible between separate regions(countries...). Server selects one region. For exemple, it's necessary to travel from St-Petersbourg to Moscow. I have two maps for cities and two maps for regions. And how to be? I suppose it's impossible to pass from Moscow to Moscow region also...
This is other side of maps fragmentation...

eson 2017-03-19 10:13

Re: [Announce] Native offline maps: OSM Scout Server
 
I found one string untranslated. This one is missing in translation file.
Quote:

Number of parallel worker threads: %1

rinigus 2017-03-19 10:39

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1525661)
@rinigus appli and maps updated without problem for me. but I have a question. Routing is impossible between separate regions(countries...). Server selects one region. For exemple, it's necessary to travel from St-Petersbourg to Moscow. I have two maps for cities and two maps for regions. And how to be? I suppose it's impossible to pass from Moscow to Moscow region also...
This is other side of maps fragmentation...

Routing, search , and drawing are all impossible between different maps . it's an important limitation thwart we will address in future. I have these issues filed in GitHub, so we'll surely work on it. My plan is to finish geocoder first , so I can property fix one component before working on the next one .


All times are GMT. The time now is 04:27.

vBulletin® Version 3.8.8