Sorry, I don't really understand. We're trying to retrieve the maximum ID of MapAnnotation used in a OMERO server. How can we get that value with Bioformats API rather than OMERO API? It doesn't seem that
metadata has access to a OMERO session or OMERO server in the example given (
https://github.com/openmicroscopy/biofo ... ample.java). Forgive me if I'm totally lost.
MetatadataService offers
countSpecifiedAnnotations method and this can be the one for me, but 'map' seems inadequate to specify MapAnnotation and there is no clue in the documentation. 'MapAnnotation' seems the right one.
- Code: Select all
ms = session.getMetadataService();
cnt = ms.countSpecifiedAnnotations('MapAnnotation',[],[],[])
cnt.getValue() was 60, whereas I'm already using ID 169. So maybe
countSpecifiedAnnotations is not the one I need after all.