ee.FeatureCollection.loadBigQueryTable

यह BigQuery टेबल से डेटा पढ़ता है और नतीजों को FeatureCollection के तौर पर दिखाता है.

इस्तेमालरिटर्न
ee.FeatureCollection.loadBigQueryTable(table, geometryColumn)FeatureCollection
आर्ग्यूमेंटटाइपविवरण
tableस्ट्रिंग`project.dataset.table` फ़ॉर्मैट में BigQuery टेबल का पाथ.
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 सेटअप

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