too big?

martinvk

since 10 Aug 2002
Created a new map in transDem that resulted in a GRD file of 4,194,405 kB. I imported it in to TRS19 Platimum without any errors but every time I try to open it, it CTD.
Is my 16 GB of RAM not enough? OR can Trainz not support such a large map? What then is the map size limit?
 
How many miles are you trying to make as the DEM ? I have merged many large DEM's And had one made that were 2 gigs or larger . And never had any issues . But my works no where finished . But there are serval DEM's and routes that cross entire States .

Matt
 
If it's only a few baseboards wide but really long, the total size is probably not too big. BUT I'm trying to work on an area. Since there are large parts that are water, They would need to be trimmed. I thought I understood that transDEM can do that before it creates a GRD file. Will have to investigate that.

Tried a less ambitious GRD file and at only 1,321,103 kB and it imported and opened OK. So that is still an acceptable size.
 
Increase your virtual memory on your system to at least 2x what your system RAM is.

For 16GB of ram set your page file to be 32 GB. If you have more than one drive, set an equal size of virtual memory on each drive. When setting up the virtual memory, set both the start and the end size to be the same fixed size.

Windows its self is a bit on the pale side when it comes to virtual memory. The default works fine for casual gaming and web browsing, but when it comes to heavy use, such as TransDEM and Trainzing, it needs a bit of help.
 
I've done one that was so large TransDem errored out. I had to do it in 2 parts and merge them together, so it's not too large for Trainz at over 1,500 baseboards. Slowly knocking that number down, but I think John might be on the right track regarding virtual memory.
 
Bumped the page file up to 32 GB on all drives but it still CTD when attempting to open the larger (4.19 GB) GRD file.
Interesting that the file size in CM is actually much smaller that some of my other routes. Only 110.9 kB. So is it the size of the GRD file or could there be something in the DEM generated file that causes a CTD?
Will try 56 GB. If that doesn't work, I'll have to scale back my ambition.
After almost four hours, no CTD but also it still has not opened. Just the opening screen after selecting edit the route and the four little squares flashing beside the 2019 logo.

Well that ended badly. After 4.5 hours there was a very brief flash and then a CTD. Time to retire the more ambitious plans.Will also have to investigate if I can trim the DEM in TransDEM before exporting.

Found it. Draw a box around the part that needs to be deleted. Then in the Tools menu, select Erase DEM Points. Click inside the box that was drawn and select the third option, All inside mask/region. Voilà, it's gone.
 
Last edited:
Bumped the page file up to 32 GB on all drives but it still CTD when attempting to open the larger (4.19 GB) GRD file.
Interesting that the file size in CM is actually much smaller that some of my other routes. Only 110.9 kB. So is it the size of the GRD file or could there be something in the DEM generated file that causes a CTD?
Will try 56 GB. If that doesn't work, I'll have to scale back my ambition.
After almost four hours, no CTD but also it still has not opened. Just the opening screen after selecting edit the route and the four little squares flashing beside the 2019 logo.

Well that ended badly. After 4.5 hours there was a very brief flash and then a CTD. Time to retire the more ambitious plans.Will also have to investigate if I can trim the DEM in TransDEM before exporting.

Your file is probably just too big. Not physically, mind you, but geometry-wise perhaps. The system overall, not just the memory is running out of resources including your video card where a lot of TRS19 stuff is done these days while the data is being loaded in at once.

You might try carving up the route and loading in chunks. I know it's a pain, but using TransDEM you can create a part-A route, part-B route, etc., then try merging them together in TRS19 and see what happens.
 
Might have to give the divide and merge process a deep think.

Erasing DEM points just makes flat baseboards, it doesn't stop trandDEM from creating an empty baseboard. I wonder if the multi-selection feature in Surveyor 2.0 includes selecting multiple baseboard for deletion?
 
Absolutely you can and should trim the DEM before exporting to Trainz. Here is how:

Once the dem is in TranzDEM, use the simple route editor (under the route menu) to draw polylines approximately where tracks will be to tell the software to only create Trainz baseboards within X baseboards (I usually enter 5) either side of the polyline.

Also, be sure also to create 10m grid baseboards, not 5m grid. Once the route is in Trainz, you can then change baseboards to 5m only where needed for better texturing.

It's much easier to avoid creating unneeded baseboards in TransDEM than it is deleting baseboards in Trainz.
 
