This commit is contained in:
Artix
2025-03-04 12:12:06 +02:00
parent 08f8ca60a8
commit 859ef325eb
16 changed files with 93 additions and 93 deletions

View File

@@ -1764,7 +1764,7 @@ class AppGeoEditor(QtCore.QObject):
"""
snap_x, snap_y = (x, y)
snap_distance = np.Inf
snap_distance = np.inf
# # ## Object (corner?) snap
# # ## No need for the objects, just the coordinates
@@ -2664,10 +2664,10 @@ class DrawToolShape(object):
def bounds_rec(shape_el):
if type(shape_el) is list:
minx = np.Inf
miny = np.Inf
maxx = -np.Inf
maxy = -np.Inf
minx = np.inf
miny = np.inf
maxx = -np.inf
maxy = -np.inf
for k in shape_el:
minx_, miny_, maxx_, maxy_ = bounds_rec(k)
@@ -2937,10 +2937,10 @@ class DrawTool(object):
def bounds(obj):
def bounds_rec(o):
if type(o) is list:
minx = np.Inf
miny = np.Inf
maxx = -np.Inf
maxy = -np.Inf
minx = np.inf
miny = np.inf
maxx = -np.inf
maxy = -np.inf
for k in o:
try:
@@ -5086,10 +5086,10 @@ class FCCopy(FCShapeTool):
geo_source = [s.geo for s in self.draw_app.get_selected()]
def geo_bounds(geo: (BaseGeometry, list)):
minx = np.Inf
miny = np.Inf
maxx = -np.Inf
maxy = -np.Inf
minx = np.inf
miny = np.inf
maxx = -np.inf
maxy = -np.inf
if type(geo) == list:
for shp in geo:
@@ -5785,10 +5785,10 @@ def poly2rings(poly):
def get_shapely_list_bounds(geometry_list):
xmin = np.Inf
ymin = np.Inf
xmax = -np.Inf
ymax = -np.Inf
xmin = np.inf
ymin = np.inf
xmax = -np.inf
ymax = -np.inf
for gs in geometry_list:
try: