Jody Garnett a écrit :
> I am trying to understand from your original email what these departures
> are ...
> a) Changing from many "rectifiedGridDomain/RectifiedGrid/axisName[x]" to
> "rectifiedGridDomain/RectifiedGrid/axis/axisName[x]"
> 
> What is the reason for these two changes? Is it an api limitation on our
> side? Can we change the IIOMetadataFormat to meet our needs?

This is not a limitation on our side, but a limitation on J2SE side. I believe
that it is an intentional limitation in order to keep the API relatively simple
for Image I/O needs.

The limitation is that a node can contains either: no repeated element at all,
or only a single element repeated an arbitrary amount of time. In OGC
specification, we have a mix of both. The node RectifiedGrid contains various
child, including an arbitrary amount of axisName. If we want to comply to
IIOMetadataFormat API, we can not repeat axisName there. We need to create a
child node (e.g. "axes") which contains only a single child ("axisName")
repeated an arbitrary amount of time.

As mentioned by Simone, we can violate IIOMetadataFormat contract and it seems
to work anyway. But I would prefers to follow the contract if we can.



> Now that I understand the context of your email better I am not sure if
> you should simplify - are we expecting any other applications
> the be able to read the headers we are writing?

Yes exactly. But either we violate OGC specification, or either with violate
J2SE IIOMetadataFormat contract. We can not comply to both. Other applications
may expect a IIOMetadataFormat compliant object...

        Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to