ICurve.ToLinearGeometry

ToLinearGeometry()

Gets approximate or equivalent non-curve version of this geometry using the default tolerance.

public ILineString ToLinearGeometry()

Return Value

A ILineString that approximates or equivalent to this curve. This is the equivalent of ToLinearGeometry with default tolerance. Default tolerances value is dependent on SpatialReferenceSystem of this geometry: For projected SRS Tolerance is 0.001 meters (in SRS units) For geographic SRS Tolerance is 1e-5 degrees (in SRS units) For unknown SRS Tolerance is 1e-5 For more details on what transformations are applied refer to ToLinearGeometry specification.

Exceptions

exceptioncondition
InvalidOperationExceptionThis geometry is invalid in a such way, that operation can not be completed.

See Also


ToLinearGeometry(double)

Gets approximate or equivalent non-curve version of this geometry using the specified tolerance.

public ILineString ToLinearGeometry(double tolerance)
ParameterTypeDescription
toleranceDoubleThe tolerance to use. The result is guaranteed to be less than tolerance away from the curved geometry, unless the number of points needed to linearize the geometry exceeds the per-quadrant maximum, currently equal to 10000 points.

Return Value

A ILineString that approximates or equivalent to this curve: If this object is ILineString itself the result is equivalent to this object If this object is ICircularString the result is the circular string linearized with the specified tolerance If this object is ICompoundCurve - all curves from it are linearized and then joined into ILineString

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptiontolerance is less than or equal to 0.
InvalidOperationExceptionThis geometry is invalid in a such way, that operation can not be completed.

See Also