Reminder: for a background of what IIOMetadata are, see:
http://docs.codehaus.org/display/GEOTOOLS/J2SE+IIOMetadata

I'm in process of updating the GeographicMetadataFormat class:
http://svn.geotools.org/geotools/branches/2.4.x/modules/unsupported/coverageio/src/main/java/org/geotools/image/io/metadata/GeographicMetadataFormat.java

in order to make it closer to "GML in JPEG 2000" specification. However the
javax.imageio.metadata.IIOMetadataFormat interface is a kind of simplified XML
API - its look like XML, but tuned for the simple Image I/O needs.

* If I'm understanding right, we have to drop "gml:" prefix because
  IIOMetadataNode doesn't support namespace.

* We have to regroup "axisName" under an "axes" node, because
  IIOMetadataFormat require that repeated elements appears under
  single node. Same for "offserVectors". In other words, the
  following OGC specification:

   +-- rectifiedGridDomain
         +-- RectifiedGrid
               +-- limits
               |     +-- GridEnvelope
               |           +-- low
               |           +-- high
               +-- axisName[0]
               +-- ...
               +-- axisName[n]
               +-- origin
               |     +-- Point
               |           +-- coordinates
               +-- offsetVector[0]
               +-- ...
               +-- offsetVector[n]

  needs to be changed like that:

   +-- rectifiedGridDomain
         +-- RectifiedGrid
               +-- limits
               |     +-- GridEnvelope
               |           +-- low
               |           +-- high
               +-- axes
               |     +-- axisName[0]
               |     +-- ...
               |     +-- axisName[n]
               +-- origin
               |     +-- Point
               |           +-- coordinates
               +-- offsetVectors
                     +-- offsetVector[0]
                     +-- ...
                     +-- offsetVector[n]


Since IIOMetadataFormat is going to looks like "GML in JPEG 2000" without being
exactly that, I wonder if we should apply some simplifcations. OGC seems to
always store XML data using two nodes: one for a "property" name (begining with
a lower case), and an other node with the property type (begining with a upper
case). Example:

   +--boundedBy
        +-- Envelope
              +-- lowerCorner
              +-- upperCorner

   +-- limits
         +-- GridEnvelope
               +-- low
               +-- high

   +-- origin
         +-- Point
               +-- coordinates

As far as I can see from the specification, it seems to me that we will never
have anything else than "Envelope" under "boundedBy", or "GridEnvelope" under
"limits", etc. The only purpose of "Envelope", "GridEnvelope", etc. seems to
specify the type of "boundedBy", "limits", etc. properties. Should we simplify
as below?

   +--boundedBy
        +-- lowerCorner
        +-- upperCorner

   +-- limits
         +-- low
         +-- high

   +-- origin
         +-- coordinates



        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