home *** CD-ROM | disk | FTP | other *** search
- procedure disp_latlon(lat,lon : real);
- {$I ddtodms.pas }
-
- var
- ch : char;
- sdlat, smlat, sslat,
- sdlon, smlon, sslon, map : string;
- dlat, dlon, mlat, mlon : longint;
- dlat1, dlon1, mlat1, mlon1 : integer;
- slat, slon : real;
-
- begin
- ddtodms(lat,dlat,mlat,slat);
- dlat1 := dlat;
- mlat1 := mlat;
- str(dlat1,sdlat);
- str(mlat1,smlat);
- str(slat:6:2,sslat);
- ddtodms(lon,dlon,mlon,slon);
- dlon1 := dlon;
- mlon1 := mlon;
- str(dlon1,sdlon);
- str(mlon1,smlon);
- str(slon:6:2,sslon);
- setviewport(0,340,639,349,true);
- clearviewport;
- setviewport(0,0,639,349,true);
- outtextxy(3,342,'AREA Around LAT = '+sdlat+' '+smlat+sslat+' LON = '+sdlon+' '+smlon+sslon );
-
- end;