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


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

vBulletin® Version 3.8.8