Skip to content

Commit 4490a02

Browse files
authored
Merge pull request #119 from MarPetra/addlicences
[admin] adding licence to code
2 parents 5b659b8 + ee0f5fd commit 4490a02

24 files changed

+643
-60
lines changed

__init__.py

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
"""
2-
/***************************************************************************
3-
pgRouting Layer
4-
a QGIS plugin
5-
6-
based on "Fast SQL Layer" plugin Copyright 2011 Pablo Torres Carreira
7-
-------------------
8-
begin : 2011-11-25
9-
copyright : (c) 2011 by Anita Graser
10-
11-
***************************************************************************/
12-
13-
/***************************************************************************
14-
* *
15-
* This program is free software; you can redistribute it and/or modify *
16-
* it under the terms of the GNU General Public License as published by *
17-
* the Free Software Foundation; either version 2 of the License, or *
18-
* (at your option) any later version. *
19-
* *
20-
***************************************************************************/
21-
This script initializes the plugin, making it known to QGIS.
22-
"""
23-
1+
# -*- coding: utf-8 -*-
2+
# /*PGR-GNU*****************************************************************
3+
# File: __init__.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - AasheeshT
10+
# - cayetanobv
11+
# - cvvergara
12+
# - anitagraser
13+
# ------
14+
#
15+
# This program is free software; you can redistribute it and/or modify
16+
# it under the terms of the GNU General Public License as published by
17+
# the Free Software Foundation; either version 2 of the License, or
18+
# (at your option) any later version.
19+
# This program is distributed in the hope that it will be useful,
20+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
# GNU General Public License for more details.
23+
# You should have received a copy of the GNU General Public License
24+
# along with this program; if not, write to the Free Software
25+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26+
# ********************************************************************PGR-GNU*/
2427

2528
def classFactory(iface):
2629
from pgRoutingLayer.pgRoutingLayer import PgRoutingLayer

connectors/postgis.py

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
RT Sql Layer
4-
Copyright 2010 Giuseppe Sucameli
2+
# /*PGR-GNU*****************************************************************
3+
# File: postgis.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - cayetanobv
10+
# - AasheeshT
11+
# - jef-n
12+
# - sanak
13+
# - cvvergara
14+
# - anitagraser
15+
# ------
16+
#
17+
# This program is free software; you can redistribute it and/or modify
18+
# it under the terms of the GNU General Public License as published by
19+
# the Free Software Foundation; either version 2 of the License, or
20+
# (at your option) any later version.
21+
# This program is distributed in the hope that it will be useful,
22+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
23+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24+
# GNU General Public License for more details.
25+
# You should have received a copy of the GNU General Public License
26+
# along with this program; if not, write to the Free Software
27+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28+
# ********************************************************************PGR-GNU*/
529

