https://github.com/amdmi3/osm-cutting-contours
Contour set for OSM dump cutting
https://github.com/amdmi3/osm-cutting-contours
Last synced: about 2 months ago
JSON representation
Contour set for OSM dump cutting
- Host: GitHub
- URL: https://github.com/amdmi3/osm-cutting-contours
- Owner: AMDmi3
- Created: 2013-05-30T19:46:57.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-12-22T16:37:01.000Z (over 11 years ago)
- Last Synced: 2025-03-11T16:24:07.432Z (about 1 year ago)
- Language: Perl
- Size: 250 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Это коллекция контуров, которые я использую для точной вырезки стран
и регионов из бОльших дампов, либо дампов, в которые попадают части
соседних регионов.
- contours.osm содержит контуры в виде обычных OSM полигонов либо
мультиполигонов с тэгом name, его можно редактировать JOSM'ом
- osm2poly.pl конвертирует его в .poly файлы, понятные osmosis'у
- для каждого контура создаётся .poly файл с названием из тэга
name
- скрипт зависит от модуля XML::Parser
- скрипт обрабатывает .osm файл переданный в первом аргументе;
вызванный без аргументов, он обрабатывает contours.osm в своей
директории
======================================================================
This is a collection of contours I use for precise cutting countries
and regions out of larger OSM data dumps.
- contours.osm contains contours as a plain OSM data: ways and
multipolygons with name tag. It may be edited in JOSM
- osm2poly.pl coverts it into a set of .poly files which may later
be used with osmosis
- for each contour, .poly file is created named after its name tag
- script needs XML::Parser perl module
- script processes .osm file provided in a first argument;
without arguments, it processes contours.osm from directory where
the script itself is located