/**
* Update the rect object with the coordinates of the visible area
* of the target image.
*/
private void _updateCompass() {
WorldCoordinateConverter wcs = _mainImageDisplay.getWCS();
if (wcs == null) {
_compass = null;
return;
}
_imageDisplay.setWCS(wcs);
double wcsw = wcs.getWidthInDeg();
double wcsh = wcs.getHeightInDeg();
double sizeInDeg = Math.min(wcsw, wcsh) / 4.;
// double equinox = wcs.getEquinox();
Point2D.Double center = wcs.getWCSCenter();
_north = new Point2D.Double(center.x, center.y);
_east = new Point2D.Double(center.x, center.y);
// check if at north or south pole, since that is a special case
if (90 - Math.abs(center.y) < wcsh) {