Removing GM_TYPE and GM_LAYER

datagurudataguru Global Mapper UserPosts: 19Trusted User
edited July 2013 in Technical Support
Is it possible to remove the GM_TYPE field and GM_LAYER fields? Below is the script I'm using, but it doesn't remove those two fields? Do I need to create a LAYER and TYPE field before removing GM_TYPE and GM_LAYER?

GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL


DIR_LOOP_START DIRECTORY="\SHAPE\" FILENAME_MASKS="*BLOCKS*.SHP " RECURSE_DIR=YES


IMPORT FILENAME="%FNAME_W_DIR%" ANTI_ALIAS=YES


EDIT_VECTOR ATTR_TO_DELETE="GM_LAYER"
EDIT_VECTOR ATTR_TO_DELETE="GM_TYPE"


EXPORT_VECTOR SHAPE_TYPE=AREAS TYPE=SHAPEFILE GEN_PRJ_FILE=YES FILENAME="%FNAME_W_DIR%"


UNLOAD_ALL
END_LOOP

Thanks again for the help.

Comments

Sign In or Register to comment.