Railworks convert tile coordinates to latitude longitude

Forum for discussing Train Simulator 2016

Railworks convert tile coordinates to latitude longitude

Unread postby rscarter » Fri Mar 11, 2016 3:57 pm

Does anybody know how to convert tile coordinates to latitude and longitude.

For example, a siding is on tile -110 87 (in track tile -000100+000087)

On this tile, it occupies x and y coordinates 286.422 and 481.438

This data is from the tracks.bin file.

Thanks for any help.
rscarter
 

Re: Railworks convert tile coordinates to latitude longitude

Unread postby buzz456 » Fri Mar 11, 2016 4:14 pm

I know if you go there in the world editor it tells you the lat long up there in the box at the top. That's how I did all the route markers for the MRL.
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20935
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: Railworks convert tile coordinates to latitude longitude

Unread postby Bananarama » Fri Mar 11, 2016 4:17 pm

rscarter wrote:Does anybody know how to convert tile coordinates to latitude and longitude.

For example, a siding is on tile -110 87 (in track tile -000100+000087)

On this tile, it occupies x and y coordinates 286.422 and 481.438

This data is from the tracks.bin file.

Thanks for any help.

Use the tile number, in this case it begins with a "-" indicating it's in the northern portion of the route, and the "+" for the second value means it's in the western section (100km and 87km). The second set of numbers you wrote (x, y) are in meters.

Open the RouteProperties.xml file for the route, and the lat/lon is given. Add the above tile numbers: 100km west, and 87km (you can add the other values as decimals) using the following calculator: http://www.nhc.noaa.gov/gccalc.shtml

There are plenty of other browser calculators on the 'net - Google is your friend. :D
Cheers!
Marc - 3DTrains

Image
User avatar
Bananarama
 
Posts: 2749
Joined: Sat Feb 14, 2009 1:17 am
Location: Another Planet

Re: Railworks convert tile coordinates to latitude longitude

Unread postby rscarter » Mon Mar 14, 2016 9:54 am

Thanks Marc. I have created a FoxPro program to read the tracks.bin file and create a list of all sidings in a route. It creates a .pdf file that shows the siding name and the internal Display Name used internally by TS201+ in scenarios. But the data in the tracks.bin file shows the tile and offset of the siding that I need to convert to latitude and longitude in order to use the utility at the top of the screen to go to a particular latitude and longitude. What is interesting is that some of the display names are so different from the siding name. For example in the P&LE, Siding "Inspection/departure lead east track 3" has a display name of "Passing track 3 cont." Sometimes the numbers are even different. Although it is not an issue in TS201+, when there are duplicates it causes problems when running scenarios.

I think this is a good utility for route builders to check sidings.

I know that these are all offsets from the base latitude and longitude of a route. I'll give your suggestion for converting these offsets to Lat and Lon a try. Thanks.

Dick
rscarter
 


Return to TS 2016

Who is online

Users browsing this forum: No registered users and 1 guest