Hi RAMESH_BABU_SOUNDARA,
In fact I still don’t totally understand your scenario, but I think we can discuss it now.
In fact buffer equal zero is invalid, because the buffere return a area shape, if the value is zero, the return shape won’t be a areashape, it still be a line, so it’s invalid shape in our map.
That’s why it don’t works.
If you assume the point is included in the area which buffer zero, that means, you think the point is in the line shape. So I think you don’t need to adjust it like this, you can directly calculate the distance between point to line like this:
PointShape pointA = new PointShape(5, 5);
LineShape lineB = new LineShape(new Collection<Vertex>() { new Vertex(1, 1), new Vertex(10, 10) });
double distance = pointA.GetDistanceTo(lineB, GeographyUnit.Meter, DistanceUnit.Meter);
Then you can adjust the position relationship by the distance value.
Wish that’s helpful.
Regards,
Ethan