Запускаю 3_run_boundary.bat
@echo off
set BASEDIR=%CD%
:: =============================================================
rem Очистка целевых каталогов
echo .
echo . Cleaning the target directory
echo .
del /q /s %BASEDIR%\boundary*.*
:: =============================================================
rem Создаём файлы границ из данных OSM Osmosis.
echo .
echo . Osmosis create boundary out of file OSM data
echo .
call %BASEDIR%\osmosis\bin\osmosis ^
–read-pbf file=%BASEDIR%\input\MAP.osm.pbf outPipe.0=1 ^
–buffer inPipe.0=1 outPipe.0=2 ^
–tag-filter reject-relations inPipe.0=2 outPipe.0=3 ^
–tag-filter accept-ways boundary=administrative,postal_code inPipe.0=3 outPipe.0=4 ^
–used-node inPipe.0=4 outPipe.0=5 ^
^
–read-pbf file=%BASEDIR%\input\MAP.osm.pbf outPipe.0=6 ^
–buffer inPipe.0=6 outPipe.0=7 ^
–tag-filter accept-relations boundary=administrative,postal_code inPipe.0=7 outPipe.0=8 ^
–used-way inPipe.0=8 outPipe.0=9 ^
–used-node inPipe.0=9 outPipe.0=10 ^
^
–merge inPipe.0=5 inPipe.1=10 outPipe.0=11 ^
–write-pbf file=%BASEDIR%\boundary\local-boundaries.osm.pbf omitmetadata=true compress=deflate inPipe.0=11
java -cp %BASEDIR%\mkgmap\mkgmap.jar ^
uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreprocessor ^
%BASEDIR%\boundary\local-boundaries.osm.pbf %BASEDIR%\boundary\local
pause
получаю \boundary\local-boundaries.osm.pbf размер файла 3мб
boundary\local\bounds_2450000_1500000.bnd - bounds_2600000_1600000.bnd итого 17 файлов общий вес 9,5 мб