Converting longitude/latitude to world tile coordinates

The MSTS 1 Route Editor can be a beast to use, but it's capable of some amazing results, here you can talk with the wizards that are building some of the fantastic routes available and learn how to make your own.

Moderator: Moderators

Locked
User avatar
JADsHome
Well Established Forum Member
Posts: 537
Joined: Sat Aug 02, 2003 10:56 am
Location: Kent, UK
Contact:

Converting longitude/latitude to world tile coordinates

Post 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 ?
User avatar
steam4me
Well Established Forum Member
Posts: 583
Joined: Thu Dec 06, 2001 12:00 am
Location: Melbourne, Victoria, Australia
Contact:

Post 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
_______________________________
User avatar
JADsHome
Well Established Forum Member
Posts: 537
Joined: Sat Aug 02, 2003 10:56 am
Location: Kent, UK
Contact:

Post 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 ?
User avatar
fadedGlory
Well Established Forum Member
Posts: 746
Joined: Sun May 26, 2002 12:00 am
Location: The Modeller's Annex to the Secret Routebuilder's Castle

Post by fadedGlory »

Use a marker?

fG
Currently laying track on the East Suffolk Railway
Locked

Return to “[MSTS1] Route Building”