Help us understand the problem. What is going on with this article?

Leaflet.js を使って GeoJSON データを地図上に表示してみる その1

More than 1 year has passed since last update.

表示しようと思うデータは静岡県掛川市 施設検索の「市役所・支所などのオープンデータ

まずは下準備として、このCSVファイルをGeoJSONに変換。

Step 1: Select your input

CSV To GeoJSON Converter
を開いて
paste into Text Box below
にコピーしたCSVデータをペースト

Step 2: Choose input options

First row is column names にチェック
Limit # of lines:にデータの行数を入力(必要?)
Field Separator: "," を選択

Step 3: Choose output options (optional)

Latitude Field #
Longitude Field #
それぞれに
Latitude(緯度)
Longitude(緯度)(日本だと'137.988683'のように桁数が長い=Longの方がこちら )
の列番号を入力(1列目は1)

Step 4: Generate output

Converter CSV To GeoJSON ボタンを押して、生成されたGeoJSONをコピペ OR DownLoad する。

*今回使用したデータの列見出しに ':' が入っていて、Leaflet.jsで読み込んだ時に不具合があったので、あらかじめ ':' 等は取り除いておいた方がよいかも。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした