本页面上的部分或全部信息可能不适用于 Trusted Cloud by S3NS。
地理空间分析简介
在 BigQuery 这样的数据仓库中,位置信息十分常见,并且可能会影响关键业务决策。您可以使用地理空间分析,通过地理位置数据类型和 GoogleSQL 地理位置函数来分析和直观呈现 BigQuery 中的地理空间数据。
例如,您可以记录送货车辆或包裹在不同时间点的经度和纬度。您还可以记录客户交易,并将数据连接到包含店面位置数据的另一个表格中。您可以使用此类位置数据执行以下操作:
- 估算包裹可能到达的时间。
- 确定哪些客户应收到特定店面的邮件。
- 将您的数据与卫星图像中的树木覆盖率相结合,以确定是否可以通过空中无人机进行送货。
限制
地理空间分析存在以下限制:
- 地理位置函数仅可在 GoogleSQL 中使用。
- 只有 Python 版 BigQuery 客户端库支持
GEOGRAPHY
数据类型。对于其他客户端库,请使用 ST_ASTEXT
或 ST_ASGEOJSON
函数将 GEOGRAPHY
值转换为字符串。使用 ST_ASTEXT
转换为文本只会存储一个值;转换为 WKT 则意味着数据会被标注为 STRING
类型,而不是 GEOGRAPHY
类型。
配额
地理空间分析的配额和限制适用于可以对包含地理空间数据的表运行的不同类型作业,包括如下作业类型:
要详细了解所有配额和限制,请参阅配额和限制。
价格
使用地理空间分析时,费用取决于以下因素:
- 包含地理空间数据的表格中存储的数据量
- 针对数据运行的查询
要了解存储价格,请参阅存储价格。
如需了解查询价格,请参阅分析价格模式。
很多表操作都是免费的,包括加载数据、复制表和导出数据。这些操作虽然免费,仍要受 BigQuery 配额和限制的约束。如需了解所有免费操作,请参阅价格页面上的免费操作。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-06-23。
[[["易于理解","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"]],["最后更新时间 (UTC):2025-06-23。"],[[["Geospatial analytics in BigQuery allows for the analysis and visualization of location data, utilizing geography data types and GoogleSQL geography functions."],["Location data, such as latitude and longitude, is commonly used in data warehouses to inform critical business decisions, like delivery times or targeted marketing."],["Geospatial analytics has some limitations, including being exclusively available in GoogleSQL and with the BigQuery client library for Python being the only one to directly support the `GEOGRAPHY` data type."],["The use of geospatial analytics in BigQuery incurs costs based on data storage and query execution, with certain operations like loading, copying, and exporting data being free, but still subject to quotas and limits."],["Several resources are available for those wishing to learn more, including getting started guides, visualization options, and information on working with geospatial data and GoogleSQL functions."]]],[]]