Skip to content

Commit

Permalink
fixed for 3.30 and on, tested on 3.34
Browse files Browse the repository at this point in the history
  • Loading branch information
kauevestena committed Dec 20, 2023
1 parent fd23b15 commit e408662
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions generic_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 = []
Expand Down
6 changes: 3 additions & 3 deletions metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 protected]

Expand All @@ -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
Expand Down

0 comments on commit e408662

Please sign in to comment.