biigle / annotations

:m: BIIGLE module to create, edit and explore image annotations
0 stars 1 forks source link

Horizontal Rectangle with no y change is displayed as a point #38

Closed dlangenk closed 7 years ago

dlangenk commented 7 years ago

I can confirm this. Not sure why somebody wants to create such a rectangle but ...

Hi Daniel,

Just an interesting little bug report (not sure if I mentioned it before). Over the last few days working extensively with the new BIIGLE rectangular measuring tool I have noticed that if you try and do a measurement along the horizontal plane with no change in the y vector results in the rectangle failing upon completion, showing as a very small point. Not an issue for me I can just create a tiny angle when measuring, but just something that I wanted to bring to you attention in case you were unaware of it.

Cheers,

James

mzur commented 7 years ago

Maybe we should show him how to use the LineString tool :smile:

I fixed a bug there before because there is a division by 0 if two of the three points of a new rectangle are the same. Maybe we can catch this case and automatically convert it to a LineString? This may prevent some headaches in later analysis (rectangles with an area of 0).

mzur commented 7 years ago

With the floating point coordinates (or the new OpenLayers version?) I'm no longer able to reproduce this issue.