# SVG を JSON-FG に変換

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

- ページ: https://beta.mygeodata.cloud/ja/converter/svg-to-json-fg
- コンバーターを開く: https://beta.mygeodata.cloud/tools/converter/?format=jsonfg
- 入力: Scalable Vector Graphics (with GeoItems tags) (SVG, .svg)
- 出力: OGC Features and Geometries JSON (JSON-FG) (JSON-FG, .jsonfg, .json)

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

- **座標系を維持または変更** — SVG データの座標系は自動的に検出されます。そのまま維持するか、JSON-FG の出力を 11,000+ 種類の座標系(EPSG、ESRI、IGNF)のいずれかに再投影できます。
- **JSON-FG ファイルにつき1レイヤー** — SVG は複数のレイヤーを保持できますが、JSON-FG は1つのみです。各レイヤーは個別の JSON-FG ファイルに書き出されます。レイヤーを1つに結合することもできます。
- **JSON-FG は ポイント, ライン、ポリゴン を保存します** — その他のジオメトリタイプ(ジオメトリコレクション)は JSON-FG では表現できません。コンバーターは最初にデータを確認し、互換性のあるオプションのみを提示します。
- **属性は引き継がれます** — SVG データの属性列は JSON-FG に書き込まれます。オプションで、保持する属性を選択できます。

## 4ステップでSVGをJSON-FGに変換

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

## SVGとJSON-FGの技術比較

| | SVG | JSON-FG |
|---|---|---|
| 正式名称 | Scalable Vector Graphics (with GeoItems tags) | OGC Features and Geometries JSON (JSON-FG) | 
| データタイプ | ベクター · ドキュメント | ベクター · Web・JSON | 
| ファイル拡張子 | .svg | .jsonfg, .json | 
| ファイル | 単一ファイル | 単一ファイル | 
| メディアタイプ | image/svg+xml | application/geo+json-fg | 
| ジオメトリタイプ | Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection | Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, PolyhedralSurface | 
| 複数レイヤー | はい | いいえ | 
| レイヤー内の混在ジオメトリ | はい | はい | 
| 属性名 | — | — | 
| 座標系 | 任意（EPSG、ESRI、カスタム） | 任意（EPSG、ESRI、カスタム） | 
| コンバーターの対応状況 | 読み取り・書き込み | 読み取り・書き込み | 
| 代表的なソフトウェア | Inkscape, Adobe Illustrator, QGIS, FME, Global Mapper | GDAL/OGR, QGIS, ldproxy | 
| 仕様 | https://www.w3.org/TR/SVG2/ | https://docs.ogc.org/is/21-045r1/21-045r1.html | 

## 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.

## JSON-FGとは

OGC Features and Geometries JSON(JSON-FG)は、Open Geospatial ConsortiumがGeoJSONの拡張として開発したエンコーディングです。GeoJSONが意図的に対象外としていた要件に対応します。JSON-FGドキュメントは有効なGeoJSONドキュメントのままなので、既存のGeoJSONクライアントも標準のgeometryメンバーを読み取れます。追加情報は追加のメンバーで保持されます。"place"は他の座標参照系のジオメトリを保持し、"coordRefSys"はCRSを宣言し、"time"は時点または期間を保存し、"featureType"はフィーチャの種類を識別します。

このエンコーディングは、おなじみのポイント、ライン、ポリゴンの各タイプとそのマルチパート版に対応しています。さらに、多面体などの3次元ソリッドも追加されています。"conformsTo"配列により、ファイルが準拠する仕様の部分を宣言します。JSON-FGは、WebAPI、特にOGC API Featuresサービスや、投影座標や時間情報が重要となるデータ交換を想定しています。テキスト形式であるため、大規模なデータセットでは冗長になり、ソフトウェアのサポートもまだ拡大の途上にあります。

## よくある質問

### SVG を JSON-FG に変換するには?

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

### SVG から JSON-FG への変換は無料ですか?

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

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

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

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

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

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

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

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

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

## 関連する変換

- [SVG から DXF へ](https://beta.mygeodata.cloud/ja/converter/svg-to-dxf)
- [SVG から GeoJSON へ](https://beta.mygeodata.cloud/ja/converter/svg-to-geojson)
- [SVG から XLSX へ](https://beta.mygeodata.cloud/ja/converter/svg-to-xlsx)
- [SVG から SHP へ](https://beta.mygeodata.cloud/ja/converter/svg-to-shp)
- [SVG から CSV へ](https://beta.mygeodata.cloud/ja/converter/svg-to-csv)
- [SVG から KML へ](https://beta.mygeodata.cloud/ja/converter/svg-to-kml)
- [SVG から GPX へ](https://beta.mygeodata.cloud/ja/converter/svg-to-gpx)
- [SVG から TopoJSON へ](https://beta.mygeodata.cloud/ja/converter/svg-to-topojson)
- [SVG から DGN へ](https://beta.mygeodata.cloud/ja/converter/svg-to-dgn)
- [SVG から GeoPDF へ](https://beta.mygeodata.cloud/ja/converter/svg-to-geopdf)
- [SVG から KMZ へ](https://beta.mygeodata.cloud/ja/converter/svg-to-kmz)
- [SVG から MIF へ](https://beta.mygeodata.cloud/ja/converter/svg-to-mif)
- [CSV から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/csv-to-json-fg)
- [DWG から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/dwg-to-json-fg)
- [DXF から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/dxf-to-json-fg)
- [GeoJSON から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/geojson-to-json-fg)
- [GeoPDF から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/geopdf-to-json-fg)
- [GPKG から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/gpkg-to-json-fg)
- [GPX から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/gpx-to-json-fg)
- [KML から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/kml-to-json-fg)
- [KMZ から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/kmz-to-json-fg)
- [SHP から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/shp-to-json-fg)
- [TopoJSON から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/topojson-to-json-fg)
- [XLSX から JSON-FG へ](https://beta.mygeodata.cloud/ja/converter/xlsx-to-json-fg)

