One application give me the coordinates and I have set the extent view as per those coordinates in ArcGis. Do you have idea?
Solved! Go to Solution.
You can try the following
pMxDoc.ActiveView.Extent = <your envelope from the coordinates that you get>;
pMxDoc.ActiveView.Refresh(); // you can also use partial refresh
Other way if that you can get the current Scale and use center at of your envelope center or if you have a single point
axMapControl.CenterAt(<Point>);
axMapControl.MapScale = <current MapScale>;
axMapControl.Refresh();
Can you please elaborate what exactly are you doing?
One application give me the coordinates
Do you know what is the Spatialreference of those coordinates? Can you give me what those coordinates look like?
and I have set the extent view as per those coordinates in ArcGis. Do you have idea?
I think you are asking that you have to set the extents in ArcGIS Desktop? Which product are you working on and what is the programming language/API you are using?
yes i have to set the extent view in Arcgis Desktop, The coordinates are in WGS84.
And i am using c#, Arcobjects.
You can try the following
pMxDoc.ActiveView.Extent = <your envelope from the coordinates that you get>;
pMxDoc.ActiveView.Refresh(); // you can also use partial refresh
Other way if that you can get the current Scale and use center at of your envelope center or if you have a single point
axMapControl.CenterAt(<Point>);
axMapControl.MapScale = <current MapScale>;
axMapControl.Refresh();
Thanks, Its working fine for me.