Hi,
I'm looking for a double check for an issue I have with the wcs 1.1.1 
specification.  The specification states that GetCoverage can be
performed with a bbox that spans the antimeridian and defined like this:

"A Bounding Box defined in a geographic CRS (or a WGS84BoundingBox)
whose LowerCorner longitude is greater than that of its UpperCorner 
shall describe a region that crosses the longitude discontinuity"

Now, given the axis order issues, I'll first have to determine
where longitude is. Looking at the code it seems the way is to
scan the coordinate system axis and look for the one whose
direction is EAST. Is that correct?

Now, once I determined it, I'll just add 360 to the lower coordinate
to have a bbox that can be accepted by the envelope constructors.
Yet, this is not over.

Consider a case where I have a grid coverage that spans -180,180
longitude and a wcs requests asking for the bbox 175,10,-175,20.
I recognize the antimeridian crossing case and I turn it into
175,10,185,20. Yet, it's not over because I have to grab two
different regions from the original coverage and merge them togheter.

I've looked into the coverage processing package but I've found no
mosaicking operation. Since I don't need a full fledged mosaic I
guess I'll have to
* crop the two regions from the original coverage
* mosaic togheter the two rendered images
* reconstruct the grid geometry so that it's seamless (which
   means, using the world to grid transform of the cropped image
   that will end on the lower longitude side and expanding the
   grid envelope)
* rebuild the final coverage keeping the same categories

How does this sound? Any suggestion?
I guess this approach is going to become quite a bit more
complex with ND coverages, or not?

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to