/usr/lib/python2.7/dist-packages/owslib/sos.py is in python-owslib 0.10.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # -*- coding: ISO-8859-15 -*-
# =============================================================================
# Copyright (c) 2013 Tom Kralidis
#
# Authors : Tom Kralidis <tomkralidis@gmail.com>
#
# Contact email: tomkralidis@gmail.com
# =============================================================================
"""
Sensor Observation Service (SOS) methods and metadata. Factory function.
"""
from __future__ import (absolute_import, division, print_function)
from .swe.observation import sos100, sos200
def SensorObservationService(url, version='1.0.0', xml=None):
"""sos factory function, returns a version specific SensorObservationService object"""
if version in ['1.0', '1.0.0']:
return sos100.SensorObservationService_1_0_0.__new__(sos100.SensorObservationService_1_0_0, url, version, xml)
elif version in ['2.0', '2.0.0']:
return sos200.SensorObservationService_2_0_0.__new__(sos200.SensorObservationService_2_0_0, url, version, xml)
|