Jesse Eichar a écrit :
> These reports are because of the email you sent about how to use  
> assertions.  So here's another place where it is directly affecting  
> me.  I guess it should be a IllegalArgumentException instead of an  
> assertion?
> 
>> java.lang.AssertionError: Ellipsoid:             WGS84
>> Source point:          00¡00.0'E 00¡00.0'N
>> Target point:          180¡00.0'E 00¡00.0'N
>> Azimuth:               00¡00.0'
>> Orthodromic distance:  20004016.5 m

It is a shortcomming in current implementation since the computation become
wrong at antipodal coordinates, but they were nothing warnings the user about
that (except the assertion which was a calculation consistency check, not an
argument check). But I admit that an argument check could have been added in
addition of the assertion for the antipodal case.

Checking right now if supporting the antipodal case would be simple enough...

        Martin

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to