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

suzukisuzuki Global Mapper UserPosts: 9
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.







Best Answer

  • bmg_bobbmg_bob Global Mapper Programmer Posts: 2,255
    edited April 1 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
Sign In or Register to comment.