You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We just had a situation where polygon shape data was generated by a third-party script and the points string was incorrectly formatted (with extra commas) x1,y1, x2,y2, x3,y3, ... instead of x1,y1 x2,y2 x3,y3 ... as described in the XSD specifications for Polygon (https://www.openmicroscopy.org/Schemas/OME/2016-06/ome.xsd):
The points of the Polygon are defined as a list of comma separated x,y coordinates seperated [sic] by spaces like “x1,y1 x2,y2 x3,y3” e.g. “0,0 1,2 3,5"
While this broke one of our tools, iviewer still showed the shape correctly.
Our fix probably will be not to relax the data parsing, but to catch and report invalid data to users, so they are aware and can correct it.
Is iviewer loading the shape anyway purposeful or coincidental, i.e. would the iviewer behavior in this case be considered a bug?
The text was updated successfully, but these errors were encountered:
which seems to only handle Polygon points without the extra commas?
I'll need to script some Polygon creation to test further.
Certainly other places in web, e.g. the old viewer was able to handle extra commas format, since I think that's what Insight used to produce.
I guess it could be considered a bug, if it gave someone the impression that this format was "valid".
@will-moore I think iviewer works right now because extra commas just produce extra elements in the c array, which are ignored by the subsequent code. It makes sure than c has at least two elements, but more than two elements are fine.
We just had a situation where polygon shape data was generated by a third-party script and the
points
string was incorrectly formatted (with extra commas)x1,y1, x2,y2, x3,y3, ...
instead ofx1,y1 x2,y2 x3,y3 ...
as described in the XSD specifications for Polygon (https://www.openmicroscopy.org/Schemas/OME/2016-06/ome.xsd):While this broke one of our tools, iviewer still showed the shape correctly.
Our fix probably will be not to relax the data parsing, but to catch and report invalid data to users, so they are aware and can correct it.
Is iviewer loading the shape anyway purposeful or coincidental, i.e. would the iviewer behavior in this case be considered a bug?
The text was updated successfully, but these errors were encountered: