This file is indexed.

/usr/lib/python2.7/dist-packages/owslib/wfs.py is in python-owslib 0.16.0-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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- coding: utf-8 -*-
# =============================================================================
# Copyright (c) 2004, 2006 Sean C. Gillies
# Copyright (c) 2009 STFC <http://www.stfc.ac.uk>
#
# Authors :
#          Dominic Lowe <dominic.lowe@stfc.ac.uk>
#
# Contact email: dominic.lowe@stfc.ac.uk
# =============================================================================

"""
Web Feature Server (WFS) methods and metadata. Factory function.
"""

from __future__ import (absolute_import, division, print_function)

from .feature import wfs100, wfs110, wfs200
from .util import clean_ows_url


def WebFeatureService(url, version='1.0.0', xml=None, parse_remote_metadata=False,
                      timeout=30, username=None, password=None):
    ''' wfs factory function, returns a version specific WebFeatureService object

    @type url: string
    @param url: url of WFS capabilities document
    @type xml: string
    @param xml: elementtree object
    @type parse_remote_metadata: boolean
    @param parse_remote_metadata: whether to fully process MetadataURL elements
    @param timeout: time (in seconds) after which requests should timeout
    @param username: service authentication username
    @param password: service authentication password
    @return: initialized WebFeatureService_2_0_0 object
    '''

    clean_url = clean_ows_url(url)

    if version in  ['1.0', '1.0.0']:
        return wfs100.WebFeatureService_1_0_0(clean_url, version, xml, parse_remote_metadata,
                                              timeout=timeout,
                                              username=username,
                                              password=password)
    elif version in  ['1.1', '1.1.0']:
        return wfs110.WebFeatureService_1_1_0(clean_url, version, xml, parse_remote_metadata,
                                              timeout=timeout,
                                              username=username,
                                              password=password)
    elif version in ['2.0', '2.0.0']:
        return wfs200.WebFeatureService_2_0_0(clean_url, version, xml, parse_remote_metadata,
                                              timeout=timeout,
                                              username=username,
                                              password=password)