When a line has a length of 0, the function lines_center raise an error. It would be better to just use the coordinates of its single vertex. A simple way to avoid the problem actually is to separate the spatiallinesdataframe and to create the points with the function coordinates for the lines with a 0 length. It will be fixed in the next version.
When a line has a length of 0, the function lines_center raise an error. It would be better to just use the coordinates of its single vertex. A simple way to avoid the problem actually is to separate the spatiallinesdataframe and to create the points with the function coordinates for the lines with a 0 length. It will be fixed in the next version.