ee.FeatureCollection.loadBigQueryTable
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
BigQuery テーブルからデータを読み取り、結果を FeatureCollection として表示します。
用途 | 戻り値 |
---|
ee.FeatureCollection.loadBigQueryTable(table, geometryColumn) | FeatureCollection |
引数 | タイプ | 詳細 |
---|
table | 文字列 | BigQuery テーブルのパスを「project.dataset.table」形式で指定します。 |
geometryColumn | 文字列、デフォルト: null | メインの特徴ジオメトリとして使用する列の名前。指定しない場合、すべての対象物に null ジオメトリが設定されます。 |
例
コードエディタ(JavaScript)
// Load stations from the New York Subway System.
var features = ee.FeatureCollection.loadBigQueryTable({
table: 'bigquery-public-data.new_york_subway.stations',
geometryColumn: 'station_geom',
});
// Display all relevant features on the map.
Map.setCenter(-73.90, 40.73, 11);
Map.addLayer(features,
{'color': 'black'},
'Stations from New York Subway System');
// Print all stations in the "Astoria" line.
var line = features.filter(ee.Filter.eq('line', 'Astoria'));
print(line);
Map.addLayer(line,
{'color': 'yellow'},
'Astoria line');
Python の設定
Python API とインタラクティブな開発での geemap
の使用については、
Python 環境のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
# Load stations from the New York Subway System.
features = ee.FeatureCollection.loadBigQueryTable(
table="bigquery-public-data.new_york_subway.stations",
geometryColumn="station_geom")
# Display all relevant features on the map.
m = geemap.Map()
m.set_center(-73.90, 40.73, 11)
m.add_layer(
features, {'color': 'black'}, 'Stations from New York Subway System')
# Print all stations in the "Astoria" line.
line = features.filter(ee.Filter.eq('line', 'Astoria'))
display(line)
m.add_layer(line, {'color': 'yellow'}, 'Astoria line')
m
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-04-01 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-04-01 UTC。"],[],[]]