final DefaultGeodeticDatum datum = new DefaultGeodeticDatum(properties,
WGS72.getEllipsoid(), WGS72.getPrimeMeridian());
/*
* Search for BursaWolfParameters around the North Sea area.
*/
final DefaultGeographicBoundingBox areaOfInterest = new DefaultGeographicBoundingBox(-2, 8, 55, 60);
final DefaultExtent extent = new DefaultExtent("Around the North Sea", areaOfInterest, null, null);
Matrix matrix = datum.getPositionVectorTransformation(NAD83, extent);
assertNull("No BursaWolfParameters for NAD83", matrix);
matrix = datum.getPositionVectorTransformation(WGS84, extent);
assertNotNull("BursaWolfParameters for WGS84", matrix);
checkTransformationSignature(local, matrix, 0);
/*
* Expand the area of interest to something greater than North Sea, and test again.
*/
areaOfInterest.setWestBoundLongitude(-8);
matrix = datum.getPositionVectorTransformation(WGS84, extent);
assertNotNull("BursaWolfParameters for WGS84", matrix);
checkTransformationSignature(global, matrix, 0);
/*
* Search in the reverse direction.