You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.log.write(u"\nNo valid SensorML documents obtained from SOS serivce. Verify service is compliant with the SOS profile [URL: {url}]".format(url=self.service))
135
+
sys.exit("No valed SensorML documents obtained from SOS serivce. Verify service is compliant with the SOS profile [URL: {url}]".format(url=self.service))
136
+
133
137
# Assign EPSG:4326 CRS, retrieved from epsg.io
134
138
# The OGC WKT crs string is available directly at http://epsg.io/4326.wkt
135
139
# or http://spatialreference.org/ref/epsg/4326/ogcwkt/
@@ -154,9 +158,9 @@ def run(self):
154
158
print("Date for determining active/inactive stations in SOS service: {active_date:%Y-%m-%d}".format(active_date=station_active_date))
155
159
print("'Active' stations: %d / Total stations: %d"% (active_cnt, total_cnt))
# verify a 'publisher' Contact exists (template expects one):
326
+
if"publisher"notincontacts_dct.keys():
327
+
self.log.write(u"\n\nStation: {station} skipped. No \'http://mmisw.org/ont/ioos/definition/publisher\' Contact role defined in SensorML as required. Roles defined: [{roles}]".format(station=station_urn, roles=", ".join(contacts_dct.keys())))
328
+
print("Station: {station} skipped. No \'http://mmisw.org/ont/ioos/definition/publisher\' Contact role defined in SensorML as required. Roles defined: [{roles}]".format(station=station_urn, roles=", ".join(contacts_dct.keys())))
0 commit comments