<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Adam,<div><br></div><div> Another thing to be aware of:</div><div>Unfortunately the Insight measurement tool hasn't been writing Polyline strings exactly as the model describes. </div><div><a href="http://trac.openmicroscopy.org.uk/ome/ticket/4392">http://trac.openmicroscopy.org.uk/ome/ticket/4392</a></div><div><br></div><div>This should be fixed in the 4.3 release (database upgrade to fix existing Polylines too).</div><div>So, if you're reading Polyline points from the current measurement tool, you'll need to parse them differently after the 4.3 upgrade. </div><div><br></div><div>Apologies for this hassle,</div><div><br></div><div> Will. </div><div><br></div><div><br></div><div><div><div>On 13 Apr 2011, at 23:08, Curtis Rueden wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Adam,<br><br>The ome.xml.model.Polyline class, as well as most of ome-xml.jar, is autogenerated based on the OME-XML data model. The getters and setters available correspond to the attributes of the associated element of OME-XML. So that's why you only see a getter for the String—the XML element stores the coordinates as strings. Hence, there is not really any better API for working with the coordinate list.<br> <br>This is one reason we should develop our own ROI data model classes in ImageJ2, rather than directly leveraging the ones in ome-xml.jar. We will still support the OME data model by an adapter layer.<br><br>-Curtis<br> <br><div class="gmail_quote">On Wed, Apr 13, 2011 at 12:35 PM, Adam Fraser <span dir="ltr"><<a href="mailto:afraser@broadinstitute.org">afraser@broadinstitute.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> I need to iterate over points in a <span style="font-family:Monaco;font-size:11px">ome.xml.model.Polyline</span> object, but the only getter I can find in the API is getPoints which returns a string. I'm sure I could parse it by hand, but my guess is there's a better way to iterate over this data.<div> <br></div><div>Thanks,</div><div>Adam</div> <br>_______________________________________________<br> ome-devel mailing list<br> <a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a><br> <a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a><br> <br></blockquote></div><br> _______________________________________________<br>ome-devel mailing list<br><a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a><br>http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>William Moore</div><div><div>Wellcome Trust Centre for Gene Regulation & Expression</div><div>College of Life Sciences</div><div>MSI/WTB/JBC Complex</div><div>University of Dundee</div><div>Dow Street</div><div>Dundee DD1 5EH</div><div>United Kingdom</div><div><br></div><div>Phone 01382 386364</div></div><div><a href="http://openmicroscopy.org">http://openmicroscopy.org</a></div></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"> </div><br></div></body></html>