クエリビルダのソースを表示
提供: OSGeo.JP Wiki
←
クエリビルダ
移動:
案内
、
検索
あなたには「このページの編集」を行う権限はありません。理由は以下の通りです:
この操作は、以下のグループに属する利用者のみが実行できます:
登録利用者
。
ページの編集を始める前にメールアドレスの確認をする必要があります。
個人設定
でメールアドレスを設定し、確認を行ってください。
このページのソースの閲覧やコピーができます:
=== Query Builder === <span id='sec:query_builder'></span> The Query Builder allows you to define a subset of a table and display it as a layer in QGIS. It can currently only be used with PostGIS layers. For example, if you have a {{Template:FileName|towns}} layer with a {{Template:UserText|population}} field you could select only larger towns by entering {{Template:UserText|population > 100000}} in the SQL box of the query builder. Figure [[#fig:query_builder|17]] shows an example of the query builder populated with data from a PostGIS layer with attributes stored in PostgreSQL. <table align='center'> <caption>'''図 17:''' Query Builder {{Template:Nix}}</caption> <tr><td><span id='fig:query_builder'></span> [[File:queryBuilder.png|435px]]</td></tr></table> The query builder lists the layer's database fields in the list box on the left. You can get a sample of the data contained in the highlighted field by clicking on the {{Template:Button|Sample}} button. This retrieves the first 25 distinct values for the field from the database. To get a list of all possible values for a field, click on the {{Template:Button|All}} button. To add a selected field or value to the query, double-click on it. You can use the various buttons to construct the query or you can just type it into the SQL box. To test a query, click on the {{Template:Button|Test}} button. This will return a count of the number of records that will be included in the layer. When satisfied with the query, click {{Template:Button|OK}}. The SQL for the where clause will be shown in the SQL column of the layer list. {{Template:Tip |num=xx |caption=Changing the Layer Definition |qgistip=You can change the layer definition after it is loaded by altering the SQL query used to define the layer. To do this, open the vector {{Template:Dialog|Layer Properties}} dialog by double-clicking on the layer in the legend and click on the {{Template:Button|Query Builder}} button on the {{Template:Tab|General}} tab. See Section [[sec:vectorprops]] for more information. }}
このページで使用されているテンプレート:
テンプレート:Button
(
ソースを閲覧
)
テンプレート:Dialog
(
ソースを閲覧
)
テンプレート:FileName
(
ソースを閲覧
)
テンプレート:Nix
(
ソースを閲覧
)
テンプレート:Tab
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
テンプレート:UserText
(
ソースを閲覧
)
クエリビルダ
に戻る。
案内メニュー
表示
ページ
議論
ソースを表示
履歴
個人用ツール
3.142.121.153
このIPアドレスのトーク
アカウント作成
ログイン
案内
メインページ
最近の更新
おまかせ表示
ヘルプ
検索
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報