Hello,
I create a LineShape by as follows coordinates
LineShape lineShape;
X: 121.4995; Y: 25.0003
X: 121.4994; Y: 25.0002
X: 121.4993; Y: 25.0000
Now, I want to use two coordinates to calculate the distances of two top point.
PointShape FnodePointShape = lineShape.GetPointOnALine(StartingPoint.FirstPoint, 0);
PointShape TnodePointShape = lineShape.GetPointOnALine(StartingPoint.LastPoint, 0);
PointShape GisPointShape = new PointShape(dGisX, dGisY);
double FnodeLength = (lineShape.GetLineOnALine(FnodePointShape, GisPointShape)).GetLength(GeographyUnit.DecimalDegree, DistanceUnit.Meter);
double TnodeLength = (lineShape.GetLineOnALine(TnodePointShape, GisPointShape)).GetLength(GeographyUnit.DecimalDegree, DistanceUnit.Meter);
It is strange. I don't know why it always error by PointShape GisPointShape = new PointShape(121.48, 25).
error message is 'The shape you provided does not pass our simple validation.'
I try to test other coordinates, all are correct.
ex. 121.5, 25 121.49,25 121.475, 25 121.485 25