Skip to content

Commit

Permalink
Update plot_extraction.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dhiraj-ms committed Jun 18, 2024
1 parent 587eeff commit 174d732
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plantcv/geospatial/plot_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 174d732

Please sign in to comment.