RU:Planet.osm

From OpenStreetMap Wiki
Jump to navigation Jump to search

broom

Help (89606) - The Noun Project.svg

Planet.osm это снимок базы данных OpenStreetMap.

Что внутри?

Planet.osm это окончательная версия точек, линий, и отношений в базе данных. Конечно же она содержит и все метки. История здесь уже не хранится. Также внутри нет треков GPS.

Файл представляет собой XML с расширением .osm

Частота обновления

Новая версия planet.osm выпускается еженедельно (в настоящее время — утром в четверг). У нас есть архивы данного файла начиная с апреля 2006 года. Текущий размер упакованного архиватором bzip2 файла planet.osm превышает 40 гигабайт (в распакованном виде — несколько сотен гигабайт) по состоянию на январь 2015.

Обычно, еженедельный дамп начинается около 01:10 утра по Гринвичу в среду утром и гарантированно включает все правки, совершённые до этого времени. The dump is run within database transactions, but don't expect referential integrity. Дамп обычно занимает около 12 часов.

Дополнительно мы предоставляем постоянные диффы. Выпускаются дневные (в поддиректории 'daily') и гораздо чаще почасовые и поминутные диффы. These have been produced with Osmosis and can be used to reconstruct the full dataset (see examples under the osmosis page for usage in various scenarios). Так как файлы содержат только различия, они занимают намного меньше места; Сжатый дневной дифф обычно занимает около 10 Мб. Для получения полной информации смотри Planet.osm/diffs

Скачивание

В связи с размером файла планеты некоторые старые версии wget могут не работать. Они ограничены файлами размером < 2Гб и при попытке скачать файл большего размера, размер будет передан как отрицательный, что вызовет сбой. Если это ваш случай, обновите wget.

Ссылка на первоисточник:

Пожалуйста, используйте в первую очередь зеркала!

Зеркала

Полные зеркала - БЫСТРЕЕ и не нагружают основной сервер OSM

Зеркала planet.osm-only

Bittorrent

Currently an experiment, I might automate this, maybe talking to the other mirror people aswell. --Skinkie 20:31, 4 April 2009 (UTC) The origin is powered by Oxilion.

С 2021 года на официальном сервер осм для каждой выгрузки создается торрент-файл и рекомендуется использовать его.

Фрагменты

Выгрузки из базы ограниченная каким-либо географическим районом.

По СНГ

http://osmosis.svimik.com/latest/ - выгрузка в pbf с нарезкой по странам СНГ а также по регионам РФ и Эстонии [1]

http://osm.sbin.ru/osm_dump/ - выгрузка в pbf с нарезкой по странам СНГ а также по регионам Белоруссии, РФ, Украины (редкое обновляется)

https://needgeo.com/#regions - выгрузка в pbf с нарезкой по странам СНГ а также по регионам Белоруссии, РФ, Украины

По странам мира
Сайт Доступные фрагменты планеты Обновление Изменения (Diff)
http://download.geofabrik.de/osm/ (daily excerpts for any continent (North America is weekly only); any country of Europe plus some regions (e.g. Alps region); some countries outside Europe; any German Bundesland; any French Departement; England/Scotland/Wales; some English counties; some London Bouroughs)
Europe and Germany extracts mirrored at ftp://ftp5.gwdg.de/pub/misc/openstreetmap/download.geofabrik.de
Ежедневно Нет
https://osmtoday.com/ Over 1000 sub-regions in Europe, Asia, South and North America, Africa and Australia. Ежедневно Нет
http://overpass-api.de/ (OSM Server Side Script small excerpts like a city, roughly files up to an uncompressed size of 300 MB) Ежечасно Нет
http://gis-lab.info/projects/osm_dump (регионы России и Беларуси в формате .osm, shape; обновление в 8 часов по московскому времени) Нет обновлений с 2016 Нет
https://download.bbbike.org/osm/ Full Planet (OSM and PBF), extracts of more than 200 cities and regions world wide or extract your own individual area (OSM, PBF, Garmin cycle map, Osmand, mapsforge, Navit, SVG, PNG, maps.me and ESRI shapefile format) Еженедельно Нет


Распаковка файла

Many tools allow you to use the files in compressed form but if need to unpack it for some reason, on Windows download the 7-zip uncompression tool. On Linux just write bzip2 -d planet.osm.bz2. If you want to do it differently, then check out this list of compression programs.

If handling the compressed youself with libbzip2, the files are compressed with pbzip2 and contain multiple streams and need to be handled as described in section 3.4.8 of the bzip2 documentation.

Обработка файла

Существующий файл - в формате OSM XML. В SVN, есть несколько скриптов для его обработки, включая те, которые кладут его обратно в базу данных.

  • Osmosis это инструмент, на языке Java, который может обрабатывать и импортировать файл планеты в вашу базу данных.
  • planetosm-to-db.pl creates a current-ruby-server-database too (or a slightly different one for PostgreSQL, as used by Where Are They, including the db schema). It stores the node and segment ids in memory, so it can import only some of the data (exclude or include), and normally only uses about 100MB. It is not fast, taking several hours to load a UK-only planet excerpt.
  • If you need a db for testing purposes only, http://richard.dev.openstreetmap.org/osm05.sql.gz is a 75Mb SQL dump of the UK from January 2008. (current_ tables only - but you can populate the other tables from there - and no relations tables.)
  • (Other tools in svn have not been updated for the 0.5 database structure and are consequently not usable.)
  • Tagwatch contains code that processes OSM files
  • There is a PERL module which can work on normal and compressed osm files here: osm.pm. Examples can be found here User:Gary68

Материалы сделанные на основе planet.osm

Последние версии файла планеты

Old versions of the planet file are available at https://planet.openstreetmap.org/ as well. The Historical Coverage page describes a service that allows you to view data from the past and how it developed.

Статистика

  • tagstathas statistics on the tag for nodes, ways and relations.
  • Stats page on the wiki