Loading autocnet/cg/cg.py +2 −1 Original line number Diff line number Diff line Loading @@ -334,7 +334,8 @@ def distribute_points(geom, nspts, ewpts): line_of_points = create_points_along_line(top, bot, nspts) points.append(line_of_points) if len(points) < 1: return [] points = np.vstack(points) # Perform a spatial intersection check to eject points that are not valid valid = [p for p in points if xy_in_polygon(p[0], p[1], geom)] Loading Loading
autocnet/cg/cg.py +2 −1 Original line number Diff line number Diff line Loading @@ -334,7 +334,8 @@ def distribute_points(geom, nspts, ewpts): line_of_points = create_points_along_line(top, bot, nspts) points.append(line_of_points) if len(points) < 1: return [] points = np.vstack(points) # Perform a spatial intersection check to eject points that are not valid valid = [p for p in points if xy_in_polygon(p[0], p[1], geom)] Loading