Skip to content

Instantly share code, notes, and snippets.

@afcotroneo
Created May 26, 2021 21:43
Show Gist options
  • Select an option

  • Save afcotroneo/6fce8bfce1dc775f2a275df63fcd5afc to your computer and use it in GitHub Desktop.

Select an option

Save afcotroneo/6fce8bfce1dc775f2a275df63fcd5afc to your computer and use it in GitHub Desktop.
let hash_table = build_hash_table(zipcodes.rows.polygon); // build hash table over polygon column
for t1_row in t1.rows:
for t2_row in hash_table(t1_row.point):
if ST_Contains(t2_row.polygon, t1_row.point):
output_match()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment