Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{anchor:top}
{toc:class=contents}

h2. Getting Startedはじめに
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}
Yellowfin has the capability to render GIS data (points and polygons) into an image which can be overlaid with your report data.  To enable GIS reporting you must have GIS data available in the databases you wish to query for reporting.Yellowfinには、レポートデータを上に重ねることができるイメージとして、GISデータ(ポイントとポリゴン)を描画する機能があります。GISレポートを有効にするには、レポートするためにクエリーするデータベース内に使用可能なGISデータが存在している必要があります。


h3. GISGISがサポートされていないデータベースからのGIS
from
aすべてのデータベースがネイティブでGISをサポートしているわけではありません。ただし、Yellowfinでは、VARCHARフィールドをポリゴンに変換できます。したがって、データベースにGISフィールドタイプがない場合でも、そのデータベース内のGISポリゴンをVARCHARとして保存することができます。
Non-GIS
Supported Database
Not all databases support GIS natively.  However, Yellowfin can convert VARCHAR fields into polygons.  So if your data base does not have a GIS field type you can still store your GIS polygons in that database as a VARCHAR.

This Section shows you how to format a field with a polygon stored as a VARCHAR.

このセクションでは、VARCHARとして保存されたポリゴンでフィールドを書式設定する方法を示します。

{section}
{column:width=30%}
*1.* Double Click the *Geo Polygon* to format the field and set the geometry.  You will see that it is a CLOB field type.」をダブルクリックして、フィールドを書式設定し、ジオメトリを設定します。それはCLOBフィールドタイプとして表示されます。

*2.* Navigate to the *Data Conversion* tab for the Conversion.	
変換するため「*データ変換*」タブに移動します。 
{column}
{column:width=70%}
!41.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*3.* Select the *WKT Geometry Converter* from the list.	
一覧から「*WKTジオメトリコンバーター*」を選択します。
{column}
{column:width=70%}
!42.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*4.* Set the format as *Longitude/Latitude*, the Cache Field to *Country* (this should be a unique identifier for the polygon).

