Skip to content

Instantly share code, notes, and snippets.

@melvinwevers
Created April 29, 2021 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvinwevers/c171bd03c842a29648f9782908300c63 to your computer and use it in GitHub Desktop.
Save melvinwevers/c171bd03c842a29648f9782908300c63 to your computer and use it in GitHub Desktop.
extract obj from cityjson
#!/bin/bash
declare -a StringArray=('198206'
'351642'
'660753'
'1126120'
'1297412'
'1428165'
'1434549'
'1624750'
'1850034'
'1970814'
'2022214'
'2378446'
'3024171'
'3179124'
'3518566'
'3887100'
'3934905'
'3944508'
'3945709'
'4001580'
'4237849'
'4473085'
'4492532'
'5573256'
'5640715'
'5699176'
'6084306'
'6266518'
'6316423'
'6328833'
'7040451'
'7339306'
'7351623'
'7421576'
'7438959'
'7469776'
'7699991'
'7989834'
'8151953'
'8173048'
'8210947'
'8453195'
'8473045'
'8644027'
'8968421'
'9127162'
'9588837')
# Iterate the string array using for loop
for val in ${StringArray[@]}; do
cjio 3dbag_v21031_7425c21b_4274.json extract_lod 2 subset --id $val export --format obj $val.obj
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment