Convert shp file to geojson then upload to Bigquery
1 min readOct 2, 2019
Three steps:
- Convert shape file to geojson
- Get schema and convert data type to geometry:GEOGRAPHY
- Upload data to Bigquery using json and schema
The code for 3 steps as below:
bq load --source_format NEWLINE_DELIMITED_JSON \
[destination_database.destination_table] \
[schema(output of python)]