# GeoJSON を SVG に変換

> GeoJSON(GeoJSON)を SVG(Scalable Vector Graphics (with GeoItems tags))に変換するには、GeoJSON データを MyGeodata Cloud Converter にアップロードし、出力形式として SVG を選択して結果をダウンロードします。GIS ソフトウェアのインストールは不要で、オンラインで完結します。

- ページ: https://beta.mygeodata.cloud/ja/converter/geojson-to-svg
- コンバーターを開く: https://beta.mygeodata.cloud/tools/converter/?format=svg_geo
- 入力: GeoJSON (GeoJSON, .geojson, .json)
- 出力: Scalable Vector Graphics (with GeoItems tags) (SVG, .svg)

## GeoJSONからSVGに変換するときの処理内容

- **WGS 84のまま、または再投影** — GeoJSON データは常に WGS 84 (per spec) (EPSG:4326) です。SVG の出力でもそのまま維持するか、UTMや各国のグリッドなどの投影座標系へ再投影できます。
- **複数ファイルを1つの SVG に** — 複数の GeoJSON ファイルを一度にアップロードできます。1回のバッチで変換され、複数レイヤーを持つ1つの SVG に結合することもできます。
- **属性は引き継がれます** — GeoJSON データの属性列は SVG に書き込まれます。オプションで、保持する属性を選択できます。

## 4ステップでGeoJSONをSVGに変換

1. **GeoJSON データをアップロード** — GeoJSON ファイルをコンバーターにドラッグ&ドロップしてください。複数のファイルを同時に追加することもできます。
2. **入力内容を確認** — コンバーターがレイヤー、属性、座標系を検出し、概要を表示します。座標系が見つからない場合は、手動で割り当てることができます。
3. **SVG とオプションを選択** — 出力形式として SVG を選択します。座標系をそのまま使用するか、別の座標系を選択できます。 オプション設定では、レイヤー、属性、SVG 固有のオプションを選択できます。
4. **結果をダウンロード** — 開始前にクレジットでの料金を確認し、変換を実行して、SVG の結果をダウンロードします。

## GeoJSONとSVGの技術比較

| | GeoJSON | SVG |
|---|---|---|
| 正式名称 | GeoJSON | Scalable Vector Graphics (with GeoItems tags) | 
| データタイプ | ベクター · Web・JSON | ベクター · ドキュメント | 
| ファイル拡張子 | .geojson, .json | .svg | 
| ファイル | 単一ファイル | 単一ファイル | 
| メディアタイプ | application/json | image/svg+xml | 
| ジオメトリタイプ | Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection | Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection | 
| 複数レイヤー | いいえ | はい | 
| レイヤー内の混在ジオメトリ | はい | はい | 
| 属性名 | 長さの制限なし(UTF8) | — | 
| 座標系 | 常にWGS 84 (per spec) (EPSG:4326) | 任意（EPSG、ESRI、カスタム） | 
| コンバーターの対応状況 | 読み取り・書き込み | 読み取り・書き込み | 
| 代表的なソフトウェア | QGIS, ArcGIS Pro, GDAL/OGR, FME, Global Mapper, Leaflet | Inkscape, Adobe Illustrator, QGIS, FME, Global Mapper | 
| 仕様 | https://geojson.org/ | https://www.w3.org/TR/SVG2/ | 

## GeoJSONとは

GeoJSONは、ベクターの地理フィーチャをJSONでエンコードするための、オープンなテキストベースの形式です。2008年に開発者の非公式グループによって最初に公開され、2016年にIETFによってRFC 7946として標準化されました。通常、ファイルにはFeatureCollectionが含まれ、その各フィーチャは、ジオメトリ(Point、LineString、Polygon、それらのMulti系、またはGeometryCollection)と自由形式のpropertiesオブジェクトで構成されます。

GeoJSONは人間が読みやすく、ほとんどのGISソフトウェアやJavaScriptの地図ライブラリが対応しているため、Webマッピング、API、データ交換で広く使われています。RFC 7946ではWGS 84の経度・緯度の座標が必須とされ、2008年の仕様にあったcrsメンバーは削除されましたが、現在でもこれを書き出すツールがあります。この形式にはスタイル、トポロジー、正式な属性スキーマがありません。また、冗長なテキストエンコーディングのため、非常に大きなファイルは解析に時間がかかり、読み込み時のメモリ消費も大きくなります。

## SVGとは

Scalable Vector Graphics (SVG) is an XML-based vector image format maintained by the World Wide Web Consortium (W3C). It describes shapes such as paths, polylines, polygons, circles and text together with styling, and it is rendered natively by web browsers. In geospatial use, map features are written as SVG elements whose coordinates are projected into the drawing's user coordinate space, with identifiers or attribute values carried in element attributes, custom namespaced attributes or metadata blocks.

SVG is mainly used for publishing maps on the web and for cartographic finishing in illustration software. It has no built-in coordinate reference system, so georeferencing depends on embedded metadata or application-specific conventions, and recovering real-world coordinates requires knowing the transformation that was applied. There is no standard attribute schema, curves and styles do not map directly to GIS geometry types, and coordinate precision may be reduced on export, making it better suited to visualisation than to authoritative storage.

## 無料のGeoJSONサンプルファイル

