Page 1 of 1

Converting longitude/latitude to world tile coordinates

Posted: Fri Jun 22, 2007 4:30 pm
by JADsHome
I am trying to find a way to convert a real world coordinate (longitude/latitude) to an MSTS grid coordinate. Is there some special formula (or tool ?) to do this ?

I found a formula here http://forums.uktrainsim.com/viewtopic. ... e+latitude but this only gives you the coordinate - need to get the correct tile as well !

Being a maths anti-boffin I can't work all this out for myself though :(
Reason I want to do this ? I need to be able to place an object at a real world coordinate rather than 'as good as' ! Need to be able to enter the x and z coordinates directly into the objects info box (or directly into the .w world file).

Can anyone help ? Please ?

Posted: Sat Jun 23, 2007 1:46 am
by steam4me
Route Riter | Misc Options | Convert Tile Names

Regards

Yuri, webmaster
_______________________________

steam4me
Freeware Australian MSTS Add-Ons & Tutorials
team-ALCO retail
Quality Australian payware MSTS Add-Ons
team-ALCO forum
team-ALCO information and forum
_______________________________

Posted: Sat Jun 23, 2007 10:32 am
by JADsHome
Thanks for your reply Yuri - once again the MSTS Swiss Army Knife that is Route Riter proves its already well known potential :) BUT only half useful - this gives me the tile and coords BUT I want to be able to place an item at a precise location within that tile. So for example given the following example...

Code: Select all

	Static (
		UiD ( 1 )
		FileName ( tree1.s )
		StaticFlags ( 00002000 )
		Position ( -15.4654 34.5947 899.522 )
		QDirection ( 0 0 0 1 )
		VDbId ( 0 )
	)
How could I determine the Position (x and z only required) to map to an exact longitude and latitude ?

Posted: Sun Jun 24, 2007 10:28 am
by fadedGlory
Use a marker?

fG