This file contains hidden or 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
const staging ="https://watersheds-staging.cci.drexel.edu/api/watershedboundary/" | |
tst= {"type":"Polygon", "coordinates":[ | |
[77.73296229004495, 41.678725253048356], | |
[-77.73296229004495, 41.67398057065239], | |
[-77.72480719166349, 41.67398057065239], | |
[-77.73296229004495, 41.678725253048356] | |
]} | |
fetch(staging,{method:"POST",body:JSON.stringify(tst),headers:{"Content-type":"application/json; charset=UTF-8"}}).then(response=>response.json()).then(json=> console.log(json)).catch(err=> console.log(err)); |
This file contains hidden or 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
table_name_test ="table_name_test" | |
if [-v table_name] | |
then AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY databridge_etl_tools cartoupdate --table_name $table_name --connection_string $conn_string --s3_bucket $s3_bucket --json_schema_s3_key $json_schema_s3_key --csv_s3_key $csv_s3_key --select_users publicuser,tileuser | |
elif [-v table_name_test] | |
then AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY databridge_etl_tools cartoupdate --table_name_test $table_name_test --connection_string $conn_string - | |
-s3_bucket $s3_bucket --json_schema_s3_key $json_schema_s3_key --csv_s3_key $csv_s3_key --select_users publicuser,tileuser |