Socrata was acquired by Tyler Technologies in 2018 and is now the Data and Insights division of Tyler. The platform is still powered by the same software formerly known as Socrata but you will see references to Data & Insights going forward.

state_boundary

Function: state_boundary
  returns the boundary of the US state
  as a multipolygon. The state name is not case sensitive.

Examples:


  state_boundary('WA')
  -- Result: "MULTIPOLYGON(...)"

  state_boundary('Washington')
  -- Result: "MULTIPOLYGON(...)"

  state_boundary('wa')
  -- Result: "MULTIPOLYGON(...)"

    ensure_within(
    `my_point_column`,
    state_boundary('NY')
  )

  -- Result: true



Signatures
text -> multipolygon