<\/P>
なぜSharePoint onlineでEXIFファイルのプロパティが見られないのか?<\/STRONG><\/FONT><\/P><\/STRONG><\/FONT><\/P> <\/P>2019年までは、ユーザーはEXIF(Exchangeable Image File format)データを含む画像ファイルをアップロードし、EXIFプロパティを自動的にSharePointドキュメントライブラリにインポートすることができました。EXIFプロパティのインポートにより、GPSデータがドキュメントライブラリのビューに列として表示されていました。<\/P>SharePointの自動EXIFプロパティインポート機能は、もはや利用できない基盤プラットフォームの機能に依存していました。この機能がプラットフォームから削除されたため、依存していた機能もSharePoint Onlineから削除されました。<\/P> <\/P>私たちはSharePoint onlineにEXIFデータを含む何千もの画像ファイルをアップロードしています。この機能をどうすれば取り戻せますか?<\/FONT><\/STRONG><\/P>SharePoint onlineではEXIFデータの自動インポート機能はサポートされなくなりましたが、Power Automateフローを使って画像ファイルからGPSデータを含むEXIFデータを抽出することは可能です。<\/P>このブログでは、画像ファイルからEXIFプロパティ内のGPSデータを抽出するためのPower Automate<\/A>フローの設定手順と、SharePoint onlineでArcGIS for SharePointウェブパーツを使ってGPSデータを地図上にプロットする方法について説明します。<\/P>例えば、EXIFデータを含む画像ファイルをSharePoint onlineのドキュメントライブラリに保存する必要があるプロジェクトがあるとします。このプロジェクトではGPSデータをドキュメントライブラリの列として表示し、そのGPSデータを使って地図上にポイントをプロットする必要があります。ファイルにはEXIFプロパティ内にGPSデータが含まれており、まずGPSデータを抽出してドキュメントライブラリの列に直接入力したいと考えています。ドキュメントライブラリビューに画像ファイルから取得した「Longitude」と「Latitude」のデータが入力されたら、そのドキュメントライブラリをArcGIS for SharePointアプリで地図レイヤーとして追加できます。<\/P>Power Automateフロー:<\/STRONG><\/P>画像ファイルからEXIFプロパティ(GPSデータ付き)を抽出するために、Power AutomateでEncodian Flowr<\/A>コネクタを使用します。「Encodian Flowr」はサードパーティ製のPower Automateコネクタで、画像ファイルからEXIFプロパティを抽出するためのアクション<\/STRONG>が含まれています。<\/P><\/span><\/P> <\/P>フロー作成時には、「Automated cloud flow」として設定します。これは、新しいファイルがSharePointのドキュメントライブラリにアップロードされたときに自動的にトリガーされるようにしたいためです。<\/P>最初のアクション(When a file is created (properties only))がフローのトリガーです。<\/P><\/span><\/P><\/span><\/P>「Encodian Flowr」アクション - Get image informationでは、前のアクション(Get file content)から「File content」を選択し、「Simplified Lat\Long Format」には「Yes」を選びます。このアクションはドキュメントライブラリ(ドキュメントライブラリ名:「EXIF」)にアップロードされたファイルのすべての画像情報を取得します。<\/P><\/span><\/P><\/span><\/P> <\/P>「Encodian Flowr」アクション - 「Remove EXIF tags from image」はアップロードされた画像ファイルからEXIFプロパティを抽出し、その後続のSharePointアクション「Update file properties」でファイルプロパティを更新するために使用できます。「File content」には前のアクション(Get file content)からの「File content」を入力します。アップロードするファイルは「JPG」タイプなので、「Image type」に指定する必要があります。<\/P> <\/P>JPGファイル内のEXIFプロパティはJSON形式で保存されています。そのため、組み込みアクション「Parse JSON」を使ってJSON出力を解析し、それを使ってSharePointドキュメントライブラリ内のファイルプロパティを更新します。<\/P> <\/P>フローを「保存」し、「テスト」を実行して「Get Image file」がEXIFデータJSONを生成するか確認します。<\/P><\/span><\/P> <\/P>「Parse JSON」アクションでは、「Get Image information」アクションからの「EXIF Data (JSON)」を使用します。<\/P>< \/ span >< \/ P > < P >& nbsp ; < \/ P > < P > 「サンプルから生成」をクリックし、「Get image information」アクションからのJSON出力を画面キャプチャ動画で示されているように貼り付けます。「完了」をクリックします。 < \/ P > < P >< span class = " lia-inline-image-display-wrapper lia-image-align-inline " image-alt = " RaajRaaj_7-1695840942408.png " style = " width: 400px; " >< img src = " https : \/ \/ us.v-cdn.net \/ 6038851 \/ uploads \/ images \/ 81806i1AD5AB9EA4631C2E \/ RaajRaaj_7-1695840942408.png " role = " button " title = " RaajRaaj_7-1695840942408.png " alt = " RaajRaaj_7-1695840942408.png " \/ >< \/ span >< \/ P > < P >& nbsp ; < \/ P > < P >< span class = " lia-inline-image-display-wrapper lia-image-align-inline " image-alt = " RaajRaaj_8-1695840957255.png " style = " width: 400px; " >< img src = " https : \/ \/ us.v-cdn.net \/ 6038851 \/ uploads \/ images \/ 81807i827011B11FADE96B \/ RaajRaaj_8-1695840957255.png " role = " button " title = " RaajRaaj_8-1695840957255.png " alt = " RaajRaaj_8-1695840957255.png " \/ >< \/ span >< \/ P > < P >& nbsp ; < \/ P > < P > 次にPower Automateフローで次のアクションを追加する前に、JPGファイルをアップロードするドキュメントライブラリに「Longitude」と「Latitude」の値を格納する列を追加します。 < \/ P > < DIV class = " " >& nbsp ; < \/ DIV > < P >< span class = " lia-inline-image-display-wrapper lia-image-align-inline " image-alt = " RaajRaaj_10-1695840997596.png " style = " width: 400px; " >< img src = " https : \/ \/ us.v-cdn.net \/ 6038851 \/ uploads \/ images \/ 81808iE5BA909A280C48E7 \/ RaajRaah10 - 165840997596 .png width="1028" height="540" allowfullscreen allow="encrypted-media"><\/iframe><\/P> <\/P> <\/P> <\/P> <\/P>
例えば、EXIFデータを含む画像ファイルをSharePoint onlineのドキュメントライブラリに保存する必要があるプロジェクトがあるとします。このプロジェクトではGPSデータをドキュメントライブラリの列として表示し、そのGPSデータを使って地図上にポイントをプロットする必要があります。ファイルにはEXIFプロパティ内にGPSデータが含まれており、まずGPSデータを抽出してドキュメントライブラリの列に直接入力したいと考えています。ドキュメントライブラリビューに画像ファイルから取得した「Longitude」と「Latitude」のデータが入力されたら、そのドキュメントライブラリをArcGIS for SharePointアプリで地図レイヤーとして追加できます。<\/P>
Power Automateフロー:<\/STRONG><\/P>画像ファイルからEXIFプロパティ(GPSデータ付き)を抽出するために、Power Automateで
Hi, Thanks for posting the solutions. We actually tried this but we found that the Encodian Flowr converted the coordinates of Iphone photos from DD/MM/SS to decimal degree neglecting the East and West. For example, in a photo properties info (see attached file), you can see the lat and long were recorded using the semicolon to distinguish the East and West. When Encodian converted these values, they look like this in SharePoint
So the long is supposed to have a negative value as the location when the photo was taken in in CA, USA. I was wondering if there is an easier way in SharePoint to make the conversion right. Thanks!
@SCVTAGIS
Hello,
Thanks for reaching out to us on EC. If you view the schema in the "Parse JSON" action, you will notice the LongRef and LatRef fields as shown in the image below,
You can map those attributes to columns in your SharePoint list in the "Update file properties" action as shown below,
and once the flow completes, you will see the LongRef and LatRef values in your SharePoint list.
I used the "Concat" function in SharePoint to concatenate the Long value with LongRef and Lat value with LatRef respectively.
Please let me know if this helps and please do not hesitate to reach out to us if you have any further questions on this topic or anything related to ArcGIS for SharePoint 🙂.
Thanks,
Raaj
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.