---From the website http://www.ngs.noaa.gov/PC_PROD/XYZWIN/, I downloaded a ZIP'ed archive that includes the C source code, and all documentation.
---make xyz2llh
(remove the *.o if they exist, then compile the code)
-- test with ./run3.csh, ./run2.csh and ./run1.csh. It should work
Note:
0) ./xyz2llh
xyz2llh(1.5 02/02/07): Converts X Y Z to lat, lon and ellipsoid hgt
Usage: xyz2llh X Y Z
options:
-d print deg min sec rather than decimal degrees.
-h prints this message.
-r = input coordinates are lat, lon, hgt,
output coordinates will be X, Y, Z.
-w longitudes are west rather than east longitude.
1) example:
./xyz2llh -w -5246403.93847269, -3077285.30866971, -1913839.28749343
results: lat=-17.5770292180 long=149.6061879567 hight=99.81636
Aucun commentaire:
Enregistrer un commentaire