2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

OpenStreetMap coastline(海岸線)から GeoJSON LineString 生成

Last updated at Posted at 2019-10-14

こんにちは。
OSMCoastline を用い、OpenStreetMap coastline(海岸線) のデータから、GeoJSON LineString を作りました1。日本の例です。

  • OSMCoastline および必要物は homebrew を用いてインストールしました。
coastline.jpg

shima.jpg

$ brew install cmake gdal osmcoastline
$ wget http://download.geofabrik.de/asia/japan-latest.osm.pbf
$ osmcoastline_filter -o japan-coastline.osm.pbf japan-latest.osm.pbf 
$ osmcoastline -l -p none -o japan-coastline.db japan-coastline.osm.pbf
$ ogr2ogr -f "GeoJSON" japan-coastline.json japan-coastline.db lines
  1. "OSM Water Layer: Surface Waters in OpenStreetMap" (Dai YAMAZAKI's website) も参考になります。

2
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?