Page 1 of 2
Export to Trainz Question
Posted: 02 Aug 2012 05:51
by Jib228
So I am new to TransDEM, but have all ready successfully made one route using it and the Google Earth Images as ground textures tutorial provided by ModelerMJ. But that was a small 6 mile route that easily exported as a a rectangle when I high lighted just the area I wanted to make a route out off.
For my next project though I am doing a much larger route, and thus a much larger DEM. My question is this, is there a way to select only the part of the DEM that I am making to export?
As it is, when I export to a route, all the black areas, and parts of the DEM's I dont want included. Heres what my DEM looks like so far:
I only want to export the colored areas, and not the black zones. Is there a way to remove that? (Note, I have yet to add my GEOrefed Google Earth images as I haven't gotten to that step in my processes yet.)
Any help is appreciated.
Re: Export to Trainz Question
Posted: 02 Aug 2012 16:52
by geophil
Jib228 wrote:I only want to export the colored areas, and not the black zones. Is there a way to remove that?
Yes. It's called the Route Filter and it's based on vector data. You need the course of your route as a polyline. Then, during export, you tell TransDEM how many baseboards TransDEM shall create on either side of your route.
You will normally create the vector data yourself, by drawing with the built-in Simple Route Editor. For this, you will need a georeferenced map in addition to the DEM and then trace the route on the map.
Re: Export to Trainz Question
Posted: 05 Aug 2012 06:02
by Jib228
Thanks, that works!
But next question, when I go to export into Trainz, part of my route is cut off.
Here's my route in TansDEM:
Every thing on the right side of the right most horizontal pink line is left out. Now part of this route is a reuse of my first attempt that building a route trough TransDEM that worked just fine. (Its the branch line in the middle)
Any advice, or what am I doing wrong?
Re: Export to Trainz Question
Posted: 05 Aug 2012 10:16
by geophil
Jib228 wrote:Every thing on the right side of the right most horizontal pink line is left out.
TransDEM writes an info file when exporting to Trainz. It resides in the route export folder, it's plain text and it's named <your route>_TransDEM_info.txt, like this example:
Code: Select all
TransDEM Trainz Export --- © 2006-2011 Roland Ziegler
Geodetic Datum = WGS84
UTMZone = 32U
UTM Southwest Corner Easting = 368240
UTM Southwest Corner Northing = 5668560
UTM Northeast Corner Easting = 372560
UTM Northeast Corner Northing = 5671440
Extension East-West = 4.320 km
Extension North-South = 2.880 km
Trainz World Origin = N 51° 10,203' E 7° 09,081'
Baseboard UTM Grid Offset: x = 0 m, y = 0 m
# Trainz Baseboards East-West = 6
# Trainz Baseboards North-South = 4
# Trainz Baseboards total = 24
# actually created Trainz Baseboards after filtering = 24
Actual Elevation Range Minimum = 97 m
Actual Elevation Range Maximum = 311 m
Check "UTM Northeast Corner Easting". Does it go beyond "300000" (the easting value of the second grid line in your screenshot)?
Re: Export to Trainz Question
Posted: 05 Aug 2012 14:11
by Jib228
Yes, yes it dose. This is exactly what my file says for UTM Northeast Corner Easting:
UTM Northeast Corner Easting = 304880
It may not be needed, but heres what the rest of the file looks like:
TransDEM Trainz Export --- © 2006-2011 Roland Ziegler
Geodetic Datum = WGS84
UTMZone = 17T
UTM Southwest Corner Easting = 280400
UTM Southwest Corner Northing = 4681440
UTM Northeast Corner Easting = 304880
UTM Northeast Corner Northing = 4777200
Extension East-West = 24.480 km
Extension North-South = 95.760 km
Trainz World Origin = N 42° 41.216' W 83° 35.824'
Baseboard UTM Grid Offset: x = 0 m, y = 0 m
# Trainz Baseboards East-West = 34
# Trainz Baseboards North-South = 133
# Trainz Baseboards total = 4522
# actually created Trainz Baseboards after filtering = 931
# hereof in 5 m grid = 931
Actual Elevation Range Minimum = 200 m
Actual Elevation Range Maximum = 347 m
Re: Export to Trainz Question
Posted: 06 Aug 2012 08:51
by geophil
According to this info file, the generated Trainz route extends 4880 m eastward from the second grid line at 300,000, about 3 mi. (UTM coordinates are in metres.) The grid squares on your screenshot are 20 x 20 km. This would fit. Therefore, from the figures, it looks okay. But you say, that's not the case.
There could be problems with memory exhaustion which in rare cases might lead to a premature termination of the export task. Your module, however, does not seem to be overly complex. What DEM resolution are you using? Your overlays appear to be aerial images. How many are there? What are the pixel dimensions?
(As a side note: Aerial images don't work well as a Trainz ground texture, not even with the 5m terrain grid. You'd better go for the 1:24k topo map, which you can acquire via WMS, USGS National Map.)
Re: Export to Trainz Question
Posted: 07 Aug 2012 04:59
by Jib228
I followed steamboateng's tutorial on how to make a DEM and used 1/3arc data. I then used ModelerMJ's tutorial on how to use Google Earth images as ground textures, hence why they are there. I used 31 images over laid on the route.
It appears as the TransDEM is cutting off my route cleanly at that line.
Re: Export to Trainz Question
Posted: 07 Aug 2012 11:35
by geophil
If there were memory issues I would expect TransDEM to pop up an error message, however, there are a few exceptions, where TransDEM can't detect this early enough.
1/3 arc sec for your project area of about 100 x 25 km at 10m resolution would require approximately 100 MB, if my calculation is correct. During export TransDEM TransDEM will allocate much more memory temporarily. Nonetheless, I wouldn't expect it to exceed available virtual memory here.
31 images, in compressed state, and depending on pixel dimensions, should also fit.
Now, to make sure, it's not a memory exhaustion problem, try to export only a smaller part of the route, using a rectangular mask. If that succeeds, try with another bigger part.
Re: Export to Trainz Question
Posted: 07 Aug 2012 23:51
by Jib228
I tried that and I am able to export any part of the route that I select in its whole. But if I try to export the whole route, weather marked with the rectangular mask or not it stops right at the pink line. I can export the whole lower half of the DEM with out losing any thing.
If its a computer memory issue, I have 6 gigs of ram. Unless TransDEM is having the issue.
I am still trying different things. So far I can export up to half of the route with out problems.
Re: Export to Trainz Question
Posted: 08 Aug 2012 20:10
by geophil
Well, you should be able to seamlessly merge modules in Trainz Surveyor later. You may be aware of the Trainz baseboards created by TransDEM being bound to UTM coordinates. The info file, already dealt with above, and the top area of the TransDEM export dialog with its export region controls should assist you in finding the proper module border.