Reproject shp files in zips from NAD27 to NAD83

Well I took a stab at creating my second script and failed miserably.  What I am trying to do is reproject shp files in a folder that reside in a zip files. Those shp files have lines, points and areas. I need to convert those files from NAD27 to NAD83 and save in a different folder from the source folder and repackaged back into zip files.  This is my attempt on the script file:

GLOBAL_MAPPER_SCRIPT VERSION=1.00
//Define folders
DEFINE_VAR NAME=src_dir VALUE="C:\Temp\Shapefiles"
DEFINE_VAR NAME=dest_dir VALUE="C:\Temp\Shapefiles"

//start the loop to iterate through all the files
DIR_LOOP_START DIRECTORY="%src_dir%" FILENAME_MASKS="*.ZIP" RECURSE_DIR=NO TYPE=SHAPEFILE
    //Import the file
    IMPORT_ARCHIVE ARCHIVE_FILENAME="%FNAME_W_DIR%"
    
    //assign projection 4326 - WGS84
    LOAD_PROJECTION PROJ=4326
    //Note dir WGS84 created to save output files
    EXPORT_VECTOR FILENAME="%dest_dir%\WGS84\%FNAME_WO_EXT%.zip" TYPE=SHAPEFILE GEN_PRJ_FILE=YES
   
    //Unload the loaded data
    UNLOAD_ALL
DIR_LOOP_END


Please advise.

Regards,

Terry

Comments

  • tnygaardtnygaard Posts: 2
    I mentioned NAD83 in the subject line but meant WGS84...
Sign In or Register to comment.