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
Well I found a piece of shareware to do it in windows 10. GeoMerge
I use it in Windows 10 currently. Does the BAT file have the correct locations for FW Tools?
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.
can you take a picture with the snipping tool and attach it?
Seeing that error would tell me which part has an issue.
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 )
)
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