diff --git a/los_tools/classes/sampling_distance_matrix.py b/los_tools/classes/sampling_distance_matrix.py index a35b927..ef16015 100755 --- a/los_tools/classes/sampling_distance_matrix.py +++ b/los_tools/classes/sampling_distance_matrix.py @@ -150,6 +150,6 @@ def build_line(self, origin_point: QgsPoint, direction_point: QgsPoint) -> QgsLi def densified_line(self, start_point: QgsPoint, end_point: QgsPoint, sampling_row_index: int) -> QgsLineString: line = QgsGeometry.fromPolyline([start_point, end_point]) - line = line.densifyByDistance(distance=np.nextafter(self.get_row_sampling_distance(sampling_row_index), np.Inf)) + line = line.densifyByDistance(distance=np.nextafter(self.get_row_sampling_distance(sampling_row_index), np.inf)) return QgsLineString([x for x in line.vertices()]) diff --git a/los_tools/metadata.txt b/los_tools/metadata.txt index f600380..0487797 100755 --- a/los_tools/metadata.txt +++ b/los_tools/metadata.txt @@ -6,7 +6,7 @@ name=LoS Tools qgisMinimumVersion=3.30 description=This plugin creates and analyzes lines-of-sight (LoS) and also provides supporting tools. -version=1.2.0 +version=1.2.1 author=Jan Caha email=jan.caha@outlook.com @@ -20,7 +20,9 @@ repository=https://github.com/JanCaha/qgis_los_tools hasProcessingProvider=yes # Uncomment the following line and add your changelog: -changelog=1.2.0 +changelog=1.2.1 + - fix bad use of numpy to avoid exception +

1.2.0 - new tool to extract horizon lines at specific distance - minor fixes to gui tools (based on tests written for them)

1.1.2 diff --git a/los_tools/processing/tools/util_functions.py b/los_tools/processing/tools/util_functions.py index 1accb07..10bee39 100644 --- a/los_tools/processing/tools/util_functions.py +++ b/los_tools/processing/tools/util_functions.py @@ -162,7 +162,7 @@ def segmentize_line(line: QgsGeometry, segment_length: float) -> QgsLineString: line_geom = QgsGeometry(line_extented) - line_geom = line_geom.densifyByDistance(distance=np.nextafter(float(segment_length), np.Inf)) + line_geom = line_geom.densifyByDistance(distance=np.nextafter(float(segment_length), np.inf)) line_res = QgsLineString([x for x in line_geom.vertices()])