Import/Catalogue/Japan KSJ2 Import

From OpenStreetMap Wiki
< Import‎ | Catalogue(Redirected from Key:KSJ2:DFC)
Jump to: navigation, search
Available languages — Import/Catalogue/Japan KSJ2 Import
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Baso Minangkabau · bosanski · brezhoneg · català · čeština · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · português do Brasil · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 吴语 · 粵語 · 中文(繁體)‎ · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް

http://nlftp.mlit.go.jp/ksj/jpgis/jpgis_datalist.html

"National-Land Numerical Information based on JPGIS" is geo data provided by National Land Information Division, a section of National and Regional Policy Bureau(NRPB), Ministry of Land, Infrastructure, Transport and Tourism (MLIT), Japan

Licenses

Their terms of use is written in Japanese; a summary in English is as follows.

  • 2-3. If you reproduce the National-Land Information or create derivative works, you must do a citation of the source (e.g., "「国土数値情報(○○データ) 国土交通省」", a literal translation, National-Land Numerical Information (XX Data), MLIT Japan).
  • 3-1. You may use the National-Land Information free of charge.
  • 3-5. Disclaimer. MLIT Japan makes no warranty on your use of the National-Land Information.
need discussion > concluded. see followings

OSMFJ confirmed using of KSJ2 to OSM(2012/July)

(Answer from MLIT)  No problem to import KSJ2 data into OSM. The source information is written to each Object as Tag(data attribution), and details are written on OSM wiki.(2012/12/02)

So, tags on each Nodes (means parts of way) method was deplicated. (need additional descriptions)

Accuracy/Quality

Almost "National-Land Numerical Information based on JPGIS" is based on "Digital Map 25000" by Geographical Survey Institute (GSI) Japan. Files are in XML format and datum is Japanese Geodetic Datum 2000 (JGD2000) which is based on ITRF94 and GRS80.

Type of data

Currently, following data are available for OSM use.

Please do not improt 国土数値情報 鉄道時系列データ due to license compatibility. It claims to only non-commertial use.

http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N05.html


Name
データ名称
As of
基準日
Shape
形状
Main attributes
主な属性情報
File unit
ファイル作成単位
Status
状態
Start
開始
End
終了
Notes
備考
Administrative district
行政区域データ
2007
平成19年
Area municipality name, municipality code.
市区町村の名称、市区町村コード。
each prefecture
各都道府県
in progress Apr 2008 - ODbL Reductionにより破損多し
Administrative district_2014
行政区域データ再インポート
2012
平成24年
Area Relation municipality name, municipality code.
市区町村の名称、市区町村コード。
each prefecture
各都道府県
not started June 2014 - -
Airport
空港データ
2007
平成19年
Node Area name, classification, operation hours.
空港の名称、種別、運用時間。
country
全国
done Mar 2008 Apr 2010 -
Coastline
海岸線データ
2006
平成18年
Way name, administrative area code (prefecture code and municipality code), administrator.
海岸保全区域・海岸名、行政区域コード、管理者。
each prefecture
各都道府県
done Nor 2009 Feb 2010 -
Dam
ダムデータ
2005
平成17年
Node name, river name, scale, address.
ダム名、河川名、規模、所在地。
country
全国
- - - -
Fishing port
漁港データ
2006
平成18年
Node Way name, fishing port code, administrative area code (prefecture code and municipality code), administrator.
漁港名、漁港コード、行政区域コード、管理者。
country
全国
- - - -
Forest
森林地域データ
2006
平成18年
Node Way area
森林エリア。
each prefecture
各都道府県
in progress Apr 2010 - -
Harbor
港湾データ
2006
平成18年
Node Way name, harbor code, administrative area code (prefecture code and municipality code), administrator.
港湾名、港湾コード、行政区域コード、管理者。
country
全国
- - - -
Lake and pond
湖沼データ
2005
平成17年
Area name, administrative area code (prefecture code and municipality code).
湖沼名、行政コード(都道府県コードと市区町村コード)。
country
全国
in progress Apr 2008 - -
Power plant
発電所データ
2007
平成19年
Node name, classification, generating capacity.
発電所名、種別、出力。
country
全国
done Mar 2011 Mar 2011 -
Public facility
公共施設データ
2006
平成18年
Node facility name, classification code, address, administrator.
施設の名称、分類コード、所在地、管理者。
each prefecture
各都道府県
done Apr 2011 Sep 2011 -
Railway
鉄道データ
2007
平成19年
Way line name, operator, classification, station name.
鉄道路線名、会社名、路線種別、駅名。
country
全国
in progress Mar 2008 - -
River
河川データ
2006
平成18年
Node Way name, river code, river beginning point, river ending point.
河川名、河川コード、河川始点、河川終点。
each prefecture
各都道府県
done Apr 2010 Oct 2011 -

Sample of Tags

Tags below is a sample of the common tags to all of KSJ2 data. And this is a case of railway data 2007, so "type of data" (note, note:ja) and "url" (source_ref) should be adapted for each type of data.

For all ways or relations of KSJ2 data. (not all nodes. (2012))

    <tag k='source' v='KSJ2/NO3' />
    <tag k='source_ref' v='http://wiki.openstreetmap.org/wiki/Import/Catalogue/Japan_KSJ2_Import' />

See each pages for details.

How to import data

Xml files, xmlschemas, codelists and specifications can be downloaded from the site, so someone who is familiar with xml could convert the data to osm file.

KsjTool(v1.5), a java program for conversion from KSJ2 xml file to shape format files, is also available.

  • User:Tatata made a perl script to convert the railway data from shape files to osm file. (ja)User:Tatataが鉄道データのshapeファイルをosmファイルへ変換するperlスクリプトを作成しました。 (notice: obsolete. please discuss on talk-ja ML first.)

Post Import Cleanup

Since I accidentially discovered several intersecting waterways in Japan I had a deeper look into the data. I looked for intersections of ways tagged with
waterway=canal
waterway=drain
waterway=ditch
waterway=stream
waterway=river
with the tool waycheck20.pl. On the script I disabled not matching for layers since all the imported waterways I checked had generally a layer= tag from -1 to -3 on them regardless the reality (compared with Bing). The waterways I extracted from japan.osm.pbf at geofabrik using osmfilter. The result with 2670 intersections you can find here.
A cleanup by the importers would be nice.
It also would be interesting to check the other parts of the import but I leave that to other people. :)

An updated check I will only deliver on request since the script is quite slow. As you can see on bottom of the result page it took more then 80 hours to run.

Links

  • SuperMap Viewer 5 http://www.supermap-japan.com/products/viewer.htm
    • This software supports SHP format file, so you can view KSJ2 data as a image and check attributes of each object after you convert the KSJ2 data from xml to shape by KsjTool. You can use this free of charge.