GPSFileDepot Forums

General Category => Map Making Support => Topic started by: Mrbamboo on May 30, 2016, 04:52:03 PM

Title: Tutorial Part 2 - Elevation Data Merging Problems
Post by: Mrbamboo on May 30, 2016, 04:52:03 PM
I am trying to merge the shp files for contour lines using FWTools2.4.7 in Windows 10.  I have only placed 2 shape file directories in the "dem" folder, and after running the bat file, nothing.

Is there an issue with Win10 and FWTools, or is there a work-around for merging?

Mrbamboo
Title: Re: Tutorial Part 2 - Elevation Data Merging Problems
Post by: Mrbamboo on June 01, 2016, 05:19:16 PM
Well I found a piece of shareware to do it in windows 10.  GeoMerge
Title: Re: Tutorial Part 2 - Elevation Data Merging Problems
Post by: -Oz- on June 01, 2016, 08:33:29 PM
I use it in Windows 10 currently. Does the BAT file have the correct locations for FW Tools?
Title: Re: Tutorial Part 2 - Elevation Data Merging Problems
Post by: Mrbamboo on June 03, 2016, 08:22:19 PM
Yes, the path pointed towards fwtools, and it is placed in the dem folder. 
I watched it thru the cmd window, it looked like the switches had issues and each time it went to process a new file it would give me the "help" for using the switches, then go on the the next file. 
Title: Re: Tutorial Part 2 - Elevation Data Merging Problems
Post by: -Oz- on June 05, 2016, 04:56:54 PM
can you take a picture with the snipping tool and attach it?

Seeing that error would tell me which part has an issue.
Title: Re: Tutorial Part 2 - Elevation Data Merging Problems
Post by: Mrbamboo on July 03, 2016, 03:34:54 PM
The batch file is working thru the file structure for each shape file, but no merged shape file is being created.  See attachments as to the file structure and the running of the batch file from the cmd line.

Here is the batch file

set contourfolder="E:\Garmin\California_Topo\Downloads\"
cd %contourfolder%
for /r %%f in (*.shp) do (
if not exist %contourfolder%\mergedcontours.shp (
"C:\Program Files (x86)\FWTools2.4.7\bin\ogr2ogr" -f "esri shapefile" %contourfolder%\mergedcontours.shp %%f ) else (
"C:\Program Files (x86)\FWTools2.4.7\bin\ogr2ogr" -f "esri shapefile" -update -append %contourfolder%\mergedcontours.shp %%f -nln Mergedcontours )
)

Title: Re: Tutorial Part 2 - Elevation Data Merging Problems
Post by: Mrbamboo on July 08, 2016, 07:24:42 AM
Found the issue, use the batch file from combining the streets, and edit it for the contours.  It works! 

The only issue is that it has a 5gm -1mbĀ± limit.  So, break up the files into parts and then merge each one, to later combine together.  Which I am finding out QGIS has a limit also.  Has anyone ran into this issue?

Mrbamboo