Loading...
Loading...
Compare original and translation side by side
carto-create-workflowcarto-create-workflowSource Data -> (Filter) -> Spatial Indexing (H3) -> Aggregation -> Moran's I -> (Filter Significant) -> Save源数据 -> (过滤) -> 空间索引(H3)-> 聚合 -> Moran's I分析 -> (过滤显著结果) -> 保存native.gettablebynamegeomnative.gettablebynamegeomnative.wheresimplifiednative.wherenative.wheresimplifiednative.wherenative.h3frompoint| Resolution | Cell size | Use case |
|---|---|---|
| H3 res 7 | ~5 km edge | District/city-level patterns |
| H3 res 8 | ~2 km edge | Neighborhood-level |
| H3 res 9 | ~500m edge | Street-level (used in Berlin POI tutorial) |
h3native.h3frompoint| 分辨率 | 单元格边长 | 适用场景 |
|---|---|---|
| H3 res 7 | ~5公里 | 区域/城市级模式 |
| H3 res 8 | ~2公里 | 社区级模式 |
| H3 res 9 | ~500米 | 街道级模式(柏林POI教程中使用) |
h3native.groupbyh3geoid,countvalue_col,sumvalue_col,avggeoid_countnative.groupbyh3geoid,countvalue_col,sumvalue_col,avggeoid_countnative.moransi| Input | Description | Default |
|---|---|---|
| Column with H3/Quadbin indexes | |
| Numeric column to test for autocorrelation | |
| K-ring neighborhood radius (in hops) | |
| Distance decay function for spatial weights | |
uniforminverseinverse_squareexponentialuniformexponentialindexmorans_ip_valuequadrantnative.moransi| 输入参数 | 描述 | 默认值 |
|---|---|---|
| 包含H3/Quadbin索引的列 | |
| 用于测试自相关的数值列 | |
| K环邻域半径(以跳数为单位) | |
| 空间权重的距离衰减函数 | |
uniforminverseinverse_squareexponentialuniformexponentialindexmorans_ip_valuequadrantnative.wherep_value < 0.05p_value < 0.05 AND quadrant = 'HH'p_value < 0.05 AND (quadrant = 'HL' OR quadrant = 'LH')native.wherep_value < 0.05p_value < 0.05 AND quadrant = 'HH'p_value < 0.05 AND (quadrant = 'HL' OR quadrant = 'LH')native.saveastablecarto workflows createnative.saveastablecarto workflows create| Column | Meaning |
|---|---|
| Spatial index cell ID (H3 or Quadbin) |
| Local Moran's I value -- positive = similar neighbors, negative = dissimilar neighbors |
| Statistical significance -- lower = more confident |
| Cluster classification: |
| 列名 | 含义 |
|---|---|
| 空间索引单元格ID(H3或Quadbin) |
| 局部Moran's I值——正值表示邻域值相似,负值表示邻域值相异 |
| 统计显著性——值越低,置信度越高 |
| 聚类分类: |
| Quadrant | Meaning | Interpretation |
|---|---|---|
| HH | High value surrounded by high values | Cluster core |
| LL | Low value surrounded by low values | Low-value cluster |
| HL | High value surrounded by low values | Spatial outlier (high anomaly) |
| LH | Low value surrounded by high values | Spatial outlier (low anomaly) |
0 = 空间聚类(相似值聚集)
| 象限 | 含义 | 解读 |
|---|---|---|
| HH | 高值被高值包围 | 聚类核心 |
| LL | 低值被低值包围 | 低值聚类 |
| HL | 高值被低值包围 | 空间异常值(高值异常点) |
| LH | 低值被高值包围 | 空间异常值(低值异常点) |
H3INDEXMORANS_IP_VALUEQUADRANTGEOID_COUNTcarto-create-workflow/references/providers/<provider>.mdcarto workflows verify-remote --connection <conn>carto workflows validateindexh3quadbinnative.renamecolumnvaluecolp_valuedecaykernelH3INDEXMORANS_IP_VALUEQUADRANTGEOID_COUNTcarto-create-workflow/references/providers/<provider>.mdcarto workflows verify-remote --connection <conn>carto workflows validateindexh3quadbinnative.renamecolumnvaluecolp_valuedecaykernel| Resource | Description |
|---|---|
| BQ Tutorial | Computing spatial autocorrelation of POI locations in Berlin (BigQuery) |
| SF Tutorial | Same tutorial for Snowflake |
| Workflow template | "Computing the spatial auto-correlation of point of interest locations" (available in CARTO Workspace) |
| Variant | How |
|---|---|
| Pre-indexed data | Skip Step 3 if data already has H3/Quadbin column |
| Polygon input instead of points | Use |
| Complete grid (no gaps) | Polyfill study area boundary first, then enrich with data (same approach as hotspot analysis) |
| Combine with Getis-Ord | Run both analyses on the same aggregated grid, then join results for a richer picture |
| Filter to outliers only | Keep |
| 变体 | 实现方式 |
|---|---|
| 预索引数据 | 若数据已包含H3/Quadbin列,跳过步骤3 |
| 输入为面数据而非点数据 | 使用 |
| 完整网格(无间隙) | 先对研究区域边界进行Polyfill,再补充数据(与热点分析方法相同) |
| 结合Getis-Ord分析 | 在同一聚合网格上运行两种分析,然后关联结果以获取更丰富的信息 |
| 仅保留异常值 | 保留 |