[OSGeoJapan-discuss] QGIS GeoJSON保存時のフォーマット
Kohei Otsuka
kochizufan @ gmail.com
2021年 6月 26日 (土) 20:33:53 PDT
大塚です。
お世話になります。
QGISでGeoJSONを保存すると、
{
"type": "FeatureCollection",
"name": "pois",
"hoshu:relation": { "test": "hoge", "test2": 2 },
"features": [
{ "type": "Feature", "properties": { "fid": 71, "area_no": "1", "name":
> "本地十一面観世音", "type": "菩薩像", "era": "不明", "year": "", "place_1": "朝日町",
> "place_2": "地内", "detail": "", "note_1": "石祠型", "note_2": "", "note_3": "",
> "area": "館林", "surveyed": "", "description": "", "photo": "",
> "public_relations": "", "confirmed": false }, "geometry": { "type":
> "Point", "coordinates": [ 139.53895755498479, 36.253239893311907 ] } },
{ "type": "Feature", "properties": { "fid": 104, "area_no": "2", "name":
> "円教寺馬頭尊", "type": "馬頭観世音", "era": "不明", "year": "", "place_1": "朝日町",
> "place_2": "", "detail": "円教寺", "note_1": "柱型、文字", "note_2": "", "note_3":
> "", "area": "館林", "surveyed": "", "description": "", "photo": "",
> "public_relations": "", "confirmed": false }, "geometry": { "type":
> "Point", "coordinates": [ 139.538853681066115, 36.251592056450676 ] } },
...
こんな感じになりますが、これを
{
"type": "FeatureCollection",
"name": "pois",
"hoshu:relation": { "test": "hoge", "test2": 2 },
"features": [
{
"type": "Feature",
"properties": {
"fid": 71,
"area_no": "1",
"name": "本地十一面観世音",
"type": "菩薩像",
"era": "不明",
"year": "",
"place_1": "朝日町",
"place_2": "地内",
"detail": "",
"note_1": "石祠型",
"note_2": "",
"note_3": "",
"area": "館林",
"surveyed": "",
"description": "",
"photo": "",
"public_relations": "",
"confirmed": false
},
"geometry": {
"type": "Point",
"coordinates": [ 139.53895755498479, 36.253239893311907 ]
}
},
{
"type": "Feature",
"properties": {
"fid": 104,
"area_no": "2",
"name": "円教寺馬頭尊",
"type": "馬頭観世音",
"era": "不明",
"year": "",
"place_1": "朝日町",
"place_2": "",
"detail": "円教寺",
"note_1": "柱型、文字",
"note_2": "",
"note_3": "",
"area": "館林",
"surveyed": "",
"description": "",
"photo": "",
"public_relations": "",
"confirmed": false
},
"geometry": {
"type": "Point",
"coordinates": [ 139.538853681066115, 36.251592056450676 ]
}
},
...
こんな感じに出力したいのですが、どんな方法があり得ますでしょうか。
設定でできるのならば知りたいですし、もしくは保存後のトリガなどで処理できるのならば、
それを実現するための実装方法のヒントをいただけると助かります。
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: <http://lists.osgeo.org/pipermail/osgeojapan-discuss/attachments/20210627/0745a300/attachment-0001.html>
OSGeoJapan-discuss メーリングリストの案内