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]