Skip to content

Commit 4b4726c

Browse files
committed
Merge pull request #1740 from geopython/MetaSearch-core-merge-no-tests
merge MetaSearch into QGIS core
2 parents 984324b + e4a8fd8 commit 4b4726c

File tree

10 files changed

+483
-36
lines changed

10 files changed

+483
-36
lines changed

python/plugins/MetaSearch/AUTHORS.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- Tom Kralidis <tomkralidis@gmail.com>
2+
- Alexander Bruy <alexander.bruy@gmail.com>
3+
- Maxim Dubinin <sim@gis-lab.info>
4+
- Angelos Tzotsos <gcpp.kalxas@gmail.com>
5+
- Richard Duivenvoorde <richard@webmapper.net>

python/plugins/MetaSearch/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FILE(GLOB PY_FILES *.py)
2-
PLUGIN_INSTALL(MetaSearch . ${PY_FILES} metadata.txt)
1+
FILE(GLOB PY_FILES __init__.py link_types.py plugin.py util.py)
2+
PLUGIN_INSTALL(MetaSearch . ${PY_FILES} metadata.txt LICENSE.txt)
33

44
FOREACH(dir ui dialogs images resources resources/templates)
55
FILE(GLOB _items ${dir}/*)

python/plugins/MetaSearch/LICENSE.txt

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (C) 2010 NextGIS (http://nextgis.ru),
2+
Alexander Bruy (alexander.bruy@gmail.com),
3+
Maxim Dubinin (sim@gis-lab.info),
4+
5+
Copyright (C) 2014 Tom Kralidis (tomkralidis@gmail.com)
6+
7+
This source is free software; you can redistribute it and/or modify it under
8+
the terms of the GNU General Public License as published by the Free
9+
Software Foundation; either version 2 of the License, or (at your option)
10+
any later version.
11+
12+
This code is distributed in the hope that it will be useful, but WITHOUT ANY
13+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14+
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15+
details.
16+
17+
You should have received a copy of the GNU General Public License along
18+
with this program; if not, write to the Free Software Foundation, Inc.,
19+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

python/plugins/MetaSearch/dialogs/maindialog.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def __init__(self, iface):
8383
# form inputs
8484
self.startfrom = 0
8585
self.maxrecords = 10
86+
self.timeout = 10
8687
self.constraints = []
8788

8889
# Servers tab
@@ -416,6 +417,9 @@ def search(self):
416417
self.startfrom = 0
417418
self.maxrecords = self.spnRecords.value()
418419

420+
# set timeout
421+
self.timeout = self.spnTimeout.value()
422+
419423
# bbox
420424
minx = self.leWest.text()
421425
miny = self.leSouth.text()
@@ -726,7 +730,7 @@ def show_metadata(self):
726730

727731
try:
728732
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
729-
cat = CatalogueServiceWeb(self.catalog_url)
733+
cat = CatalogueServiceWeb(self.catalog_url, timeout=self.timeout)
730734
cat.getrecordbyid(
731735
[self.catalog.records[identifier].identifier])
732736
except ExceptionReport, err:
@@ -798,7 +802,8 @@ def _get_csw(self):
798802
# connect to the server
799803
try:
800804
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
801-
self.catalog = CatalogueServiceWeb(self.catalog_url)
805+
self.catalog = CatalogueServiceWeb(self.catalog_url,
806+
timeout=self.timeout)
802807
return True
803808
except ExceptionReport, err:
804809
msg = self.tr('Error connecting to service: %s') % err

python/plugins/MetaSearch/metadata.txt

+8-6
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
name=MetaSearch Catalogue Client
33
description=MetaSearch is a QGIS plugin to interact with metadata catalogue services (CSW).
44
category=Web
5-
version=0.3.1
5+
version=0.3.2
66
qgisMinimumVersion=2.0
77
icon=images/MetaSearch.png
88
author=Tom Kralidis
99
email=tomkralidis@gmail.com
1010
tags=web,catalogue,service,metadata,csw
11-
homepage=http://geopython.github.io/MetaSearch
12-
tracker=https://github.com/geopython/MetaSearch/issues
13-
repository=https://github.com/geopython/MetaSearch.git
11+
homepage=https://hub.qgis.org/projects/MetaSearch
12+
tracker=https://hub.qgis.org/projects/MetaSearch/issues
13+
repository=https://github.com/qgis/QGIS/tree/master/python/plugins/MetaSearch
1414
experimental=False
1515
deprecated=False
16-
changelog=Version 0.3.1 (2014-09-03)
17-
- fix packaging and translation
16+
changelog=Version 0.3.2 (2014-11-04)
17+
- fix message formatting
18+
- add server timeout as plugin setting
19+
- bump OWSLib dependency

0 commit comments

Comments
 (0)