/** * _more_ * * @param stationLat _more_ * @param stationLon _more_ * @throws RemoteException _more_ * @throws VisADException _more_ */ protected void initLinePosition(float stationLat, float stationLon) throws VisADException, RemoteException { if (getVerticalAxisRange() == null) { setVerticalAxisRange(new Range(0, 20000)); } // get station location from the data coordinate transform LatLonPointImpl lp1 = Bearing.findPoint(stationLat, stationLon, 0, 150.0f, null); LatLonPointImpl lp2 = Bearing.findPoint(stationLat, stationLon, 180, 150.0f, null); startLocation = new EarthLocationTuple(lp2.getLatitude(), lp2.getLongitude(), 0.0); endLocation = new EarthLocationTuple(lp1.getLatitude(), lp1.getLongitude(), 0.0); }