Description

A read-write property specifying whether lines are sampled at equal intervals or are broken into a given number of sections.

Property type

A mcLineProfilesSampleModes enumeration.  

Syntax

object.SampleMode [= value]

The SampleMode Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McLineProfiles.
valueA mcLineProfilesSampleModes enumeration, as described in settings.

Settings

The settings for value are:

ConstantValueDescription
 mclpsmFixedNumberOfSamples0

The line is broken into a fixed number of samples given by the McLineProfiles.NumberOfSamplesDesired property.

 mclpsmFixedSampleLength1

The line is broken into samples of a length given by the McLineProfiles.LengthPerSampleDesired property. The last (or only) sample may be shorter than the specified length.

Remarks

The SampleMode determines whether lines are sampled with equal numbers of samples or with samples of equal length. The NumberOfSamplesDesired property sets or gives the number of samples per line desired when SampleMode is mclpsmFixedNumberOfSamples. The LengthPerSampleDesired property sets or gives the length per sample desired when SampleMode is mclpsmFixedSampleLength.

By default, SampleMode is mclpsmFixedSampleLength and LengthPerSampleDesired is 1.0 pixel, so that samples will be taken at 1 pixel intervals along the length of the line features.