TransDEM Forum

TransDEM News, Support, Hints and Resources
It is currently 29 Apr 2024 08:43

All times are UTC + 1 hour




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Assistance shp-file
PostPosted: 23 May 2011 10:49 
Offline

Joined: 05 Feb 2011 13:18
Posts: 104
Hello to All,

Would someone give me some assistance with the following :

1) Verify a route ( shp.file ) within Transdem
2) Give me the result of your test.

Thank you for your cooperation

Best regards

Kurt

ps : URL of SHP file = http://dl.dropbox.com/u/19070177/railways84.shp
If you need the DEM-file ( = 79MB ) - http://dl.dropbox.com/u/19070177/N51_50 ... rged_t.dem
I also have a MKR-file ( not correctly positioned - but with this file I have no problem viewing it in Transdem)


Top
 Profile  
 
 Post subject: Re: Assistance shp-file
PostPosted: 24 May 2011 11:34 
Offline

Joined: 30 Jan 2011 13:03
Posts: 170
G'day Kurt,

I get the following result upon any attempt to load the *.shp file..

"Errors reading file "railways82.shp"

...although the DEM file downloaded and displayed without issue...

...I can only conclude that there is some issue with the *.shp file, making it unreadable in TransDEM...

Jerker {:)}


Top
 Profile  
 
 Post subject: Re: Assistance shp-file
PostPosted: 24 May 2011 12:51 
Offline

Joined: 05 Feb 2011 13:18
Posts: 104
Hello Jerker,

Thank you for your assistance - much appreciated. :D

Will try to figure out what is wrong with the shp.file

Best regards

Kurt


Top
 Profile  
 
 Post subject: Re: Assistance shp-file
PostPosted: 24 May 2011 13:31 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
The ESRI Shape format requires two files: .shp and .shx. Perhaps the .shx is missing?


Top
 Profile  
 
 Post subject: Re: Assistance shp-file
PostPosted: 24 May 2011 21:03 
Offline

Joined: 05 Feb 2011 13:18
Posts: 104
Hello,

Here are the 4 files

http://dl.dropbox.com/u/19070177/railways.shp
http://dl.dropbox.com/u/19070177/railways.shx
http://dl.dropbox.com/u/19070177/railways.dbf
http://dl.dropbox.com/u/19070177/railways.prj

Best regards

Kurt


Top
 Profile  
 
 Post subject: Re: Assistance shp-file
PostPosted: 25 May 2011 08:36 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
Hello Kurt,

this looks good now.

Even the Kusttram is there. :D


Top
 Profile  
 
 Post subject: Re: Assistance shp-file
PostPosted: 25 May 2011 11:48 
Offline

Joined: 05 Feb 2011 13:18
Posts: 104
Hello Geophil,

I also managed to get the shp-file into Transdem viewable. :D
I noticed that the shp-file needs to be corrected - also a new item for me. I didn't create the files attached in my previous reply to this thread
As I didn't knew that the kusttramroute was in the shp-file, I already had made a creation of the Kusttramroute (Depanne to Knokke ) via Google Earth. However, I have to review this file, because I only used points and no lines.

I also had contact with NGI ( National Geographic institute - Brussel ). The NGI can deliver ( price unknown ) a digital card of Belgium ( in non-compressed tiff format ). With the tiff-file there is also a tfw-file, which allows georeference of the tiff-file. I probably will need to visit the NGI, to have a better picture of the situation ( :? )and also to have a look if other possibilities are available.

Wth Gimp ( open source ) I tried merging a national map of Belgium and the complete Belgian railroad. ( pictures in PNG-format non-geographically placed ). No success up to now.

I will also try to import the belgian railroad picture into Google earth. Also not quite easy to do, if you are non-experienced user. :lol:

Also learned the lesson, that several programs are not always compatible with each other :roll:

Best regards

Kurt


Top
 Profile  
 
 Post subject: Re: Assistance shp-file
PostPosted: 26 May 2011 13:40 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
Belgian46 wrote:
As I didn't knew that the kusttramroute was in the shp-file, I already had made a creation of the Kusttramroute (Depanne to Knokke ) via Google Earth. However, I have to review this file, because I only used points and no lines.
There seem to be a few missing links in the network. Result of editing?

