Bladeren bron

ORStools imports --> OSMtools imports

master
nilsnolde 1 jaar geleden
bovenliggende
commit
59a0f35a77
8 gewijzigde bestanden met toevoegingen van 10 en 9 verwijderingen
  1. 3
    3
      client.py
  2. 1
    1
      dialog.py
  3. 1
    1
      geocode.py
  4. 1
    1
      isochrones.py
  5. 3
    1
      metadata.txt
  6. 1
    1
      osm_tools.py
  7. BIN
      osmtools.png
  8. 0
    1
      pointtool.py

+ 3
- 3
client.py Bestand weergeven

@@ -14,10 +14,10 @@ import time
import collections
from urllib.parse import urlencode

import ORStools
import OSMtools
from . import exceptions, aux

_USER_AGENT = "ORSClientQGIS/%s".format(ORStools.__version__)
_USER_AGENT = "ORSClientQGIS/%s".format(OSMtools.__version__)
_RETRIABLE_STATUSES = [503]
_DEFAULT_BASE_URL = "https://api.openrouteservice.org"

@@ -218,7 +218,7 @@ class Client(object):
return path + "?" + _urlencode_params(params)

raise ValueError("No API key specified. "
"Visit https://go.ORStools.org/dev-dashboard/ "
"Visit https://go.openrouteservice.org/dev-dashboard/ "
"to create one.")


+ 1
- 1
dialog.py Bestand weergeven

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
/***************************************************************************
ORStoolsDialog
OSMtoolsDialog
A QGIS plugin
falk
-------------------

+ 1
- 1
geocode.py Bestand weergeven

@@ -6,7 +6,7 @@ Created on Sun Feb 18 00:49:36 2018
@author: nilsnolde
"""

from ORStools import convert
from . import convert

def reverse_geocode(client, point_in):
params = dict()

+ 1
- 1
isochrones.py Bestand weergeven

@@ -19,7 +19,7 @@ from qgis.core import (QgsPointXY,
QgsRendererCategory,
QgsCategorizedSymbolRenderer)

from ORStools import (geocode,
from . import (geocode,
convert,
aux
)

+ 3
- 1
metadata.txt Bestand weergeven

@@ -26,7 +26,9 @@ repository=https://github.com/nilsnolde/OSMtools.git

# Uncomment the following line and add your changelog:

changelog=2018/02/20 v.4b3 beta for QGIS2.99. Complete code refactoring with major improvements (isochrone ranges as list, calculate from selected points in map canvas), solved #4, #38, #40
changelog=2018/02/21 v3.0.6b fixed calls to ORStools instead of OSMtools
2018/02/20 v3.0.5b handles Python error on Project startup
2018/02/20 v.4b3 beta for QGIS2.99. Complete code refactoring with major improvements (isochrone ranges as list, calculate from selected points in map canvas), solved #4, #38, #40
2017/10/07 v.0.3.4 Fixed zoomToLayer bug (#35)
2017/09/24 v.0.3.3 Handled deprecated mapRenderer() function
2017/09/23 v.0.3.2 Added avoid_type feature for routing, auto-styling for acc areas

+ 1
- 1
osm_tools.py Bestand weergeven

@@ -33,7 +33,7 @@ from PyQt5.Qt import PYQT_VERSION_STR
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QAction, QApplication

from ORStools.dialog import OSMtoolsDialog
from OSMtools.dialog import OSMtoolsDialog
from . import isochrones, client, directions, exceptions

import logging

BIN
osmtools.png Bestand weergeven


+ 0
- 1
pointtool.py Bestand weergeven

@@ -13,7 +13,6 @@ from qgis.core import (QgsCoordinateReferenceSystem,
QgsProject)
from qgis.gui import QgsMapTool
import os
# Find cursor icon in plugin tree

Laden…
Annuleren
Opslaan