6-
based on PostGIS Manager
7-
Copyright 2008 Martin Dobias
8-
9-
Licensed under the terms of GNU GPL v2 (or any later)
10-
http://www.gnu.org/copyleft/gpl.html
11-
12-
13-
Good resource for metadata extraction:
14-
http://www.alberton.info/postgresql_meta_info.html
15-
System information functions:
16-
http://www.postgresql.org/docs/8.0/static/functions-info.html
17-
"""
1830
from __future__ import print_function
1931
from qgis.core import QgsDataSourceUri
2032
from qgis.PyQt.QtCore import QSettings

dbConnection.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
11
# -*- coding: utf-8 -*-
2+
# /*PGR-GNU*****************************************************************
3+
# File: dbConnection.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - AasheeshT
10+
# - cayetanobv
11+
# - sanak
12+
# - cvvergara
13+
# - anitagraser
14+
# ------
15+
#
16+
# This program is free software; you can redistribute it and/or modify
17+
# it under the terms of the GNU General Public License as published by
18+
# the Free Software Foundation; either version 2 of the License, or
19+
# (at your option) any later version.
20+
# This program is distributed in the hope that it will be useful,
21+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
# GNU General Public License for more details.
24+
# You should have received a copy of the GNU General Public License
25+
# along with this program; if not, write to the Free Software
26+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27+
# ********************************************************************PGR-GNU*/
28+
229

330
from __future__ import absolute_import
431
from qgis.core import QgsDataSourceUri

functions/AstarBase.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
# /*PGR-GNU*****************************************************************
3+
# File: AstarBase.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - cayetanobv
10+
# - cvvergara
11+
# - anitagraser
12+
# ------
13+
#
14+
# This program is free software; you can redistribute it and/or modify
15+
# it under the terms of the GNU General Public License as published by
16+
# the Free Software Foundation; either version 2 of the License, or
17+
# (at your option) any later version.
18+
# This program is distributed in the hope that it will be useful,
19+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
# GNU General Public License for more details.
22+
# You should have received a copy of the GNU General Public License
23+
# along with this program; if not, write to the Free Software
24+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25+
# ********************************************************************PGR-GNU*/
26+
127
from __future__ import absolute_import
228
from .DijkstraBase import DijkstraBase
329
from psycopg2 import sql

functions/CostBase.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
# /*PGR-GNU*****************************************************************
3+
# File: CostBase.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - cayetanobv
10+
# - cvvergara
11+
# - anitagraser
12+
# ------
13+
#
14+
# This program is free software; you can redistribute it and/or modify
15+
# it under the terms of the GNU General Public License as published by
16+
# the Free Software Foundation; either version 2 of the License, or
17+
# (at your option) any later version.
18+
# This program is distributed in the hope that it will be useful,
19+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
# GNU General Public License for more details.
22+
# You should have received a copy of the GNU General Public License
23+
# along with this program; if not, write to the Free Software
24+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25+
# ********************************************************************PGR-GNU*/
26+
127
from __future__ import absolute_import
228
from psycopg2 import sql
329
from .FunctionBase import FunctionBase

functions/DijkstraBase.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
# /*PGR-GNU*****************************************************************
3+
# File: DijkstraBase.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - cayetanobv
10+
# - cvvergara
11+
# - anitagraser
12+
# ------
13+
#
14+
# This program is free software; you can redistribute it and/or modify
15+
# it under the terms of the GNU General Public License as published by
16+
# the Free Software Foundation; either version 2 of the License, or
17+
# (at your option) any later version.
18+
# This program is distributed in the hope that it will be useful,
19+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
# GNU General Public License for more details.
22+
# You should have received a copy of the GNU General Public License
23+
# along with this program; if not, write to the Free Software
24+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25+
# ********************************************************************PGR-GNU*/
26+
127
from __future__ import absolute_import
228
from pgRoutingLayer import pgRoutingLayer_utils as Utils
329
from .FunctionBase import FunctionBase

functions/FunctionBase.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
# -*- coding: utf-8 -*-
2+
# /*PGR-GNU*****************************************************************
3+
# File: FunctionBase.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - cayetanobv
10+
# - AasheeshT
11+
# - sanak
12+
# - cvvergara
13+
# - anitagraser
14+
# ------
15+
#
16+
# This program is free software; you can redistribute it and/or modify
17+
# it under the terms of the GNU General Public License as published by
18+
# the Free Software Foundation; either version 2 of the License, or
19+
# (at your option) any later version.
20+
# This program is distributed in the hope that it will be useful,
21+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
# GNU General Public License for more details.
24+
# You should have received a copy of the GNU General Public License
25+
# along with this program; if not, write to the Free Software
26+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27+
# ********************************************************************PGR-GNU*/
28+
129
from qgis.PyQt.QtCore import QSizeF, QPointF
230
from qgis.core import (QgsGeometry, QgsWkbTypes, QgsTextAnnotation)
331
from qgis.PyQt.QtGui import QColor, QTextDocument

functions/drivingDistance.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
# -*- coding: utf-8 -*-
2+
# /*PGR-GNU*****************************************************************
3+
# File: drivingDistance.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - cayetanobv
10+
# - AasheeshT
11+
# - sanak
12+
# - cvvergara
13+
# - anitagraser
14+
# ------
15+
#
16+
# This program is free software; you can redistribute it and/or modify
17+
# it under the terms of the GNU General Public License as published by
18+
# the Free Software Foundation; either version 2 of the License, or
19+
# (at your option) any later version.
20+
# This program is distributed in the hope that it will be useful,
21+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
# GNU General Public License for more details.
24+
# You should have received a copy of the GNU General Public License
25+
# along with this program; if not, write to the Free Software
26+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27+
# ********************************************************************PGR-GNU*/
28+
129
from __future__ import absolute_import
230
from qgis.PyQt.QtCore import Qt
331
from qgis.PyQt.QtGui import *

functions/pgr_KSP.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
# /*PGR-GNU*****************************************************************
3+
# File: pgr_KSP.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - cayetanobv
10+
# - cvvergara
11+
# - anitagraser
12+
# ------
13+
#
14+
# This program is free software; you can redistribute it and/or modify
15+
# it under the terms of the GNU General Public License as published by
16+
# the Free Software Foundation; either version 2 of the License, or
17+
# (at your option) any later version.
18+
# This program is distributed in the hope that it will be useful,
19+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
# GNU General Public License for more details.
22+
# You should have received a copy of the GNU General Public License
23+
# along with this program; if not, write to the Free Software
24+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25+
# ********************************************************************PGR-GNU*/
26+
127
from __future__ import absolute_import
228
from psycopg2 import sql
329
from .FunctionBase import FunctionBase

functions/pgr_aStar.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
# /*PGR-GNU*****************************************************************
3+
# File: pgr_aStar.py
4+
#
5+
# Copyright (c) 2011~2019 pgRouting developers
6+
7+
#
8+
# Developer's GitHub nickname:
9+
# - cayetanobv
10+
# - cvvergara
11+
# - anitagraser
12+
# ------
13+
#
14+
# This program is free software; you can redistribute it and/or modify
15+
# it under the terms of the GNU General Public License as published by
16+
# the Free Software Foundation; either version 2 of the License, or
17+
# (at your option) any later version.
18+
# This program is distributed in the hope that it will be useful,
19+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
# GNU General Public License for more details.
22+
# You should have received a copy of the GNU General Public License
23+
# along with this program; if not, write to the Free Software
24+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25+
# ********************************************************************PGR-GNU*/
26+
127
from __future__ import absolute_import
228
from .AstarBase import AstarBase
329

0 commit comments

Comments
 (0)