From e408662e0bada05e88ff345ecbc77215b93734b1 Mon Sep 17 00:00:00 2001 From: kauevestena Date: Wed, 20 Dec 2023 02:51:43 +0100 Subject: [PATCH] fixed for 3.30 and on, tested on 3.34 --- generic_functions.py | 6 ++++-- metadata.txt | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/generic_functions.py b/generic_functions.py index e28f5b8..e0cf9db 100755 --- a/generic_functions.py +++ b/generic_functions.py @@ -4,7 +4,9 @@ # from qgis.PyQt.QtCore import QVariant from qgis import processing from processing.tools import dataobjects -from qgis.core import QgsCoordinateReferenceSystem, QgsVectorLayer, QgsProject, edit, QgsGeometry, QgsProperty, QgsField, QgsFeature, QgsRasterLayer, QgsSpatialIndex, QgsFeatureRequest, QgsGeometryUtils, QgsVector, QgsCoordinateTransform, QgsMultiPoint, QgsPoint, QgsPointXY, QgsProperty, QgsApplication #, QgsRendererCategory, QgsSymbol, QgsLineSymbol, QgsCategorizedSymbolRenderer +from qgis.core import QgsCoordinateReferenceSystem, QgsVectorLayer, QgsProject, edit, QgsGeometry, QgsProperty, QgsField, QgsFeature, QgsRasterLayer, QgsSpatialIndex, QgsFeatureRequest, QgsGeometryUtils, QgsVector, QgsCoordinateTransform, QgsMultiPoint, QgsPoint, QgsPointXY, QgsProperty, QgsApplication, Qgis #, QgsRendererCategory, QgsSymbol, QgsLineSymbol, QgsCategorizedSymbolRenderer +# from qgis.core import Qgis + from processing.gui.AlgorithmExecutor import execute_in_place @@ -853,7 +855,7 @@ def points_intersecting_buffer_boundary(input_point,inputlayer,featlist=None,buf inputlayer must have geometries of Line type ''' - boundary = input_point.buffer(buffersize,segments).convertToType(1) # 1 is the value for "LineGeometry" in https://qgis.org/api/classQgsWkbTypes.html + boundary = input_point.buffer(buffersize,segments).convertToType(Qgis.GeometryType(1)) # 1 is the value for "LineGeometry" in https://api.qgis.org/api/classQgis.html#a84964253bb44012b246c20790799c04d # list storing the points that shall be returned: ret_list = [] diff --git a/metadata.txt b/metadata.txt index 711ec37..70efb2d 100644 --- a/metadata.txt +++ b/metadata.txt @@ -4,9 +4,9 @@ [general] name=OSM SidewalKreator -qgisMinimumVersion=3.28 +qgisMinimumVersion=3.30 description=Plugin designated to create the Geometries of Sidewalks (separated from streets) based on OpenStreetMap Streets, given a bounding polygon, outputting to a .geojson to be imported on JOSM. It is mostly intended for accessibility Mapping. -version=1.2 +version=1.2.1 author=Kaue de Moraes Vestena email=kauemv2@gmail.com @@ -20,7 +20,7 @@ repository=https://github.com/kauevestena/osm_sidewalkreator hasProcessingProvider=no # Uncomment the following line and add your changelog: -changelog=Sure zones added, Consistent Styles for the temporary Layers added, Fixes on functional parts and bugs +changelog=Sure zones added, Consistent Styles for the temporary Layers added, Fixes on functional parts and bugs. Made compatible with API changes introduced in 3.30, tested on 3.34 # Tags are comma separated with spaces allowed tags=openstreetmap, osm, vector