Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #2614 (closed)

Opened 14 years ago

Closed 14 years ago

Test presence of "<!--" in exported data

Reported by: jamoore Owned by:
Priority: minor Milestone: OMERO-Beta4.2.1
Component: Export Version: n.a.
Keywords: n.a. Cc: mlinkert
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Especially for exporting XmlAnnotations, etc.

This may be trivially the case, due to proper handling in BF, but there's no explicit test in OMERO.

Change History (1)

comment:1 Changed 14 years ago by jmoore

  • Resolution set to worksforme
  • Status changed from new to closed
~/dist $ bin/omero import -n '<!-- XML -->' example.png 
...
Imported pixels:
51
2010-07-28 09:52:38,684 7427       [      main] INFO      ome.formats.importer.cli.ErrorHandler  - Number of errors: 0
~/dist $ bin/omero hql -q "select i.id, i.name 
> 
~/dist $ bin/omero hql -q "select i.id, i.name  from Image i"
Using session 952085ab-5e88-4dcd-b353-bff22359a5c1 (root@localhost). Idle timeout: 10.0 min. Current group: system
 # | Col1 | Col2         
---+------+--------------
 0 | 1    | model42      
 1 | 101  | <!-- XML --> 
(2 rows)
~/dist $ bin/omero export -t XML -f /tmp/101.xml Image:101
~/dist $ xmllint --format /tmp/101.xml 
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<OME xmlns="http://www.openmicroscopy.org/Schemas/OME/2010-06">
  <Image ID="urn:lsid:export.openmicroscopy.org:Image:f1275c2a-f9c5-4c4e-b88f-30bbe4a6b20e_101:666" Name="&lt;!-- XML --&gt;">
    <AcquiredDate>2010-07-27 17:14:14.0</AcquiredDate>
    <Description/>
    <Pixels DimensionOrder="XYZCT" ID="urn:lsid:export.openmicroscopy.org:Pixels:f1275c2a-f9c5-4c4e-b88f-30bbe4a6b20e_51:667" SizeC="3" SizeT="1" SizeX="1298" SizeY="867" SizeZ="1" Type="uint8">
      <Channel Color="-65536" ID="urn:lsid:export.openmicroscopy.org:Channel:f1275c2a-f9c5-4c4e-b88f-30bbe4a6b20e_51:668" Name="Red" SamplesPerPixel="1">
        <LightPath/>
      </Channel>
      <Channel Color="-16711936" ID="urn:lsid:export.openmicroscopy.org:Channel:f1275c2a-f9c5-4c4e-b88f-30bbe4a6b20e_52:668" Name="Green" SamplesPerPixel="1">
        <LightPath/>
      </Channel>
      <Channel Color="-16776961" ID="urn:lsid:export.openmicroscopy.org:Channel:f1275c2a-f9c5-4c4e-b88f-30bbe4a6b20e_53:668" Name="Blue" SamplesPerPixel="1">
        <LightPath/>
      </Channel>
    </Pixels>
  </Image>
</OME>
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.98856 sec.)

We're Hiring!