|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMSegmentation
Provides access to members for defining an M-based linear coordinate system on a polyline or polygon.
The IMSegmentation interface provides methods designed to work with the dynamic segmentation functionality in ArcObjects. The CalculateNonSimpleMs method will interpolate or extrapolate missing (NaN) measure values, based on the existing values. Use the ExtrapolateMs or InterpolateMsBetween methods to set m attributes for only the specified vertices of a PolyLine. InsertMAtDistance will update a single vertex's m attribute, or if the specified distance does not fall on a vertex, a new vertex will be inserted into the PolyLine at that location.
IMSegmentation also provides methods to query a measured PolyLine, based on its m attributes. For example GetSubCurveBetweenMs and GetPointsAtM can be used to find geometries along a measured PolyLine. Note that if the m attributes do not monotonically increase along the line (check the MMonotonic property), the result of GetSubcurveBetweenMs may have more than one part or the result of GetPointsAtM will have more than one point.
The CalculateNonSimpleMs, SetAndInterpolateMsBetween, and SetMsAsDistance methods all ensure a PolyLine is MSimple.
IPoint.getM()
,
IMSegmentation
,
IMSegmentation2
,
IMCollection
,
IMAware
Method Summary | |
---|---|
void |
calculateNonSimpleMs()
Redefines the non-simple Ms to be values obtained from interpolation of surrounding defined Ms, or extrapolation of Ms. |
void |
extrapolateMs(int extrapolationStyle,
int fromPart,
int fromPoint,
int toPart,
int toPoint)
Extrapolates the Ms at one or both ends of the geometry based on the M interval between the fromIndex and the toIndex. |
Object |
getDistancesAtM(boolean asRatio,
double m)
Returns an array of distances along the polyline at which is located the specified M. |
int |
getMMonotonic()
A value indicating whether Ms are monotonic, and if so, whether they are ascending or descending. |
Object |
getMsAtDistance(double distance,
boolean asRatio)
Returns M values at the distance along the geometry. |
IGeometryCollection |
getPointsAtM(double m,
double lateralOffset)
Returns a multipoint geometry corresponding to the locations along the geometry where the specified M occurs. |
IGeometryCollection |
getSubcurveBetweenMs(double fromM,
double toM)
Returns a polyline geometry corresponding to the subcurve(s) between the fromM and the toM. |
void |
insertMAtDistance(double m,
double distance,
boolean asRatio,
boolean createPart,
boolean[] splitHappened,
int[] newPartIndex,
int[] newSegmentIndex)
Sets the M value at the given distance along the geometry; creates a point at that distance if no point exists there. |
void |
interpolateMsBetween(int fromPart,
int fromPoint,
int toPart,
int toPoint)
Generates Ms by linear interpolation of segment distances for all vertices in the range [start+1, end-1]. |
void |
reverseMsOrder()
Reverses the order of the Ms along the geometry. |
void |
setAndInterpolateMsBetween(double fromM,
double toM)
Sets the Ms at the beginning and the end of the geometry and interpolates the M values between these values. |
void |
setMsAsDistance(boolean asRatio)
Sets the M values to the cumulative length from the origin of the geometry. |
Methods inherited from interface com.esri.arcgis.geometry.IMCollection |
---|
getMMax, getMMin, multiplyMs, offsetMs |
Method Detail |
---|
int getMMonotonic() throws IOException, AutomationException
Returns an esriMMonotonicEnum indicating whether or not the Ms are monotonic as well as whether they are ascending or descending. The Ms are esriMAscending if the Ms are ordered such that M1 < M2 < M3 < . . . < Mn. The Ms are esriMDescending if the Ms are ordered such that M1 > M2 > M3 > . . . > Mn.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getMsAtDistance(double distance, boolean asRatio) throws IOException, AutomationException
distance
- The distance (in)asRatio
- The asRatio (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void insertMAtDistance(double m, double distance, boolean asRatio, boolean createPart, boolean[] splitHappened, int[] newPartIndex, int[] newSegmentIndex) throws IOException, AutomationException
m
- The m (in)distance
- The distance (in)asRatio
- The asRatio (in)createPart
- The createPart (in)splitHappened
- The splitHappened (out: use single element array)newPartIndex
- The newPartIndex (out: use single element array)newSegmentIndex
- The newSegmentIndex (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getDistancesAtM(boolean asRatio, double m) throws IOException, AutomationException
asRatio
- The asRatio (in)m
- The m (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void reverseMsOrder() throws IOException, AutomationException
Note that the m values are simply reversed. Any length:measure ratios that were present before ReverseMsOrder is called are not preserved.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void interpolateMsBetween(int fromPart, int fromPoint, int toPart, int toPoint) throws IOException, AutomationException
fromPart
- The fromPart (in)fromPoint
- The fromPoint (in)toPart
- The toPart (in)toPoint
- The toPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAndInterpolateMsBetween(double fromM, double toM) throws IOException, AutomationException
fromM
- The fromM (in)toM
- The toM (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMsAsDistance(boolean asRatio) throws IOException, AutomationException
asRatio
- The asRatio (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMSegmentation2.setMsAsDistance2(com.esri.arcgis.geometry.IPoint, double, double, boolean)
void extrapolateMs(int extrapolationStyle, int fromPart, int fromPoint, int toPart, int toPoint) throws IOException, AutomationException
extrapolationStyle
- A com.esri.arcgis.geometry.esriExtrapolationEnum constant (in)fromPart
- The fromPart (in)fromPoint
- The fromPoint (in)toPart
- The toPart (in)toPoint
- The toPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void calculateNonSimpleMs() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGeometryCollection getPointsAtM(double m, double lateralOffset) throws IOException, AutomationException
m
- The m (in)lateralOffset
- The lateralOffset (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGeometryCollection getSubcurveBetweenMs(double fromM, double toM) throws IOException, AutomationException
fromM
- The fromM (in)toM
- The toM (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMSegmentation2.getSubcurveBetweenMsEx(double, double, int[], int[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |