![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
9.0 |
Assignee:
|
Andrea Aime
|
Components:
|
referencing |
Created:
|
29/Mar/13 4:20 PM
|
Description:
|
Attempts to transform the point below to google mercator will trigger an exception when assertions are enabled. If the MapProjection.orthodromicDistance() method is exposed the following test will fail when the distance from the point "src" to itself should clearly be zero but is not.
public void testOrthodromicDistance() throws FactoryException
{
MapProjection mt = createGoogleMercator();
// Test some small distances.
Point2D src = "" Point2D.Double(48.38824840214492, -14.967538330290973);
assertEquals(0.0, mt.orthodromicDistance(src, src), 0.000000001);
}
I will provide a patch for the problem shortly. I am just filing this ticket now to give myself something to reference in internal discussions.
|
Environment:
|
Java 6, Ubuntu 64 bit.
|
Project:
|
GeoTools
|
Priority:
|
Minor
|
Reporter:
|
Frank Warmerdam
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel