From 174d73268b00308c5f5fe0d7d2797ccbf4241a93 Mon Sep 17 00:00:00 2001 From: Dhiraj Srivastava Date: Tue, 18 Jun 2024 17:29:24 -0500 Subject: [PATCH] Update plot_extraction.py --- plantcv/geospatial/plot_extraction.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/plantcv/geospatial/plot_extraction.py b/plantcv/geospatial/plot_extraction.py index be93f41..cd67f46 100644 --- a/plantcv/geospatial/plot_extraction.py +++ b/plantcv/geospatial/plot_extraction.py @@ -6,14 +6,12 @@ def create_rectangle_from_points(shapefile_path): with fiona.open(shapefile_path, 'r') as shapefile: points = [shape['geometry']['coordinates'] for shape in shapefile] - rectangle = Polygon(points) return rectangle def calculate_line_length_in_meters(line): total_length = 0 - for i in range(len(line.coords)-1): x1, y1 = line.coords[i] x2, y2 = line.coords[i+1]