Last active
June 4, 2022 22:13
-
-
Save mshodge/0c71ab8eb55b99cee8b580cf89e7d69f to your computer and use it in GitHub Desktop.
BigQuery GEOGRAPHY to STRING GeoJSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT *, REPLACE(CAST(ST_ASGEOJSON(county_geom) AS STRING),' ', '') as g FROM `bigquery-public-data.geo_us_boundaries.counties` counties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment