TransDEM Forum

TransDEM News, Support, Hints and Resources
It is currently 27 Apr 2024 23:56

All times are UTC + 1 hour




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 02 Aug 2012 05:51 
Offline

Joined: 30 Jul 2012 01:44
Posts: 6
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:

Image

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.


Top
 Profile  
 
PostPosted: 02 Aug 2012 16:52 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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.


Top
 Profile  
 
PostPosted: 05 Aug 2012 06:02 
Offline

Joined: 30 Jul 2012 01:44
Posts: 6
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:

Image

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?


Top
 Profile  
 
PostPosted: 05 Aug 2012 10:16 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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:
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)?


Top
 Profile  
 
PostPosted: 05 Aug 2012 14:11 
Offline

Joined: 30 Jul 2012 01:44
Posts: 6
Yes, yes it dose. This is exactly what my file says for UTM Northeast Corner Easting:

Quote:
UTM Northeast Corner Easting = 304880



It may not be needed, but heres what the rest of the file looks like:

Quote:
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


Top
 Profile  
 
PostPosted: 06 Aug 2012 08:51 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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.)


Top
 Profile  
 
PostPosted: 07 Aug 2012 04:59 
Offline

Joined: 30 Jul 2012 01:44
Posts: 6
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.


Top
 Profile  
 
PostPosted: 07 Aug 2012 11:35 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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.


Top
 Profile  
 
PostPosted: 07 Aug 2012 23:51 
Offline

Joined: 30 Jul 2012 01:44
Posts: 6
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.


Top
 Profile  
 
PostPosted: 08 Aug 2012 20:10 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Imprint & Privacy

Powered by phpBB® Forum Software © phpBB Group