GPSFileDepot Forums

General Category => Map Making Support => Topic started by: babj615 on May 28, 2020, 11:40:31 AM

Title: Make Topo Map Part 2 - Stuck
Post by: babj615 on May 28, 2020, 11:40:31 AM
I am followng the multi-step Topo Map Tutorials and am currently stcuk on Part 2.

All countour data files are downloaded and unzipped in their own directory.

Under Combine all Countours, step 4, I donot understand what I am supposed to do here. The 'second line' in the batch file reads 'cd %contourfolder%'. How am I supposed to format this?

Step 4 suggest this line is already fomratted for the BIN folder on 64-bit OS, and I see that address in lines 5 and 6, followed by 'ogr2ogr' (not 'ogr2ogr.exe').

Not able to get any further yet.

BTW, where will the new 'mergecounturs.shp' file mentioned in step 7 be located if/when it works? THe tutorial does not specify this.

Thank You!
Title: Re: Make Topo Map Part 2 - Stuck
Post by: -Oz- on June 06, 2020, 07:32:21 AM
%contourfolder% is a variable. You set the location of your contour files on the first line:
set contourfolder="C:\your_map_folder\dem\"

Change the C:\your_map_folder\dem\ to whever you put your files.

You don't need the .exe for ogr2ogr in dos. Just make sure the FWTools folder before hand (version is correct). A lot has likely changed since 2016.

Also, you can put the bat file wherever you want; it does't matter. When it runs it goes to the correct folders based on the data set above.
Title: Re: Make Topo Map Part 2 - Stuck
Post by: babj615 on June 07, 2020, 05:50:01 AM
Thank You OZ.

Taken directly from your tutorial, it appears I am supposed to edit two lines of the batch file:

QuoteCombine All The Contours Together

1. First we will combine all the contours into one file.  We have created a batch file that you can run and it will use FWTools to combine the contours. Download the bat file here and extract it.
2. Edit the bat file in Notepad (right click and click "Edit")
3. On the first line change the folder to be the folder where you have all the folders containing the contour lines folders.
4. On the second line set your location to the FWTools bin folder (the default for 2.4.7 on a 64-bit OS is already set)
5. Save the file
6. Now double click on the bat file to combine all the contours together. Note: Currently FWTools will crash if the file gets over 4gb; if this occurs you must split your contours into two separate folders and combine each half of the state separately.  For reference: for Arizona the file was only 3gb.
7. A new file has been created called "mergedcontours.shp"

I did eventually get this to work with only editing one line (the first).