Global Mapper Pro

How can I assign a type without the compare_str option

olgaolga Global Mapper UserPosts: 1
edited November 2009 in Technical Support
Hello team

I would like to change the color of all lines generated in the contours. I created a type "hand_line" and I would like that all lines have this type, without any kind of attribute comparison. I am using the version 10. Is it possible on the gm or you have any suggestion?

Script:

DIR_LOOP_START DIRECTORY="C:\data\" FILENAME_MASKS="*hand*.tif" RECURSE_DIR=NO
IMPORT FILENAME="%FNAME_W_DIR%" ANTI_ALIAS=YES
GENERATE_CONTOURS INTERVAL=20 ELEV_UNITS=METERS
ASSIGN_TYPE LINE_TYPE="Hand_line"
EXPORT_VECTOR FILENAME="%DIR%%FNAME_WO_EXT%_CONTOURS.SHP" TYPE=SHAPEFILE \
SHAPE_TYPE=LINES GEN_3D_LINES=YES GEN_PRJ_FILE=YES
UNLOAD_ALL
DIR_LOOP_END

Answer:
Importing file C:\hand_data.tif...
Generating contours from loaded elevation data...
Assigning types to vector features...
ERROR: No COMPARE_STR parameters found.
Updated the type of 0 features.


Thanks

Comments

  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited November 2009
    Yes, you could match against anything using COMPARE_STR="<Feature Type>=*". This should match against any type value.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
Sign In or Register to comment.