View Single Post
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#153
Originally Posted by XOleg View Post
@rinigus thank for your very fast job, but... This is Chinese letter for me :-( I would prefer either download districts with new version of server or import regions for old version if there is no more simple solution.
sorry ,would have been complicated for me couple of month as well . So, let's get to the bottom of this .

Aim is to get regions prepared into the system so you and all others could download them into the phone using OSM Scout Server. In addition, the regions would be updated with new OSM data once in a while and follow OSM Scout Server versions.

To get maps to the phone, you need to know a little bit about how they are prepared. In short, I download current Planet PBF and process it to get PBF for each region that you see available in you're Map Manager. After getting region PBFs, I convert them into libosmscout and geocoder-nlp formats. All this is later uploaded into @MartinK server from where you download them.

Now all regions are described using simple tree of hierarchies that I linked earlier. Just try to go and browse into Russia. You would see districts, if I call them correctly. Each district has two files, name and poly. Name is simple: just the name of the region. Poly is a file that describes a line on the map surrounding that region. This file is used when regional PBFs are made and later imported.

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.

As far as I remember, you mentioned that you needed region which is between normal hierarchies. I think you could add that as well, just position it accordingly. For that, you will need to make own Poly file. See Barcelona for example of such simple region.

One question for Russian users : do you need full Russia map or are the regions fine? I am planning to remove full Russia import and just leave parts, as done for US. So, unless we have lots of users using full Russia map, there is no reason to keep it in this way .
 

The Following 5 Users Say Thank You to rinigus For This Useful Post: