I just posted a new version of the Arizona Topo installer that should not have this problem. You won't even have to modify the location of the map.
Welcome to GPSFileDepot!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
if "!filename:~0,4!" == "Line" (
%gpsfdshp2mpfolder%\gpsfdshp2mp.exe %%f "MP_TYPE" "NAME" n %dictionary_file% !initialmapid! !finalmapname!
)
if "!filename:~0,5!" == "Point" (
%gpsfdshp2mpfolder%\gpsfdshp2mp.exe %%f "MP_TYPE" "NAME" n %dictionary_blank% !initialmapid! !finalmapname!
)
if "!filename:~0,7!" == "Polygon" (
%gpsfdshp2mpfolder%\gpsfdshp2mp.exe %%f "MP_TYPE" "NAME" n %dictionary_blank% !initialmapid! !finalmapname!
)
if "!filename:~0,4!" == "Line" (
%gpsfdshp2mpfolder%\gpsfdshp2mp.exe %%f "MP_TYPE" "NAME" n %dictionary_file% !initialmapid! !finalmapname!
)
if "!filename:~0,5!" == "Point" (
%gpsfdshp2mpfolder%\gpsfdshp2mp.exe %%f "MP_TYPE" "NAME" n %dictionary_blank% !initialmapid! !finalmapname!
)
if "!filename:~0,7!" == "Polygon" (
%gpsfdshp2mpfolder%\gpsfdshp2mp.exe %%f "MP_TYPE" "NAME" n %dictionary_blank% !initialmapid! !finalmapname!
)
@echo off
setlocal enabledelayedexpansion
REM --------------EDIT VARIABLES BELOW--------------
REM folder with all the split .shp files
set splitlinefolder="C:\Users\Dennis\Desktop\DH_Personal\maps\Vermont_Topo\Split\Lines"
set splitpointfolder="C:\Users\Dennis\Desktop\DH_Personal\maps\Vermont_Topo\Split\Points"
set splitpolygonfolder="C:\Users\Dennis\Desktop\DH_Personal\maps\Vermont_Topo\Split\Polygons"
REM folder containing GPSFDshp2mp.exe
set gpsfdshp2mpfolder="C:\Users\Dennis\Desktop\DH_Personal\maps\Vermont_Topo"
REM main dictionary file
set dictionary_file="C:\Users\Dennis\Desktop\DH_Personal\maps\Vermont_Topo\dictionary_header.mp"
REM blank dictionary file
set dictionary_blank="C:\Users\Dennis\Desktop\DH_Personal\maps\Vermont_Topo\empty_dictionary.mp"
REM Name of map
set mapname="Vermont Topo"
REM initial map ID; must be 8 digits, don't start with a 0 (zero)
set /A initialmapid=11111100
REM --------------DO NOT EDIT FROM HERE DOWN--------------
set /A count=1
cd %splitlinefolder%
for /r %%f in (*.shp) do (
REM get just the filename
set filename=%%~nf
REM make map name unique for each file
set "finalmapname="!mapname:"=! !count!""
%gpsfdshp2mpfolder%\gpsfdshp2mp.exe %%f "MP_TYPE" "NAME" n %dictionary_file% !initialmapid! !finalmapname!
set /A initialmapid+=1
set /A count+=1
)
cd %splitpointfolder%
for /r %%f in (*.shp) do (
REM get just the filename
set filename=%%~nf
REM make map name unique for each file
set "finalmapname="!mapname:"=! !count!""
%gpsfdshp2mpfolder%\gpsfdshp2mp.exe %%f "MP_TYPE" "NAME" n %dictionary_blank% !initialmapid! !finalmapname!
set /A initialmapid+=1
set /A count+=1
)
cd %splitpolygonfolder%
for /r %%f in (*.shp) do (
REM get just the filename
set filename=%%~nf
REM make map name unique for each file
set "finalmapname="!mapname:"=! !count!""
%gpsfdshp2mpfolder%\gpsfdshp2mp.exe %%f "MP_TYPE" "NAME" n %dictionary_blank% !initialmapid! !finalmapname!
set /A initialmapid+=1
set /A count+=1
)
© 2007 - 2022 GPSFileDepot.com
A Division of OzTheory
Privacy Policy | Usage Agreement