From bd679d70f245c278b248b9bd760475ac2b2ea652 Mon Sep 17 00:00:00 2001 From: Anshul Singhvi Date: Fri, 20 Sep 2024 09:40:57 -0700 Subject: [PATCH] Update spatial_joins.md --- docs/src/tutorials/spatial_joins.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/src/tutorials/spatial_joins.md b/docs/src/tutorials/spatial_joins.md index 61af4baf7..14fb6852a 100644 --- a/docs/src/tutorials/spatial_joins.md +++ b/docs/src/tutorials/spatial_joins.md @@ -6,9 +6,18 @@ Spatial joins can be done between any geometry types (from geometrycollections t In this tutorial, we will show how to perform a spatial join on first a toy dataset and then two Natural Earth datasets, to show how this can be used in the real world. -In order to perform the spatial join, we use **[FlexiJoins.jl](https://github.com/JuliaAPlavin/FlexiJoins.jl)** to perform the join, specifically using its `by_pred` joining method. This allows the user to specify a predicate in the following manner: +In order to perform the spatial join, we use **[FlexiJoins.jl](https://github.com/JuliaAPlavin/FlexiJoins.jl)** to perform the join, specifically using its `by_pred` joining method. This allows the user to specify a predicate in the following manner, for any kind of table join operation: ```julia -[inner/left/right/outer/...]join((table1, table1), +innerjoin((table1, table1), + by_pred(:table1_column, predicate_function, :table2_column) # & add other conditions here +) +leftjoin((table1, table1), + by_pred(:table1_column, predicate_function, :table2_column) # & add other conditions here +) +rightjoin((table1, table1), + by_pred(:table1_column, predicate_function, :table2_column) # & add other conditions here +) +outerjoin((table1, table1), by_pred(:table1_column, predicate_function, :table2_column) # & add other conditions here ) ```