This is what I get, drawn on top of the OSM map at zoom level 10:

Image

Quote:
I also had contact with NGI ( National Geographic institute - Brussel ). The NGI can deliver ( price unknown ) a digital card of Belgium ( in non-compressed tiff format ). With the tiff-file there is also a tfw-file, which allows georeference of the tiff-file. I probably will need to visit the NGI, to have a better picture of the situation ( :? )and also to have a look if other possibilities are available.

Do they offer GeoTIFF? tfw, a TIFF world file, is a non-standardised approach of adding georeferencing information to a TIFF raster map. GeoTIFF would be the standardised form.

Quote:
Wth Gimp ( open source ) I tried merging a national map of Belgium and the complete Belgian railroad. ( pictures in PNG-format non-geographically placed ). No success up to now.
Don't try that. You are attempting to approximate geo coordinate transformations with 2D imaging transformations. This will only work for very small areas. For larger areas you will introduce a lot of distortion.

Quote:
I will also try to import the belgian railroad picture into Google earth. Also not quite easy to do, if you are non-experienced user.
Easy. Export your shp file from TransDEM in kml format and open in Google Earth. You will get something like this:

Image


Top
 Profile  
 
 Post subject: Re: Assistance shp-file
PostPosted: 27 May 2011 18:44 
Offline

Joined: 05 Feb 2011 13:18
Posts: 104
Hallo Geophil,

Thank you for your assistance. :D

1. The shp.file, which I didn't create, doesn't contain the full Belgian railway routes. Some lines are missing or not complete.
As I don't know how to correct a shp.file, I have, I think two options
a. start a new one. Only method I have found up to now is - create it in Google earth and then use kml2shp ( via http://www.zonums.com )
b. correct the shp.file within Transdem

c. When making the raster map in Transdem with OSM ( zoom 10 ) and entering the shp.file, I then went further, I opened my dem-file, opened the raster map and opened the route ( shp.file ).

I wanted to create a new map with dem elevations.

This was not successfull - it took several hours before the operation ended, and as final result I received error writing section to .gnd file. A creation of 343 North South baseboards and 408 east west baseboards is probably to much.

2. The NGI didn't mention Geotiff. They deliver the tiff + tfw seperately. I don't know how to combine the two files.

3. I also tried some experiments with the option overlay image ( with the picture of the Belgian railway network ) in Google Earth. This gives me also a possibility.

Best regards

Kurt


Top
 Profile  
 
 Post subject: Re: Assistance shp-file
PostPosted: 28 May 2011 17:00 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
Belgian46 wrote:
1. The shp.file, which I didn't create, doesn't contain the full Belgian railway routes. Some lines are missing or not complete.
b. correct the shp.file within Transdem
Yes, that's an option. [/quote]


Quote:
This was not successfull - it took several hours before the operation ended, and as final result I received error writing section to .gnd file. A creation of 343 North South baseboards and 408 east west baseboards is probably to much.
It is, indeed. Even if TransDEM would have succeeded, Trainz Content Manager would have failed or refused. You will need much smaller modules. In a country with a dense railway network like Belgium I would go for modules about 30 km in length. You can always merge in Surveyor, seamlessly.

Quote:
2. The NGI didn't mention Geotiff. They deliver the tiff + tfw seperately. I don't know how to combine the two files.
Is this a topographic map? What is the scale? Is it worth to bother? What more important information would you get which is not in the OSM map?

Concerning the world file "tfw", this is usually plain text. Normally it gives the lat/long for the top left corner (NW) and also the spacing per pixel. The tags to denote these parameters are not standardised. It can be used with TransDEM for manual geo-referencing, but needs minimal arithmetic math by the user as TransDEM expects the SW and NE corner for the diagonal corner method. Most world files do not give the geodetic datum or the geo coordinate system if projected and not geographic. That's the difference to GeoTIFF which has a number of predefined tags and values within the TIFF file to specify all the georeferencing. Which does not mean GeoTIFF always works.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: Ahrefs [Bot], SemrushBot [Bot] and 59 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