パブリックドメインの Natural Earth のデータを利用したサンプルデータです。
データは 1:50m Cultural Vectors Admin 0 - Countries を利用しています。
- Shapefile
- GeoJSON
- CSV
- SpatiaLite
- GeoPackage
$ mkdir -p Shapefile GeoJSON CSV SpatiaLite GeoPackage
$ ogr2ogr -f GeoJSON ./GeoJSON/ne_50m_admin_0_countries.geojson ./ne_50m_admin_0_countries.shp
$ ogr2ogr -f CSV -lco GEOMETRY=AS_WKT -lco SEPARATOR=TAB ./CSV/ne_50m_admin_0_countries.csv ./ne_50m_admin_0_countries.shp
$ ogr2ogr -f SQLite -dsco SPATIALITE=YES -nlt PROMOTE_TO_MULTI ./SpatiaLite/ne_50m_admin_0_countries.sqlite ./ne_50m_admin_0_countries.shp
$ ogr2ogr -f GPKG ./GeoPackage/ne_50m_admin_0_countries.gpkg ./ne_50m_admin_0_countries.shp
$ mv ./ne_50m_admin_0_countries.{shp,dbf,shx,prj,cpg} ./Shapefile