One application give me the coordinates and I have set the extent view as per those coordinates in ArcGis. Do you have idea?
You can try the following
<SPAN class="pln">pMxDoc</SPAN><SPAN class="pun">.</SPAN><SPAN class="typ">ActiveView</SPAN><SPAN class="pun">.</SPAN><SPAN class="typ">Extent</SPAN><SPAN class="pln"> </SPAN><SPAN class="pun">=</SPAN><SPAN class="pln"> <your envelope from the coordinates that you get></SPAN><SPAN class="pun">;</SPAN><SPAN class="pln"><BR />pMxDoc</SPAN><SPAN class="pun">.</SPAN><SPAN class="typ">ActiveView</SPAN><SPAN class="pun">.</SPAN><SPAN class="typ">Refresh</SPAN><SPAN class="pun">(); // you can also use partial refresh<BR /></SPAN>
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
<SPAN class="pln">axMapControl</SPAN><SPAN class="pun">.</SPAN><SPAN class="typ">CenterAt</SPAN><SPAN class="pun">(</SPAN><SPAN class="pln"><Point></SPAN><SPAN class="pun">);</SPAN><SPAN class="pln"><BR />axMapControl</SPAN><SPAN class="pun">.</SPAN><SPAN class="typ">MapScale</SPAN><SPAN class="pln"> </SPAN><SPAN class="pun">=</SPAN><SPAN class="pln"> <current </SPAN><SPAN class="pun"></SPAN><SPAN class="typ">MapScale></SPAN><SPAN class="pun">;</SPAN><SPAN class="pln"><BR />axMapControl</SPAN><SPAN class="pun">.</SPAN><SPAN class="typ">Refresh</SPAN><SPAN class="pun">();</SPAN>
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.
Thanks, Its working fine for me.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.