File tree 10 files changed +111
-3
lines changed
plugins/processing/script
10 files changed +111
-3
lines changed Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+
3
+ """
4
+ ***************************************************************************
5
+ qgsfeature.py
6
+ ---------------------
7
+ Date : May 2018
8
+ Copyright : (C) 2018 by Denis Rouzaud
9
+ Email : denis@opengis.ch
10
+ ***************************************************************************
11
+ * *
12
+ * This program is free software; you can redistribute it and/or modify *
13
+ * it under the terms of the GNU General Public License as published by *
14
+ * the Free Software Foundation; either version 2 of the License, or *
15
+ * (at your option) any later version. *
16
+ * *
17
+ ***************************************************************************
18
+ """
19
+
20
+
1
21
def mapping_feature (feature ):
2
22
geom = feature .geometry ()
3
23
fields = [field .name () for field in feature .fields ()]
Original file line number Diff line number Diff line change 8
8
9
9
10
10
11
+
12
+
11
13
class QgsLineSegment2D
12
14
{
13
15
%Docstring
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
+ """
4
+ ***************************************************************************
5
+ * *
6
+ * This program is free software; you can redistribute it and/or modify *
7
+ * it under the terms of the GNU General Public License as published by *
8
+ * the Free Software Foundation; either version 2 of the License, or *
9
+ * (at your option) any later version. *
10
+ * *
11
+ ***************************************************************************
12
+ """
13
+
3
14
from PyQt5 .QtCore import QCoreApplication
4
15
from qgis .core import (QgsProcessing ,
5
16
QgsFeatureSink ,
Original file line number Diff line number Diff line change 6
6
email : nyall dot dawson at gmail dot com
7
7
***************************************************************************/
8
8
9
+ /* **************************************************************************
10
+ * *
11
+ * This program is free software; you can redistribute it and/or modify *
12
+ * it under the terms of the GNU General Public License as published by *
13
+ * the Free Software Foundation; either version 2 of the License, or *
14
+ * (at your option) any later version. *
15
+ * *
16
+ ***************************************************************************/
17
+
9
18
#include " qgslinesegment.h"
10
19
#include " qgsgeometryutils.h"
11
20
Original file line number Diff line number Diff line change 5
5
copyright : (C) 2018 by Nyall Dawson
6
6
email : nyall dot dawson at gmail dot com
7
7
***************************************************************************/
8
+
9
+ /* **************************************************************************
10
+ * *
11
+ * This program is free software; you can redistribute it and/or modify *
12
+ * it under the terms of the GNU General Public License as published by *
13
+ * the Free Software Foundation; either version 2 of the License, or *
14
+ * (at your option) any later version. *
15
+ * *
16
+ ***************************************************************************/
17
+
8
18
#ifndef QGSLINESEGMENT_H
9
19
#define QGSLINESEGMENT_H
10
20
Original file line number Diff line number Diff line change
1
+ /* **************************************************************************
2
+ qgspostgresprojectstorage.cpp
3
+ ---------------------
4
+ begin : April 2018
5
+ copyright : (C) 2018 by Martin Dobias
6
+ email : wonder dot sk at gmail dot com
7
+ ***************************************************************************
8
+ * *
9
+ * This program is free software; you can redistribute it and/or modify *
10
+ * it under the terms of the GNU General Public License as published by *
11
+ * the Free Software Foundation; either version 2 of the License, or *
12
+ * (at your option) any later version. *
13
+ * *
14
+ ***************************************************************************/
1
15
#include " qgspostgresprojectstorage.h"
2
16
3
17
#include " qgspostgresconn.h"
Original file line number Diff line number Diff line change
1
+ /* **************************************************************************
2
+ qgspostgresprojectstorage.h
3
+ ---------------------
4
+ begin : April 2018
5
+ copyright : (C) 2018 by Martin Dobias
6
+ email : wonder dot sk at gmail dot com
7
+ ***************************************************************************
8
+ * *
9
+ * This program is free software; you can redistribute it and/or modify *
10
+ * it under the terms of the GNU General Public License as published by *
11
+ * the Free Software Foundation; either version 2 of the License, or *
12
+ * (at your option) any later version. *
13
+ * *
14
+ ***************************************************************************/
1
15
#ifndef QGSPOSTGRESPROJECTSTORAGE_H
2
16
#define QGSPOSTGRESPROJECTSTORAGE_H
3
17
Original file line number Diff line number Diff line change
1
+ /* **************************************************************************
2
+ qgspostgresprojectstoragedialog.cpp
3
+ ---------------------
4
+ begin : April 2018
5
+ copyright : (C) 2018 by Martin Dobias
6
+ email : wonder dot sk at gmail dot com
7
+ ***************************************************************************
8
+ * *
9
+ * This program is free software; you can redistribute it and/or modify *
10
+ * it under the terms of the GNU General Public License as published by *
11
+ * the Free Software Foundation; either version 2 of the License, or *
12
+ * (at your option) any later version. *
13
+ * *
14
+ ***************************************************************************/
1
15
#include " qgspostgresprojectstoragedialog.h"
2
16
3
17
#include " qgspostgresconn.h"
Original file line number Diff line number Diff line change
1
+ /* **************************************************************************
2
+ qgspostgresprojectstoragedialog.h
3
+ ---------------------
4
+ begin : April 2018
5
+ copyright : (C) 2018 by Martin Dobias
6
+ email : wonder dot sk at gmail dot com
7
+ ***************************************************************************
8
+ * *
9
+ * This program is free software; you can redistribute it and/or modify *
10
+ * it under the terms of the GNU General Public License as published by *
11
+ * the Free Software Foundation; either version 2 of the License, or *
12
+ * (at your option) any later version. *
13
+ * *
14
+ ***************************************************************************/
1
15
#ifndef QGSPOSTGRESPROJECTSTORAGEDIALOG_H
2
16
#define QGSPOSTGRESPROJECTSTORAGEDIALOG_H
3
17
Original file line number Diff line number Diff line change 3
3
# This test checks that all source files correctly have license headers
4
4
5
5
INCLUDE_EXTENSIONS=" h|cpp|hpp|py|c"
6
- EXCLUDE_LIST=" (.*\\ /(qtermwidget)\\ /|ui_defaults\\ .h|CREDITS|TODO|README|URI |^[^.]*$|.*\\ .(?!($INCLUDE_EXTENSIONS )$))"
6
+ EXCLUDE_LIST=" (.*\\ /(qtermwidget)\\ /|.* \\ /(auto_additions) \\ /| ui_defaults\\ .h|qgspluginmanager_texts \\ .cpp|src \\ /analysis \\ /vector \\ /mersenne-twister \\ . |^[^.]*$|.*\\ .(?!($INCLUDE_EXTENSIONS )$))"
7
7
LICENSE_CHECK=" external/licensecheck/licensecheck.pl"
8
8
9
9
DIR=$( git rev-parse --show-toplevel)
10
10
11
- pushd " ${DIR} " || exit > /dev/null
11
+ pushd " ${DIR} " > /dev/null || exit
12
12
missing=$( ! { " $LICENSE_CHECK " -r -i " $EXCLUDE_LIST " src & " $LICENSE_CHECK " -r -i " $EXCLUDE_LIST " python; } | grep UNKNOWN)
13
13
14
- popd || exit > /dev/null
14
+ popd > /dev/null || exit
15
15
16
16
if [[ $missing ]]; then
17
17
echo " *** Found source files without valid license headers"
You can’t perform that action at this time.
0 commit comments