Gửi ý kiến phản hồi
ee.FeatureCollection.loadBigQueryTable
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Đọc dữ liệu từ bảng BigQuery và trình bày kết quả dưới dạng FeatureCollection.
Cách sử dụng Giá trị trả về ee.FeatureCollection.loadBigQueryTable(table, geometryColumn )
FeatureCollection
Đối số Loại Thông tin chi tiết table
Chuỗi Đường dẫn đến bảng BigQuery ở định dạng `project.dataset.table`. geometryColumn
Chuỗi, mặc định: rỗng Tên của cột sẽ dùng làm hình dạng đặc điểm chính. Nếu bạn không chỉ định, tất cả các đối tượng sẽ có hình học rỗng.
Ví dụ
Trình soạn thảo mã (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' );
Thiết lập Python
Hãy xem trang
Môi trường Python để biết thông tin về API Python và cách sử dụng geemap
để phát triển tương tác.
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
Gửi ý kiến phản hồi
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0 . Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers . Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-04-01 UTC.
Bạn muốn chia sẻ thêm với chúng tôi?
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-04-01 UTC."],[],[]]