topojsonファイルを使って日本地図を表示する作例。
使用ファイル:https://github.com/dataofjapan/land
地図出典元:地球地図日本
sequenceNumber,corporateNumber,process,correct,updateDate,changeDate,name,nameImageId,kind,prefectureName,cityName,streetNumber,addressImageId,prefectureCode,cityCode,postCode,addressOutside,addressOutsideImageId,closeDate,closeCause,successorCorporateNumber,changeCause,assignmentDate,latest,enName,enPrefectureName,enCityName,enAddressOutside,furigana,hihyoji | |
一連番号,法人番号,処理区分,訂正区分,更新年月日,変更年月日,商号又は名称,商号又は名称イメージID,法人種別,国内所在地(都道府県),国内所在地(市区町村),国内所在地(丁目番地等),国内所在地イメージID,都道府県コード,市区町村コード,郵便番号,国外所在地,国外所在地イメージID,登記記録の閉鎖等年月日,登記記録の閉鎖等の事由,承継先法人番号,変更事由の詳細,法人番号指定年月日,最新履歴,商号又は名称(英語表記),国内所在地(都道府県)(英語表記),国内所在地(市町村丁目番地等)(英語表記),国外所在地(英語表記),フリガナ,検索対象除外 |
ファイルバージョン,ファイル名,落札実績情報,調達案件番号,調達案件名称,落札決定日,落札価格,府省コード,入札方式コード,商号又は名称,法人番号 | |
fileversion,filename,successfulBidRecordInfo,procurementItemNo,procurementItemNm,successfulBidDate,successfulBidPrice,ministryCd,biddingMethodCd,tradeNameKanji,corporationNo |
調達案件番号,調達案件名称,落札決定日,落札価格,府省コード,入札方式コード,商号又は名称,法人番号 |
別ウインドウで開、挙動を確認ください。 Please check how it works to open new window with raw files.
コード 項目値名称 | |
101 国の機関 | |
201 地方公共団体 | |
301 株式会社 | |
302 有限会社 | |
303 合名会社 | |
304 合資会社 | |
305 合同会社 | |
399 その他の設立登記法人 | |
401 外国会社等 |
# Python code to remove emoji | |
# source: http://www.unicode.org/charts/ | |
import re | |
def remove_emojis(data): | |
emoj = re.compile("[" | |
u"\U00002700-\U000027BF" # Dingbats | |
u"\U0001F600-\U0001F64F" # Emoticons | |
u"\U00002600-\U000026FF" # Miscellaneous Symbols |
// https://www.finleyghosh.com/blog/check-for-a-page-404-with-only-javascript | |
function UrlExists(url) { | |
var http = new XMLHttpRequest(); | |
http.open('HEAD', url, false); | |
http.send(); | |
if (http.status != 404) | |
return true; | |
else | |
return false; |
-
Shapefile that is distributed from NaturalEarth( http://www.naturalearthdata.com/ ) have the data that (I am not sure all of the files but) the Northern Territories and Takeshima are not the Japanese territory. It is different from the Japanese government claims( http://www.mofa.go.jp/region/europe/russia/territory/index.html http://www.mofa.go.jp/region/asia-paci/takeshima/index.html ). The author of D3.js is using this file, and the people who do not know how to convert Shapefile to Geo/Topojson use his file as it is, it would imperceptibly become the de facto standard. This is an expressed concern that it could be causing the common sense of the world.
-
Natural Earthで配布されているShapefileは(すべてのファイルを確認していないですが)北方領土や竹島が、日本政府の主張( http://www.mofa.go.jp/mofaj/area/hoppo/index.html http://www.mofa.go.jp/mofaj/area/takeshima/index.html )と異なる、日本の領土ではないようなデータになっています。D3.jsの作者がこのファイルを使用していて、ShapefileをGeo/Topojsonへ変換する方法を知らない人たちは彼のファイルをそのまま使うので、いつの間にかこのような領土の表示が事実上の標準、常識になってしまうことに懸念を表明します。