Re: File format question
Vik Kumar <[email protected]> Wed, 22 Mar 2006 21:48:41 +0900
| Newsgroups | gmane.games.flightgear.terragear.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0232967698== Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Hi, Thanks for the pointers Ralf and Paul; Ralf Gerlich wrote: >It means that you need to project them to WGS84 (World Geodetic System >of 1984), which is the datum used by TerraGear and FlightGear. This >could be done using a small perl script and proj4. > > I played around with proj4 a bit, and I'm hoping I did this correct. I picked a random coordinate from the data I made, and passed it thro' cs2cs: random data: 502429.000000, 127637.000000, 75 converted the long and lat to degrees by /3600: 139.56361111111113 35.454722222222223 piped them thro cs2cs: $ echo "139.56361111111113 35.454722222222223"|cs2cs +proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs 139d33'49"E 35d27'17"N 0.000 Converted them back to degrees: (49/60 + 33)/60 + 139 = 139.5636111111111 and (17/60 + 27)/60 + 35 = 35.454722222222223 And I seem to get the same numbers as the original data (well, close enough). Does this mean that my data is already in WGS84? Or did I do something wrong with the cs2cs parameters? From here, I guess I need to somehow convert the data to a USGS DEM format so the TerraGear tools can do it's magic. Tho, I haven't figured out an easy way to do that yet... Cheers, Vik --===============0232967698== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Terragear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/terragear-devel 2f585eeea02e2c79d7b1d8c4963bae2d --===============0232967698==--