View Single Post
Posts: 415 | Thanked: 1,861 times | Joined on Aug 2016 @ Estonia
#25
I have been working on making import of the maps simpler. The state is a bit work in progress, but it should be close to full release.

Right now, on each release in GitHub, the Import tool is built automatically using Travis and AppVeyor. As a result, we can get compiled import tools for Linux and Windows. While Linux version includes a small script that simplifies import to command "import mapfilename_in_pbf" , Windows build requires a bit more sophisticated input.

So, I would like to ask users interested in offline maps:

1. Linux users: Please test whether import works for you. Please report even if its just OK and include your distro. Would like to get conformation that it works in general, not just on PCs available to me.

2. Windows users: Please test whether you could run Import.exe by double clicking on it. No import will run, just command line help should be shown. Again please give a feedback, even a short one. If you wish to use it for map import as it is then I strongly suggest to use the similar options as in https://github.com/rinigus/libosmsco...inux/import.sh . Otherwise, you will end up with lots of debug info and get very large map directories that you have to store on device.

3. (quick note - I am getting help with this script via libosmscout developers mailing list) Someone with Windows scripting skills (minimal should already be better than mine), please write a script that would confirm to the spec below. If you don't know how to make it in full, please start discussion and write some parts that you can. Maybe then Windows users could finalize this small script to make map import easy.

The compiled packages are available at

https://github.com/rinigus/libosmsco...0.git.20161118

Let's use this for current testing. As soon as we get Windows scripts ready, we could make a new server release with the corresponding Import tools.

What I expect the Windows script should do:

Aim: finalize a compiled Windows package for simple importing maps into libosmscout

* The compiled binary of Import can be grabbed at https://github.com/rinigus/libosmsco...0.git.20161118 . The new script will be a part of this package and would allow us to distribute importers to the users.

* The script could be similar to https://github.com/rinigus/libosmsco...inux/import.sh

* While in Linux, we are used to start commands from terminal, in Windows its more common to drag-and-drop. So, on dragging downloaded OSM or OSM.PBF file, the new script should:
  • open a terminal (or PowerShell). I suspect its done automatically in Windows, but I don't know for sure
  • make a directory with the simplified name based on the dragged map file name. I used to remove -latest.osm.pbf from the map fine name and make directory just on the basis of remaining name. See Linux script for details
  • start Import.exe from relative bin\Import.exe . The style map.ost is under stylesheets directory. See compiled binary for package structure. Its expected that users just unpack it and can use importer straight away (no install is needed).
  • keep terminal open after Import.exe is finished, so the user could examine output for errors
  • on any error (cannot make export directory), stop the script (set -e in bash).

Since I am not familiar with Windows scripting, I am just afraid that it would take too long time for me to make it. So, please help even if its really trivial for you.

Last edited by rinigus; 2016-11-28 at 17:19.
 

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