Skip to main content

集約クエリー レイヤーの作成 (データ管理ツール)

サマリー

関連テーブルからの時間、範囲、および属性クエリーに基づいて、DBMS テーブルを動的に集計、集約、フィルターするクエリー レイヤーを作成し、その結果をフィーチャ レイヤーに結合します。

関連フィーチャへの値の集約の詳細

使用法

  • クエリー レイヤーは、エンタープライズ データベースのみで動作します。 ファイル ジオデータベースは、このツールに有効な入力ワークスペースではありません。

  • 集計結果は、常にデータベース レベルで動的に計算されます。

  • 出力レイヤー 値は、統計演算の結果を含むフィールドで構成されます。 個数統計は、デフォルトで ROW_COUNT フィールドに含まれています

  • このツールで実行できる統計演算は、個数、合計、平均、最大、最小、および標準偏差です。

  • 統計のタイプごとに、次の命名規則を使用してフィールドが作成されます。COUNT_<field>SUM_<field>AVG_<field>MIN_<field>MAX_<field>STDDEV_<field> (&lt;field> は統計量を計算する入力フィールドの名前)。

  • 関連付けられる結合フィールド 値は、このツールで生成される SQL 文の Group By 句で使用されます。 統計情報は、関連付けられる結合フィールド 値から一意の各属性値に対して個別に計算されます。

  • ツールで作成されたレイヤーは一時的なものであり、プロジェクトを保存するか、レイヤーをレイヤー ファイルに保存するか、行のコピー または フィーチャのコピー でコピーを作成してデータを保持しておかない限り、セッション終了後に削除されます。

パラメーター

ラベル 説明 データ タイプ

ターゲット フィーチャクラス

エンタープライズ データベースのフィーチャクラスまたは空間テーブル。

Feature Class

ターゲット結合フィールド

結合のキーとなるターゲット フィーチャクラスのフィールド。

Field

リレート テーブル

統計の計算に使用するフィールドを含む入力テーブル。 統計は 出力レイヤー 値に結合されます。

Table; Feature Class

関連付けられる結合フィールド

結合のキーとなる値が格納されている、集計テーブル内のフィールド。 集約または統計サマリーも、このフィールドの一意の属性値ごとに個別に計算されます。

Field

出力レイヤー

作成されるクエリー レイヤーの出力名。

Feature Layer

サマリー フィールド

(オプション)

属性値を含み、特定の統計の計算に使用される数値フィールドを指定します。 複数の統計とフィールドの組み合わせを指定できます。 すべての統計計算から NULL 値が除外されます。

出力レイヤーには、関連付けられる結合フィールド 値の各個別値の合計数 (または頻度) を示す ROW_COUNT フィールドが含まれます。 ROW_COUNT フィールドと 個数 統計タイプの違いは、個数 では NULL 値が除外されるのに対し、ROW_COUNT には NULL 値が含まれる点です。

値テーブル列:

  • Aggregate TypeThe statistic type.

    • CountThe number of values included in the statistical calculations will be found. Each value will be counted except null values.

    • SumThe values for the specified field will be added together.

    • AverageThe average for the specified field will be calculated.

    • MinimumThe smallest value for all records of the specified field will be found.

    • MaximumThe largest value for all records of the specified field will be found.

    • Standard deviationThe standard deviation of values in the specified field will be calculated.

  • Field Name(s)The field containing attribute values used to calculate the specified statistic.

Value Table

パラメーターの定義

(オプション)

1 つ以上のクエリー パラメーターを基準または条件として指定し、これらの基準に一致するレコードを使用して集約結果を計算します。 クエリー パラメーターは、クエリーが実行されるときに値が定義される SQL ステートメント変数に似ています。 これにより、出力レイヤーのクエリー フィルターを動的に変更することができます。 パラメーターは、SQL の WHERE 句における述部や条件と見なすことができます。 たとえば、SQL の WHERE 句にある Country_Name = 'Nigeria' は述部と呼ばれ、= は比較演算子、左側の Country_Name はフィールド名、右側の 'Nigeria' は値を表しています。 複数のパラメーターを定義する場合は、それらの間に論理演算子 (AND、OR など) を指定する必要があります。

クエリー レイヤーでのパラメーターの定義の詳細

指定しない場合、関連テーブルのすべてのレコードが集約結果または集計結果の計算に使用されます。

2 つのパラメーター定義タイプは次のとおりです。

値テーブル列:

  • Parameter TypeSpecifies the parameter type.

    • RangeRange parameters connect numeric or temporal values dynamically to the range and time sliders.

    • DiscreteDiscrete parameters update a query with literal values when the query is run.

  • NameThe name of the parameter, which is similar to a variable name. A name cannot contain spaces or special characters. Once the output query layer is created and the layer source SQL statement is checked, this name in the SQL statement that defines the output query layer source will be prefixed with either ::r: (for range parameter) or :: (for discrete parameter).

  • AliasThe alias for the parameter name. The alias can include spaces and special characters.

  • Field or ExpressionA field name or a valid SQL expression that will be used in the left side of a predicate or condition in a where clause.

  • Data typeThe data type of the field or expression specified in the Field or Expression column. When using a range parameter type, the data type cannot be string.

    • DateThe data type of the field or expression will be Date (date time).

    • StringThe data type of the field or expression will be String (text).

    • IntegerThe data type of the field or expression will be Integer (whole numbers).

    • DoubleThe data type of the field or expression will be Double (fractional numbers).

  • Start ValueThe default start value for the range parameter type. This is the value that will be used when the time or range slider is not enabled. When the start value and end value column values are omitted and the time or range slider is disabled, all records from the related table will be used to compute aggregated results. This value is ignored when using a discrete parameter type.

  • End ValueThe default end value for the range parameter. This is the value that will be used when the time or range slider is not enabled. When the start value and end value column values are omitted and the time or range slider is disabled, all records from the related table will be used to compute aggregated results. This value is ignored when using a discrete parameter type.

  • Operator for Discrete ParametersThe comparison operator that will be used between the Field or Expression column value and a value in an SQL predicate or condition.

    • NoneUse this option when using a range parameter type.

    • Equal toCompare the equality of a field or expression to a value.

    • Not equal toTest whether a field or expression is not equal to a value.

    • Greater thanTest whether a field or expression is higher than a value.

    • Less thanTest whether a field or expression is lower than a value.

    • Include valuesDetermine whether a value from a field or expression matches any value in a list.

  • Default Discrete ParametersWhen using a discrete parameter type, you must provide a default value. When the operator is include values, you can provide multiple values separated by commas, for example VANDALISM,BURGLARY/THEFT.

  • Operator for Next ParametersThe logical operator between this operator and the next one. This column is only applicable when you have more than one parameter definition.

    • NoneUse this option when there are no more parameters

    • AndCombine two conditions and select a record if both conditions are true.

    • OrCombine two conditions and select a record if at least one condition is true.

Value Table

一意の識別子フィールド

(オプション)

テーブル内の各行を一意に識別するために使用される一意の識別子フィールド

String

形状タイプ

(オプション)

クエリー レイヤーのシェープ タイプを指定します。 クエリーの結果セットに含まれるレコードのうち、指定したシェープ タイプに一致するレコードだけが出力クエリー レイヤーで使用されます。 デフォルトでは、結果セットの最初のレコードのシェープ タイプが使用されます。 クエリーの結果セットがジオメトリー フィールドを返さない場合、このパラメーターは無視されます。

  • ポイント出力クエリー レイヤーはポイント ジオメトリーを使用します。

  • マルチポイント出力クエリー レイヤーはマルチポイント ジオメトリーを使用します。

  • ポリゴン出力クエリー レイヤーはポリゴン ジオメトリーを使用します。

  • ポリライン出力クエリー レイヤーはポリライン ジオメトリーを使用します。

String

空間参照 ID (SRID)

(オプション)

ジオメトリーを返すクエリーの空間参照 ID (SRID)。 クエリーの結果セットに含まれるレコードのうち、指定した SRID 値に一致するレコードだけが出力クエリー レイヤーで使用されます。 デフォルトでは、結果セットの最初のレコードの SRID 値が使用されます。 クエリーの結果セットがジオメトリー フィールドを返さない場合、このパラメーターは無視されます。

String

座標系

(オプション)

出力クエリー レイヤーで使用する座標系。 デフォルトでは、結果セットの最初のレコードの空間参照が使用されます。 クエリーの結果セットがジオメトリー フィールドを返さない場合、このパラメーターは無視されます。

Spatial Reference

座標に M 値を含める

(オプション)

出力レイヤーに距離計測値 (M 値) を含めるかどうかを指定します。

  • オンレイヤーに M 値が含まれます。

  • オフレイヤーに M 値は含まれません。 これがデフォルトです。

Boolean

座標に Z 値を含める

(オプション)

出力レイヤーに標高値 (Z 値) を含めるかどうかを指定します。

  • オンレイヤーに Z 値が含まれます。

  • オフレイヤーに Z 値は含まれません。 これがデフォルトです。

Boolean

範囲

(オプション)

レイヤーの範囲を指定します。 この範囲にはテーブル内のすべてのフィーチャを含める必要があります。

  • 現在の表示範囲 マップ ビュー - 範囲は、アクティブなマップまたはシーンに基づきます。

  • 範囲の描画 直角化して完了 - 範囲は、マップまたはシーンに描画された四角形に基づきます。

  • レイヤーの範囲 レイヤー - 範囲は、アクティブなマップ レイヤーに基づきます。 使用可能なレイヤーを選択するか、すべてのレイヤーのデータの範囲 オプションを使用します。 各マップ レイヤーには、次のオプションがあります。

    • すべてのフィーチャ すべて選択 - レイヤーのすべてのフィーチャの範囲。

    • 選択フィーチャ 選択フィーチャからのエリア - 選択したフィーチャの範囲を使用します。

    • 表示フィーチャ 表示範囲枠 - レイヤーの表示フィーチャの範囲。

  • 参照 参照 - 範囲は、既存のデータセットに基づきます。

  • クリップボード 貼り付け - 範囲をクリップボードにコピーしたり、クリップボードから貼り付けたりできます。

    • 範囲をコピー コピー - 範囲の座標と座標系をクリップボードにコピーします。

    • 範囲を貼り付け 貼り付け - 範囲と座標系をクリップボードから貼り付けます。 クリップボードに座標系が含まれていない場合、マップの座標系が範囲に使用されます。

  • 範囲をリセット リセット - 範囲はデフォルト値にリセットされます。

座標を手動で入力する場合、アクティブなマップの座標系の座標を数値で指定する必要があります。 マップで、入力した座標と異なる表示単位が使用されることがあります。 南と西の座標にはマイナス値の記号を使用します。

Extent

環境

現在のワークスペース, 出力座標系

ライセンス情報

  • Basic: いいえ
  • Standard: いいえ
  • Advanced: はい