Last edited:
My own route currently resides at some 3552 baseboards so I don't think size is the problem, Besides TRS2019 splits it down into piecemeal chunks once you start work on it 1 chunk to a baseboard so there's never a large amount in memory at once. I did find things worked better importing from Transdem to Trainz with more memory, I run 32GB and never looked back, I see this as the probable cause of your issues.

Martyn
 
Absolutely you can and should trim the DEM before exporting to Trainz. Here is how:

Once the dem is in TranzDEM, use the simple route editor (under the route menu) to draw polylines approximately where tracks will be to tell the software to only create Trainz baseboards within X baseboards (I usually enter 5) either side of the polyline.
I would but while the DEM is real, the design will be fictional so I don't know yet where I'll be placing tracks, roads, etc.

A...

It's much easier to avoid creating unneeded baseboards in TransDEM than it is deleting baseboards in Trainz.
hope that is resolved in some future upgrade.
 
Absolutely you can and should trim the DEM before exporting to Trainz. Here is how:

Once the dem is in TranzDEM, use the simple route editor (under the route menu) to draw polylines approximately where tracks will be to tell the software to only create Trainz baseboards within X baseboards (I usually enter 5) either side of the polyline.

Also, be sure also to create 10m grid baseboards, not 5m grid. Once the route is in Trainz, you can then change baseboards to 5m only where needed for better texturing.

It's much easier to avoid creating unneeded baseboards in TransDEM than it is deleting baseboards in Trainz.

I agree with the 10m suggestion as it should give you a smaller gnd file size. And I strongly suggest the route editor whether you draw it in TransDem or as I do making my own cad drawings and import the route data from them. But note if you are using TRS19 the gnd file you get is a single gnd file in TANE SP1 format. When you bring it into TRS19 it will be split into 1000's of gnd files when you 1st edit it - 1 per baseboard as Mutton says plus 1 extra.

My route statistics are:
# Trainz Baseboards total = 38640
# actually created Trainz Baseboards after filtering = 4092
The gnd file from Transdem, exported for an older version of Trainz and 10m grid, is about 198,000KB. In TRS19 I get 4093 gnd files about 161,000KB total but the file for each baseboard is only 41KB. If I used the unfiltered map I'd be looking at around a 2 GB gnd file - about half the size you're working with.

If you can get topo maps of the area - in the US most everything is available digital nowadays and georeferenced so you can load the raster topos into TransDem and design a rather crude route using TransDem's builtin route editor using the topos as background. Save the route (vector data) when satisfied with it and then load it back in after you load the dem data into TransDem. You can filter the route based on that specifying as many baseboards each side of the track line as you think is necessary. I suggest loading the georeferenced topos without the DEM because it takes a lot less memory but you can have the dem and topos loaded when you used the route editor. Just make sure to save the route for future use.

If you're unsure of certain areas just add in some polylines with the route editor and you'll get additional baseboards exported in that area. I'd start small with 3 or 4 as the filter width to keep the exported size down. You can also export the route vector data you created as track splines. It probably won't be exactly what you wanted but can give a ball park feeling of whether the route will work and where changes are necessary. I suspect it may be too crude since it's main purpose is to filter out unwanted baseboards. If you have some special "track" splines that you use as tools in track laying - I have some I use to help in setting alignments for grading - you can export them as the track for your "trial exports".

You can just paint the topos onto the terrain along with the track route you drew in - much better than the old Tiger lines we used to use in US both amount of info and accuracy. Also much less memory intensive that the 2D or 3D tiles you could make from the topo maps. You can set a larger width and use 5m grid near the track line for the final export when you're satisfied you got all the areas included. If you don't want TD to export track splines for the final DEM you can have it paint the terrain to define the route based on the vector data you created to filter the route or even export map tiles in selected areas.

You don't have to create the whole route at once with TransDem. You can break it up into several smaller sections loading just a few topo maps into TD and design the smaller route sections in the same way. Export the smaller sections as Trainz routes and check them out individually and make changes to the track route(s) as necessary with TransDem's route editor. Once you have the all baseboard areas you need as several separate track routes you can create a composite route by loading all the smaller saved route data into TransDem over your large DEM and use the composite route to filter the baseboards and export as 1 large map. No need to merge the smaller maps in Surveyor unless that's something you want to do - maybe working on the separate smaller routes in Surveyor would be easier for some reason.

Just a thought,

Bob Pearson

Edited a few points.
 
Last edited:
Back
Top