Welcome, Guest. Please login or register.

Login with username, password and session length
Forums Search:  


Author Topic: Make Topo Map Part 2 - Stuck  (Read 346 times)

babj615

  • Expert Advisor
  • *****
  • Posts: 268
  • Karma: -4
  • The cache is a lie!
    • View Profile
    • Garmin Oregon 6xx Wiki
Make Topo Map Part 2 - Stuck
« on: May 28, 2020, 10: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!
Garmin GPSMap 60cs, Dakota 20, Colorado 400t, Oregon 300/400t/450/550t/650/650t, Montana 650, Lowrance Endura Sierra, nuvi 3790, iPhone 3G/4/4s
Geocaching ID: Atlas Cached
OpenCaching.com Ambassador

-Oz-

  • Map Maker!
  • Administrator
  • Expert Advisor
  • *****
  • Posts: 1580
  • Karma: 28
    • View Profile
    • GPSFileDepot
Re: Make Topo Map Part 2 - Stuck
« Reply #1 on: June 06, 2020, 06: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.
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!

babj615

  • Expert Advisor
  • *****
  • Posts: 268
  • Karma: -4
  • The cache is a lie!
    • View Profile
    • Garmin Oregon 6xx Wiki
Re: Make Topo Map Part 2 - Stuck
« Reply #2 on: June 07, 2020, 04:50:01 AM »
Thank You OZ.

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

Quote
Combine 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).
Garmin GPSMap 60cs, Dakota 20, Colorado 400t, Oregon 300/400t/450/550t/650/650t, Montana 650, Lowrance Endura Sierra, nuvi 3790, iPhone 3G/4/4s
Geocaching ID: Atlas Cached
OpenCaching.com Ambassador