Hi Will,<br><br>It should be easy enough to support both types of strings when reading the OME-XML and converting into whatever internal model is being used. We can certainly support this in ImageJ2.<br><br>-Curtis<br><br>

<div class="gmail_quote">On Wed, Apr 13, 2011 at 5:33 PM, Will Moore <span dir="ltr">&lt;<a href="mailto:will@lifesci.dundee.ac.uk">will@lifesci.dundee.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div style="word-wrap:break-word">Hi Adam (again)<div><br></div><div>Apologies - I should have read the ticket before sending. </div><div>It says that we are not going to change the implementation for the 4.3 release. </div>

<div>Need more time to handle the impact. </div><div><br></div><font color="#888888"><div>  Will. </div></font><div><div></div><div class="h5"><div><br></div><div><br><div><div>On 13 Apr 2011, at 23:24, Will Moore wrote:</div>

<br><blockquote type="cite"><div style="word-wrap:break-word">Hi Adam,<div><br></div><div> Another thing to be aware of:</div><div>Unfortunately the Insight measurement tool hasn&#39;t been writing Polyline strings exactly as the model describes. </div>

<div><a href="http://trac.openmicroscopy.org.uk/ome/ticket/4392" target="_blank">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&#39;re reading Polyline points from the current measurement tool, you&#39;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><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&#39;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">&lt;<a href="mailto:afraser@broadinstitute.org" target="_blank">afraser@broadinstitute.org</a>&gt;</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&#39;m sure I could parse it by hand, but my guess is there&#39;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" target="_blank">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" target="_blank">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>

</blockquote></div><br><div> <div style="word-wrap:break-word"><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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<div><div>William Moore</div><div><div>Wellcome Trust Centre for Gene Regulation &amp; 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" target="_blank">http://openmicroscopy.org</a></div></div></div></span><br></div></span><br>

</div></span><br></div><br> </div><br></div></div>_______________________________________________<br>ome-devel mailing list<br><a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">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></blockquote></div><br><div> <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;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<div><div>William Moore</div><div><div>Wellcome Trust Centre for Gene Regulation &amp; 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" target="_blank">http://openmicroscopy.org</a></div></div></div></span><br></div></span><br>

</div></span><br></div></span><br> </div><br></div></div></div></div></blockquote></div><br>