HowTo: Capture map coordinates with a mouse click using Python
【相关信息】
Article ID: 40730
Software:
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms:
Windows XP, Server 2003, Vista, Server 2008, Windows 7, Windows 8, Server 2012
【问题描述】
Prior to ArcGIS 10.1, Python could not be used to interact with the ArcGIS interface. Now Python Add-ins give users the ability to create Python written tools that respond to a mouse click.
The instructions provided describe how to set up Python Add-in code to capture coordinates with a mouse click.
Article ID: 40730
Software:
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms:
Windows XP, Server 2003, Vista, Server 2008, Windows 7, Windows 8, Server 2012
【问题描述】
Prior to ArcGIS 10.1, Python could not be used to interact with the ArcGIS interface. Now Python Add-ins give users the ability to create Python written tools that respond to a mouse click.
The instructions provided describe how to set up Python Add-in code to capture coordinates with a mouse click.
1 个回复
EsriSupport
赞同来自:
4.Use the x and y variables to pass the coordinate information into the tool. The following code example shows a message box with the coordinates. The results:
【其它相关参考】
【创建及修改时间】
Created: 12/7/2012
Last Modified: 7/14/2013
【原文链接】
http://support.esri.com/en/kno ... 40730
要回复问题请先登录或注册