public class TestCoordinateUtility extends AbstractCoordinateTestCase
CoordinateUtility
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestCoordinateUtility() |
TestCoordinateUtility(String arg0) |
Modifier and Type | Method and Description |
---|---|
void |
test_approxMetersLongitude()
Cross check for approximate meters per second of longitude at some known
latitudes on Earth.
|
void |
test_distance_noDistance01()
A test with two points that are exactly the same.
|
void |
test_distance_noDistance02() |
void |
test_distance_washingtonDC_greensboroNC()
Note: The road distance by the most direct route (US 29) between
Greensboro, NC and Washington, DC is 299 miles.
|
void |
test_metersLatitude()
Cross check for some constants (on Earth).
|
void |
test_realMetersLongitude()
Cross check for meters per unit of longitude at some known latitudes on
Earth.
|
void |
test_toDegrees() |
void |
test_toRadians() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, round, round1, round2, round5
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
public TestCoordinateUtility()
public TestCoordinateUtility(String arg0)
arg0
- public void test_toRadians()
public void test_toDegrees()
public void test_metersLatitude()
public void test_approxMetersLongitude() throws ParseException
Note: The computed values are rounded off to integers (zero digits after the decimal) since we are comparing to ground truth actual meters per second of longitude but we are computing using a formula that does not adjust for the flattening of the Earth. This makes the test comparisons accurate to within 1m, which is sufficient to verify the calculation.
ParseException
public void test_realMetersLongitude() throws ParseException
ParseException
public void test_distance_noDistance01() throws ParseException
ParseException
public void test_distance_noDistance02() throws ParseException
ParseException
public void test_distance_washingtonDC_greensboroNC() throws ParseException
36.0726355 -79.7919754 360421N 0794731W Greensboro North Carolina 38.8951118 -77.0363658 385342N 0770211W Washington West (Washington, DC)
ParseException
http://geonames.usgs.gov/
,
http://geonames.usgs.gov/pls/gnispublic/f?p=181:1:16460812721599042146
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.