クエリー ビルダーを使用してポイント グループにポイントを追加する

クエリー ビルダーを使用してポイントグループにポイントを追加することもできます。クエリー ビルダーは、ドキュメント内のすべてのポイントから選択するためのメカニズムです。AeccPointGroup.QueryBuilder プロパティは AeccPointGroupQueryBuilder 型のオブジェクトで、特定の条件に基づいてポイントを組み込んだり除外するためのさまざまなプロパティを備えています。 これらのプロパティは次のとおりです。

InlcudeElevations ExcludeElevations
IncludeFullDescriptions ExcludeFullDescriptions
IncludeNames ExcludeNames
IncludeNumbers ExcludeNumbers
IncludeRawDescriptions ExcludeRawDescriptions
IncludePointGroups  

これらのプロパティはそれぞれ、使用されている選択条件を説明する文字列です。任意の数のプロパティを使用して選択を行うことができます。空白のプロパティは、選択に影響を与えません。

ポイントの文字列プロパティ(FullDescriptionNameRawDescription)をクエリーするプロパティは、一致させる文字列のカンマ区切りリストです。このリスト内の各要素は、にはワイルドカードの「?」と「*」を指定できます。ポイントの番号プロパティを処理するプロパティは、特定の番号または番号の範囲(「100-200」のように 2 つの値をハイフンで区切る)のカンマ区切りリストです 。標高を処理するプロパティは、特定の標高、標高の範囲、上限(「<500」のような「より小さい」記号と値)、または下限(「>100」のような「より大きい」記号と値)のカンマ区切りリストです。

' Add points to the point group using the QueryBuilder.
 
' Add point 1 and point 2 to the point group.
oPtGroup.QueryBuilder.IncludeNames = "po?nt1,point2"
' Add point 3 to the point group by using its number.
oPtGroup.QueryBuilder.IncludeNumbers = "3"
' You can also use wildcards. The following would
' select all points with a name beginning with "poi".
oPtGroup.QueryBuilder.IncludeNames = "poi*"
' Exclude those points with an elevation above 300.
oPtGroup.QueryBuilder.ExcludeElevations = ">300"
' And include those points with identification numbers 
' 100 through 200 inclusive, and point number 206.
oPtGroup.QueryBuilder.IncludeNumbers = "100-200,206"

ドキュメント内のすべてのポイントを含むグループを作成するには、ブール値の AeccPointGroup.InlcudeAllPoints プロパティを True に設定します。