File tree Expand file tree Collapse file tree
plugins/processing/script Expand file tree Collapse file tree 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+
121def mapping_feature (feature ):
222 geom = feature .geometry ()
323 fields = [field .name () for field in feature .fields ()]
Original file line number Diff line number Diff line change 88
99
1010
11+
12+
1113class QgsLineSegment2D
1214{
1315%Docstring
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
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+
314from PyQt5 .QtCore import QCoreApplication
415from qgis .core import (QgsProcessing ,
516 QgsFeatureSink ,
Original file line number Diff line number Diff line change 66 email : nyall dot dawson at gmail dot com
77 ***************************************************************************/
88
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+
918#include " qgslinesegment.h"
1019#include " qgsgeometryutils.h"
1120
Original file line number Diff line number Diff line change 55 copyright : (C) 2018 by Nyall Dawson
66 email : nyall dot dawson at gmail dot com
77 ***************************************************************************/
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+
818#ifndef QGSLINESEGMENT_H
919#define QGSLINESEGMENT_H
1020
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+ ***************************************************************************/
115#include " qgspostgresprojectstorage.h"
216
317#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+ ***************************************************************************/
115#ifndef QGSPOSTGRESPROJECTSTORAGE_H
216#define QGSPOSTGRESPROJECTSTORAGE_H
317
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+ ***************************************************************************/
115#include " qgspostgresprojectstoragedialog.h"
216
317#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+ ***************************************************************************/
115#ifndef QGSPOSTGRESPROJECTSTORAGEDIALOG_H
216#define QGSPOSTGRESPROJECTSTORAGEDIALOG_H
317
Original file line number Diff line number Diff line change 33# This test checks that all source files correctly have license headers
44
55INCLUDE_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 )$))"
77LICENSE_CHECK=" external/licensecheck/licensecheck.pl"
88
99DIR=$( git rev-parse --show-toplevel)
1010
11- pushd " ${DIR} " || exit > /dev/null
11+ pushd " ${DIR} " > /dev/null || exit
1212missing=$( ! { " $LICENSE_CHECK " -r -i " $EXCLUDE_LIST " src & " $LICENSE_CHECK " -r -i " $EXCLUDE_LIST " python; } | grep UNKNOWN)
1313
14- popd || exit > /dev/null
14+ popd > /dev/null || exit
1515
1616if [[ $missing ]]; then
1717 echo " *** Found source files without valid license headers"
You can’t perform that action at this time.
0 commit comments