- check if observation already exits in Db, then insert
This commit is contained in:
parent
095cfdfe24
commit
e2ceb107c9
4 changed files with 185 additions and 50 deletions
|
@ -38,14 +38,25 @@ def main():
|
|||
sos_url = 'https://geomon.geologie.ac.at/52n-sos-webapp/service'
|
||||
|
||||
######################## Sibratsgfall
|
||||
# offering = Offering(
|
||||
# "https://geomon.geologie.ac.at/52n-sos-webapp/api/offerings/",
|
||||
# "sibratsgfall_3",
|
||||
# "Inklinometer 3, Sibratsgfaell Sensor"
|
||||
# )
|
||||
# procedure = Procedure( "sibratsgfall_3","sibratsgfall-3")
|
||||
# foi = FoI("degree", "m", (47.4279288, 10.0360888, 0.0),
|
||||
# "sibratsgfall", "Sibratsgfall Beobachtung der Bodenbewegungen Test")
|
||||
|
||||
####################### Gschliefgraben Glasfaser
|
||||
offering = Offering(
|
||||
"https://geomon.geologie.ac.at/52n-sos-webapp/api/offerings/",
|
||||
"sibratsgfall_3",
|
||||
"Inklinometer 3, Sibratsgfaell Sensor"
|
||||
"inclino1_14",
|
||||
"Inklinometer inclino1_14, Gschliefgraben Glasfaser"
|
||||
)
|
||||
procedure = Procedure( "sibratsgfall_3","sibratsgfall-3")
|
||||
foi = FoI("degree", "m", (47.4279288, 10.0360888, 0.0),
|
||||
"sibratsgfall", "Sibratsgfall Beobachtung der Bodenbewegungen Test")
|
||||
procedure = Procedure( "inclino1_14","inclino1_14")
|
||||
|
||||
foi = FoI("degree", "m", (47.910849, 13.774966, 0.0),
|
||||
"FBGuard23", "Glasfaser Untersuchungen am Gschliefgraben (Gmunden)")
|
||||
|
||||
######################## Gschliefgraben
|
||||
# offering = Offering(
|
||||
|
@ -77,6 +88,13 @@ def main():
|
|||
request = requests.post(sos_url, headers=headers, json=post_data)
|
||||
print(request.text)
|
||||
|
||||
# {
|
||||
# "request" : "InsertSensor",
|
||||
# "version" : "2.0.0",
|
||||
# "service" : "SOS",
|
||||
# "assignedProcedure" : "inclino1_14",
|
||||
# "assignedOffering" : "inclino1_14"
|
||||
# }
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue