Active Topics

 



Notices


Reply
Thread Tools
Fellfrosch's Avatar
Posts: 1,092 | Thanked: 4,995 times | Joined on Dec 2009 @ beautiful cave
#161
Originally Posted by rinigus View Post
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

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

The Following 4 Users Say Thank You to Fellfrosch For This Useful Post:
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#162
Originally Posted by Fellfrosch View Post
Ohhhhhhh .....

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

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
 

The Following 5 Users Say Thank You to rinigus For This Useful Post:
Posts: 127 | Thanked: 313 times | Joined on Sep 2016 @ Yekaterinbourg, Russia
#163
Originally Posted by rinigus View Post
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.
 

The Following 3 Users Say Thank You to XOleg For This Useful Post:
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#164
Originally Posted by XOleg View Post
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
 

The Following 3 Users Say Thank You to rinigus For This Useful Post:
Posts: 127 | Thanked: 313 times | Joined on Sep 2016 @ Yekaterinbourg, Russia
#165
Originally Posted by rinigus View Post
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.
 

The Following 3 Users Say Thank You to XOleg For This Useful Post:
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#166
Originally Posted by XOleg View Post
@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.
 

The Following 4 Users Say Thank You to rinigus For This Useful Post:
Posts: 127 | Thanked: 313 times | Joined on Sep 2016 @ Yekaterinbourg, Russia
#167
@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?..
 

The Following 2 Users Say Thank You to XOleg For This Useful Post:
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#168
Originally Posted by XOleg View Post
@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.
 

The Following 5 Users Say Thank You to rinigus For This Useful Post:
Posts: 127 | Thanked: 313 times | Joined on Sep 2016 @ Yekaterinbourg, Russia
#169
@rinigus. thanks for help. I'll try...

I made. This is OK?

How about translate to Russian for name of regions?

Last edited by XOleg; 2017-03-18 at 07:38.
 

The Following User Says Thank You to XOleg For This Useful Post:
Posts: 127 | Thanked: 313 times | Joined on Sep 2016 @ Yekaterinbourg, Russia
#170
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
 

The Following User Says Thank You to XOleg For This Useful Post:
Reply

Tags
geocoder, linux, offline maps, router, sailfish os, tiles


 
Forum Jump


All times are GMT. The time now is 13:57.