Write elevation/slope stats to feature Script

I am looking for the scripting command for the function called "calculate elevation/slope stats to features".
In particularly I am interested in writing the MAX/MIN elevation, within the area, from a DEM to an attribute of an area feature. 
Can I do this in scripting?

Answers

  • bmg_bob
    bmg_bob Global Mapper Programmer
    Hello,

    nikolajvh said:
    I am looking for the scripting command for the function called "calculate elevation/slope stats to features".
    In particularly I am interested in writing the MAX/MIN elevation, within the area, from a DEM to an attribute of an area feature. 
    Can I do this in scripting?
    This function is not currently available via scripting.  We have an open feature request to add it, and I have added your information to the request.  We will post a message on this thread when the status of the feature request changes.

    Cheers,
    Bob
  • Ice Age Mark
    Ice Age Mark Global Mapper User Trusted User
    Hello there,

    In the Scripting Reference under "GENERATE_CONTOURS", there is a function:

    "GEN_SPOT_ELEVATIONS - generate spot elevations at min/max elevations. Use a value of YES to enable the generate of min/max spot elevation points."

    Perhaps as a workaround you could just generate one simple contour in your area and then delete it (with "edit vector, maybe?) to get GM to produce the max/min value for you by script.

    Didn't try it, I just remembered that function existed somewhere.  Hope it can help.

    Good luck,

    Mark