GM script about "create point features spaced along selected features"

suzuki
suzuki Global Mapper User
hi
i got several 3D shp file ( line or area type)
and i hope to create points along the shp boundary line with every fixed distance (10 cm)
i find a very good GM defalut tool (Advanced Feature Creation options/create point features spaced along selected features)
as attached image

but  i can't find any GM script language to do this process in batch.

that's my Question

Best Regards.

thanks.







Answers

  • bmg_bob
    bmg_bob Global Mapper Programmer
    edited April 2021 Answer ✓
    Hello,

    Use the EDIT_VECTOR command, and include the parameter called CREATE_POINTS_ALONG_FEATURES. The value is the spacing in meters. (Specify a negative number to create that number of points, spaced evenly along the feature.) Here is an example illustrating how to add evenly spaced points every 200 meters along the features containing a CLASS attribute with a value of '1'. Point features will also be created at the end point, and at each current vertex:
    EDIT_VECTOR CREATE_POINTS_ALONG_FEATURES=200 COMPARE_STR="CLASS=1" \
     KEEP_END_POINT=YES KEEP_ORIGINAL_VERTICES=YES
    It appears that the CREATE_POINTS_ALONG_FEATURES is not described in the documentation, although there is an example that illustrates how to use it. We will have to fix that.

    Cheers,
    Bob