- [地名(ポイント)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-places.geojson) — セントヘレナの58地点(集落20、山頂17、見どころ21)。名称、カテゴリ、Copernicus DEMの標高、OSM IDを含みます。RFC 7946 GeoJSON、WGS 84。 (14.8 kB)
- [道路と小道(ライン)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-roads.geojson) — 名称のある道路、街路、トラック、小道110件(OSMセグメントを名称ごとに結合)。クラス、路面、制限速度、長さを含みます。RFC 7946 GeoJSON、WGS 84。 (161.8 kB)
- [土地被覆(ポリゴン)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-landcover.geojson) — OpenStreetMap の土地被覆ポリゴン190件(森林、低木地、農地、住宅地、水域など)。面積(ヘクタール)を含みます。RFC 7946 GeoJSON、WGS 84。 (192.3 kB)
- [等高線(3Dライン)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-contours.geojson) — Copernicus DEM から作成した100 m間隔の等高線27本。Z値に標高を持つ3Dラインです。RFC 7946 GeoJSON、WGS 84。 (261.2 kB)
- [水路(ライン)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-waterways.geojson) — OpenStreetMap の河川・水路117件。種別と長さを含みます。RFC 7946 GeoJSON、WGS 84。 (87 kB)
- [ジェームズタウンの建物(ポリゴン)](https://beta.mygeodata.cloud/static/landing/samples/v1/geojson/st-helena-buildings.geojson) — ジェームズタウンの建物外形179件。種別、建築面積、地盤標高を含みます。RFC 7946 GeoJSON、WGS 84。 (61.4 kB)

## よくある質問

### GeoJSON を SVG に変換するには?

コンバーターを開き、GeoJSON ファイルをドロップして、検出されたレイヤーと座標系を確認し、出力形式として SVG を選択して結果をダウンロードします。すべてブラウザー上で動作するため、ソフトウェアのインストールは不要です。

### GeoJSON から SVG への変換は無料ですか?

どなたでも 30 日ごとに 3 クレジットを無料で受け取れます。小規模な変換は 1 クレジットからなので、たまに使う程度であれば無料で変換できます。大きなデータや頻繁な処理には、クレジットパック($2.00 から)または月額プラン($10.00 から)をご利用ください。

### 変換中に座標系を変更できますか?

はい。元の座標系をそのまま使用するか、別の座標系を選択できます。コンバーターは、S-JTSK、British National Grid、RD New などの各国のグリッドを含む 11,000+ の座標系に対応しています。

### GeoJSON ファイルのサイズはどのくらいまで対応していますか?

アカウントなしの場合、1ファイルあたり最大 2 GB までアップロードできます。メールアドレスを認証済みのログインユーザーは、はるかに大きなデータセットをアップロードでき、大規模な処理はスケーラブルなクラウドワーカーで実行されます。

### データは安全ですか?

ファイルは HTTPS で転送され、分離されたクラウド環境で処理されます。アカウントなしの場合、ファイルは一時的にのみ保存され、自動的に削除されます。アカウントをお持ちの場合は、削除するまで非公開のデータワークスペースに保存されます。

### GeoJSON から SVG への変換を自動化できますか?

はい。同じ変換を GeoCzech API でもご利用いただけます。GeoJSON ファイルを出力形式 "svg_geo" で送信し、スクリプトや ETL パイプラインから SVG の結果をダウンロードできます。API アクセスは Basic, Standard、Premium プランに含まれています。

## 関連する変換

- [GeoJSON から KML へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-kml)
- [GeoJSON から SHP へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-shp)
- [GeoJSON から GPX へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-gpx)
- [GeoJSON から DXF へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-dxf)
- [GeoJSON から GeoPDF へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-geopdf)
- [GeoJSON から KMZ へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-kmz)
- [GeoJSON から CSV へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-csv)
- [GeoJSON から XLSX へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-xlsx)
- [GeoJSON から TopoJSON へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-topojson)
- [GeoJSON から MIF へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-mif)
- [GeoJSON から WKT へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-wkt)
- [GeoJSON から SQLite へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-sqlite)
- [DWG から SVG へ](https://beta.mygeodata.cloud/ja/converter/dwg-to-svg)
- [GPX から SVG へ](https://beta.mygeodata.cloud/ja/converter/gpx-to-svg)
- [KML から SVG へ](https://beta.mygeodata.cloud/ja/converter/kml-to-svg)
- [OSM から SVG へ](https://beta.mygeodata.cloud/ja/converter/osm-to-svg)
- [SHP から SVG へ](https://beta.mygeodata.cloud/ja/converter/shp-to-svg)
- [DXF から SVG へ](https://beta.mygeodata.cloud/ja/converter/dxf-to-svg)
- [KMZ から SVG へ](https://beta.mygeodata.cloud/ja/converter/kmz-to-svg)
- [GPKG から SVG へ](https://beta.mygeodata.cloud/ja/converter/gpkg-to-svg)
- [CSV から SVG へ](https://beta.mygeodata.cloud/ja/converter/csv-to-svg)
- [TopoJSON から SVG へ](https://beta.mygeodata.cloud/ja/converter/topojson-to-svg)
- [GeoPDF から SVG へ](https://beta.mygeodata.cloud/ja/converter/geopdf-to-svg)
- [XLSX から SVG へ](https://beta.mygeodata.cloud/ja/converter/xlsx-to-svg)

