ee.FeatureCollection.loadBigQueryTable

داده ها را از جدول BigQuery می خواند و نتایج را به صورت FeatureCollection ارائه می کند.

استفاده برمی گرداند
ee.FeatureCollection.loadBigQueryTable(table, geometryColumn ) مجموعه ویژگی
استدلال تایپ کنید جزئیات
table رشته مسیر جدول BigQuery در قالب «project.dataset.table».
geometryColumn رشته، پیش فرض: null نام ستونی که به عنوان هندسه ویژگی اصلی استفاده می شود. اگر مشخص نشده باشد، از ستون اول با نوع GEOGRAPHY استفاده خواهد شد.

نمونه ها

ویرایشگر کد (جاوا اسکریپت)

// 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');

راه اندازی پایتون

برای اطلاعات در مورد API پایتون و استفاده از geemap برای توسعه تعاملی به صفحه محیط پایتون مراجعه کنید.

import ee
import geemap.core as geemap

کولب (پایتون)

# 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