Andrea Aime a écrit : > 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?
Direction EAST or WEST apply also to ProjectedCRS and GeocentricCRS (the later needs to be changed). Given the next step (add some amount), you may be better to search for any axis where CoordinateSystemAxis.getRangeMeaning() returns WARPAROUND, no matter the direction. > 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. Better add CordinateSystemAxis.getMaximum() - getMinimum(). > How does this sound? Any suggestion? > I guess this approach is going to become quite a bit more > complex with ND coverages, or not? Spanning the antimeridian is a problem that I had in mind for a while and which may have implications spreading in many places in the library. I didn't took the time to make a plan yet, so I don't really have a propal right now... Martin ------------------------------------------------------------------------- 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