DIFM-Brain / ofpetrial

GNU General Public License v3.0
0 stars 1 forks source link

Boundary files with linestring #12

Closed brittanikedge closed 4 months ago

brittanikedge commented 5 months ago

When a linestring is present in the boundary file, it remains in the trial design causing an error when writing file to a shapefile

brittanikedge commented 5 months ago

@tmieno2 I think this should be a separate issue. It occurs with the same json I gave you for the problem with a gap between plots in the same strip_id

tmieno2 commented 4 months ago

Okay. I will modify the code to remove any linestrings.

tmieno2 commented 4 months ago

Can you show me the error message? I only see polygons in the trial design of the field.

brittanikedge commented 4 months ago

The error happens in st_write(), specifically when selecting ext = "shp". I don't have an error when ext = "geojson".

I was able to find the linestring inside the td. I'm attaching a screenshot of the error and which feature contains the linestring. It is part of the headland.

Screenshot 2024-04-12 at 9 45 09 AM Screenshot 2024-04-12 at 9 44 46 AM
tmieno2 commented 4 months ago

Oh, I see. I was just looking at the experiment part. Got it.

tmieno2 commented 4 months ago

Okay, I pushed the change. Please see if writing works now.

brittanikedge commented 4 months ago

Yes, it works! I will close this issue.