Объявление : Все некоммерческие проекты, зарегистрированные для использования Earth Engine до
15 апреля 2025 года, должны
подтвердить некоммерческое право на сохранение доступа к Earth Engine.
ee.FeatureCollection.loadBigQueryTable
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Считывает данные из таблицы BigQuery и представляет результаты в виде FeatureCollection.
Использование | Возвраты | ee.FeatureCollection.loadBigQueryTable(table, geometryColumn ) | FeatureCollection |
Аргумент | Тип | Подробности | table | Нить | Путь к таблице BigQuery в формате `project.dataset.table`. |
geometryColumn | Строка, по умолчанию: null | Имя столбца, который будет использоваться в качестве основной геометрии объекта. Если не указано, будет использоваться первый столбец с типом GEOGRAPHY. |
Примеры
Редактор кода (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
Информацию об API Python и использовании geemap
для интерактивной разработки см. на странице Python Environment .
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
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[],[],null,["# ee.FeatureCollection.loadBigQueryTable\n\nReads data from a BigQuery table and presents the results as a FeatureCollection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------|-------------------|\n| `ee.FeatureCollection.loadBigQueryTable(table, `*geometryColumn*`)` | FeatureCollection |\n\n| Argument | Type | Details |\n|------------------|-----------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| `table` | String | Path to BigQuery table in a \\`project.dataset.table\\` format. |\n| `geometryColumn` | String, default: null | The name of the column to use as the main feature geometry. If not specified, the first column with GEOGRAPHY type will be used. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\n// Load stations from the New York Subway System.\nvar features = ee.FeatureCollection.loadBigQueryTable({\n table: 'bigquery-public-data.new_york_subway.stations',\n geometryColumn: 'station_geom',\n});\n\n// Display all relevant features on the map.\nMap.setCenter(-73.90, 40.73, 11);\nMap.addLayer(features,\n {'color': 'black'},\n 'Stations from New York Subway System');\n\n// Print all stations in the \"Astoria\" line.\nvar line = features.filter(ee.Filter.eq('line', 'Astoria'));\nprint(line);\nMap.addLayer(line,\n {'color': 'yellow'},\n 'Astoria line');\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# Load stations from the New York Subway System.\nfeatures = ee.FeatureCollection.loadBigQueryTable(\n table=\"bigquery-public-data.new_york_subway.stations\",\n geometryColumn=\"station_geom\")\n\n# Display all relevant features on the map.\nm = geemap.Map()\nm.set_center(-73.90, 40.73, 11)\nm.add_layer(\n features, {'color': 'black'}, 'Stations from New York Subway System')\n\n# Print all stations in the \"Astoria\" line.\nline = features.filter(ee.Filter.eq('line', 'Astoria'))\ndisplay(line)\nm.add_layer(line, {'color': 'yellow'}, 'Astoria line')\nm\n```"]]