書式を「*経度{*}*/*{*}緯度*」、キャッシュフィールドを「*国*」(これはポリゴンの一意の識別子である必要があります)に設定します。

*5.* Click *Add追加* to add the converter to the field.

」をクリックしてコンバーターをフィールドに追加します。
!add.png!
{column}
{column:width=70%}
!45.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*6.* You should now see the *WKT Geometry Converter* in the Converters list. 	コンバーターの一覧に「*WKTジオメトリコンバーター*」が表示されます。 
{column}
{column:width=70%}
!46.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*7.* If you return to the Definition tab you will see that under the Data Type there is now a Converted Data Type of *GIS Geometry* listed.「定義」タブに戻ると、データタイプの下に変換対象のデータタイプとして「*GIS{*}{*}ジオメトリ*」が表示されています。

*8.* *Save your* field. You can now begin creating your report.	
フィールドを{*}保存{*}します。これで、レポートの作成を開始できます。 
!save.png!
{column}
{column:width=70%}
!47.png|thumbnail,border=1!
{column}
{section}



h3. GISサポートされているデータベースからのGIS
from a Supported Database
If your data source supports GIS columns such as MySQL, Oracle, PostgreSQL or MS 
データソースが、MySQL、Oracle、PostgreSQLまたはMS SQL Server 2008 you can connect to these directly for reporting. 
This type of field is not available in the Tutorial database but below is a quick guide to setting the field types at the view.  
2008などのGISカラム(列)をサポートしている場合は、レポート用に直接これらのカラム(列)に接続できます。
このタイプのフィールドはチュートリアルデータベースでは使用できませんが、以下は、ビューでフィールドタイプを設定するためのクイックガイドとなります。 

{section}
{column:width=30%}
*1.* Onceフィールドをビューに付加した後、フィールドをダブルクリックしてGIS書式を設定します。
you
have attached your fields to the view double click the field to set the GIS Format.

As seen on the right the field is a GIS Multi Polygon.	 
右に示すとおり、フィールドは「GISマルチポリゴン」です。 
{column}
{column:width=70%}
!4.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*2.* Navigate to the Format tab and set the Format to either *Latitude/Longitude* or *Longitude/Latitude* depending on the order of the points within the data.

「書式」タブに移動し、データ内のポイントの順序に従って書式を「*緯度{*}*/*{*}経度*」または「*経度{*}*/*{*}緯度*」のいずれかにします。

*3.* フィールド設定を{*Save* the field settings and then save your view.  You are now ready to use these fields for reporting.	

}保存{*}した後、ビューを保存します。これで、いつでもレポートにこれらのフィールドを使用できます。 
!save.png!
{column}
{column:width=70%}
!5.png|thumbnail,border=1!
{column}
{section}



h2. GIS MapGISマップチュートリアル
Tutorial
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}
{section}
{column: width=30%}
*1.* Click on the *Create* link and select *Report* to begin building your report.
「*作成*」リンクをクリックして、「*レポート*」を選択しレポートの作成を開始します。
{column}
{column: width=70%}
!01z.png!

{column}
{section}

{section}
{column: width=30%}
*2.* You should now be on the Initialise Report page. Select the *Drag and Drop Builder* as the build tool.
「レポートの初期化」ページが表示されます。作成ツールとして「*ドラッグ&ドロップで作成*」を選択します。
{column}
{column: width=70%}
!02z.png!

{column}
{section}

{section}
{column: width=30%}
*3.* Select ビューとして「*Ski Team*」を選択します。
as
the
View.

*4.* Now click the「  !step_right_on.png! button to proceed.
 」ボタンをクリックして次に進みます。
{column}
{column: width=70%}
!2a.png|thumbnail,border=1! 
{column}
{section}

{section}
{column:width=30%}
*5.* Drag in the *Country* and 」フィールドと「*Geo Polygon*」フィールドをドラッグします。
fields.

*6.* Now drag in your metrics, in this example メトリックをドラッグします。この例では、「*Invoice Estimate* is used three times, as a *MIN, MAX,* and *AVERAGE*.」が{*}最小、最大*、*平均{*}として3回使用されています。

*7.* Set the report to display as a *Chart Only*.

レポートの表示を「*グラフのみ*」として設定します。
*8.* Click the 「  !step_right_on.png! Next image to continue. 次へ」をクリックして続行します。
{column}
{column:width=70%}
!48.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*9.* On the output page click on the Chart Icon to edit the chart and set up your GIS Chart.
出力ページで、グラフアイコンをクリックしてグラフを編集しGISグラフを設定します。
{column}
{column:width=70%}
!12.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*10.* From the Chart Menu select *Map*. Next, select the *GIS Map* type.  Click *Save* to save your selection.

「グラフ」メニューから「*マップ*」を選択します。次に、「*GISマップ*」タイプを選択します。「*保存*」をクリックして選択を保存します。


!save.png!
{column}
{column:width=70%}
!49.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*11.* You will now see the Chart Data section updated with fields relevant to GIS Maps.「グラフデータ」セクションがGISマップに関連するフィールドで更新されたことがわかります。

*12.* Select:次のように選択します。

GIS Field: GISフィールド:*Athlete Geo Polygon*
Metric: メトリック:*Max Invoice Estimate*
Label: ラベル:*Athlete Country*

*13.* Click *Refresh* to generate the map.
更新*」をクリックして、マップを生成します。
!refresh.png!
{column}
{column:width=70%}
!50.png!
{column}
{section}

{section}
{column:width=30%}
*14.* In the Chart Format options, select *Visible Series Selection*.	「グラフの書式」オプションで、「*シリーズ選択の表示*」を選択します。 
{column}
{column:width=70%}
!51.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*15.* You should now have a map like the one pictured here. Much like the raster map, this one needs resizing so that the legend is closer to the highlighted areas.
これで図に示すようなマップが作成されました。ラスタマップによく似ていますが、凡例が強調表示されたエリアに近づくようにサイズを調整する必要があります。
{column}
{column:width=70%}
!52.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*16.* Nowレイヤーをマップに追加し、データを含まないすべての国ポリゴンを入力します。
add
a
layer to the map that will fill in all the country polygons that contained no data.

*17.* Click on the !rpt_add.gif! {color:#357CB6#357cb6}Add Layerレイヤーの追加{color} link」リンクをクリックします。

*18.* Select the Yellowfinに付属している「*GIS World Background* report」レポートを選択します。
that
comes with Yellowfin.	
{column}
{column:width=70%}
!53.png|thumbnail,border=1!
{column}
{section}

{section}
{column:width=30%}
*19.* Set the colour of the new layer to a light grey and click *Refresh*.新しいレイヤーの色を薄い灰色にして「*更新*」をクリックします。


!refresh.png!

*20.* You should now have a map that looks like this.これで図に示すようなマップが作成されました。

*21.* Save and Close your map.	
マップを保存して閉じます。 
{column}
{column:width=70%}
!54.png|thumbnail,border=1!
{column}
{section}
\\
\\
{horizontalrule}
{styleclass: Class=topLink}[topページトップ|#top]{styleclass}