Hey Everyone. So I am developing an ArcGIS Add-On and I have some code here that buffers a point, successfully I might add. lol. What I don't understand is how I tell it to buffer a specific distance. The documentation states that it uses your map units. I am not sure what those are but basically what I am trying to do is, buffer a point by meters. Here is the code that I have but when I put buffer 10, it is way more than 10 meters. Thanks in advance.
protected override void OnMouseDown(MouseEventArgs arg)
{
var test = this.ScreenDisplayInstance.DisplayTransformation.ToMapPoint(arg.X, arg.Y);
test.SpatialReference = this.ActiveViewInstance.FocusMap.SpatialReference;
this.BufferPoint(test);
}
private void BufferPoint(IPoint point)
{
var topologicalOperator = (ESRI.ArcGIS.Geometry.ITopologicalOperator)point;
var newGeo = topologicalOperator.Buffer(10);//Need this in meters
}
V/R,
Josh