[geotk] Reading MD_BrowseGraphic element
Martin Desruisseaux
martin.desruisseaux at geomatys.fr
Mon Aug 19 03:13:26 PDT 2013
Hello Vincent
Sorry for replying so late on this issue. We fixed the <gmx:FileName>
and <gmx:FileMimeType> issues in Apache SIS [1]: they should now work.
However the fix will be part of Apache SIS 0.4 - it is not included in
the 0.3 release. Would it be possible for you to give a try to Geotk
4.00-SNAPSHOT (or to Apache SIS 0.4-SNAPSHOT if you need only the
metadata part)?
Martin
[1] https://issues.apache.org/jira/browse/SIS-119
Le 12/07/13 18:27, Vincent Gaudissart a écrit :
> Dear Martin,
>
>> Apparently JAXB complains about the 'src' attribute not being a
>> text-like object. I'm a little bit surprised, because I though that JAXB
>> was mapping URI to String by itself. But just in case, did you tried to
>> change the type of the 'src' field from URI to String?
>>
>> Martin
> Unfortunately, this does not change anything.
>
> The next block is read perfectly.
> <gmd:graphicOverview>
> <gmd:MD_BrowseGraphic>
> <gmd:fileName>
>
> <gco:CharacterString>http://test.jpg</gco:CharacterString>
> </gmd:fileName>
> </gmd:MD_BrowseGraphic>
> </gmd:graphicOverview>
>
> But my file has this form:
> <gmd:graphicOverview>
> <gmd:MD_BrowseGraphic>
> <gmd:fileName>
> <gmx:FileName
> src="OVERVIEW.JPG">OVERVIEW</gmx:FileName>
> </gmd:fileName>
> <gmd:fileDescription>
> <mf:DG_BrowseGraphicType
> codeList="http://codelist.xml#DG_BrowseGraphicType"
> codeListValue="overview"
> codeSpace="CARGENE">Overview</mf:DG_BrowseGraphicType>
> </gmd:fileDescription>
> <gmd:fileType>
> <gmx:MimeFileType type="image/jpg">JPEG
> image</gmx:MimeFileType>
> </gmd:fileType>
> </gmd:MD_BrowseGraphic>
> </gmd:graphicOverview>
>
> I would find a way to read this block without changing anything in
> GeoToolkit, just adding the good classesand their adapter...
> unfortunately without success so far.
>
> Can you help me to read the block "gmx:FileName"? Next, I should be
> able to read other missing nodes (some Quality nodes)?
>
> Best regards,
>
> Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20130819/6dea9f14/attachment.html>
More information about the Geotoolkit
mailing list