Closed hornm closed 10 years ago
@hornm your code looks correct to me. What are you expecting to see in the output xml? When I run Fiji, for example, and use the Bio-Formats importer to view the XML, it's pretty sparse.. just the standard metadata stuff. So there is probably a different reason that the information you're looking for isn't in your xml..
Anyway if you can tell me what the output should be I will try to figure out why it's not there :)
You are right, the xml in this case is pretty sparse, but there is still a difference and fiji (first image) returns a bit more information (the 'TiffData' section)
Thanks a lot!
Thanks @hornm! This looks like something's being lost in the translation process. I'll look into it shortly.
OK so there were 2 bugs. First, OME-formats needed to be updated for the latest XML schemas, which it now is.
Second, there is a bug in how Translators are discovered that is currently preventing proper translation to OME-XML. @ctrueden and I had a long talk today about how to resolve that, and it will take another SCIFIO release to sort out. But it's in the works now!
Will close this ticket once we update to a new SCIFIO..
@hinerm: Can you remind me why we forked the ome.xml
package into io.scif.ome.xml
? It was some dependency issue IIRC, but the ome-formats
project currently does still depend on loci:ome-xml:4.4.10
and loci:scifio:4.4.10
, so we haven't avoided the dependencies...
Great! Thanks for your help!
@ctrueden I'm not sure. It looks like we started off trying to make ome-formats stand on its own, and then were like "this is silly let's use ome-xml." I couldn't find any significant changes, so I started a branch to remove some of the duplicated classes.
I am keeping the OMEXMLService duplication for now, since I think it makes sense to convert it to a SJC service. But open to thoughts on that.
@hinerm Thanks, I'll comment further on the branch.
@hornm with the scifio-ome-xml 0.7.0 release, translation is now fixed and you should be able to actually see the full ome-xml.
Let us know if you have any more problems! Thanks!
Hi Mark, what is the right way to get the OME-XML metadata as a XML-String from arbitrary image formats? So far we are only able to retrieve the default image metadata without the additional information (as, for instance, available in this image file). This is the code how we currently get the xml-string.
Thanks for your help! Martin