LoginSignup
2
2

More than 3 years have passed since last update.

Google Earth Proとsimplekmlを使って,マッピングしてみる

Last updated at Posted at 2019-09-18

※Google Colaboratoryを使用しています.なので,Googleアカウントとパソコンがあれば,誰でも作業できます.

simple kmlを使って,実際にマッピング!

simple kml
https://simplekml.readthedocs.io/en/latest/

simplekmlをインストール

pip install simplekml

simplekmlをインポート

import simplekml

ちゃんと動くか確認するため,東京タワーを表示させてみる.

kml = simplekml.Kml()
kml.newpoint(name="Tokyo_tower", coords=[(139.745433, 35.658581, )])  # 経度,緯度
kml.save("tokyo_tower.kml")

作成したkmlファイルをダウンロード.

from google.colab import files
files.download('tokyo_tower.kml')

Google Earth proを起動させ,ドラッグすると...
東京タワー.jpg

黄色いピンが見えたらOK!

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2