官术网_书友最值得收藏!

  • ArcGIS Blueprints
  • Eric Pimpler
  • 209字
  • 2021-07-30 09:50:01

Creating migration patterns for Python toolbox

Just like we did in the first chapter of the book, we'll build an ArcGIS Python Toolbox to hold the code for our application. I won't walk you through every single step like I did in the first chapter, but I will provide some general guidelines instead. If needed, refer to the first chapter for the specifics of how to create an ArcGIS Python Toolbox.

The Python toolboxes encapsulate everything in one place: parameters, validation code, and source code. A Python Toolbox functions like any other toolbox in ArcToolbox, but it is created entirely in Python and has a file extension of .pyt. As you learned in the last chapter, it is created programmatically as a class named Toolbox.

The following steps will help you to create migration patterns for Python toolbox:

  1. Open ArcCatalog. You can create a Python Toolbox in a folder by right-clicking on the folder and navigating to New | Python Toolbox. In ArcCatalog, there is a folder called Toolboxes; inside the folder, there is a My Toolboxes folder, as shown in the following screenshot. Right-click on this folder and navigate to New | Python Toolbox:
  2. The name of the toolbox is controlled by the filename. Name the toolbox MigrationPatterns.pyt.
主站蜘蛛池模板: 三明市| 平利县| 隆安县| 黄骅市| 资阳市| 井冈山市| 凉城县| 墨玉县| 宁津县| 江阴市| 石屏县| 海阳市| 紫阳县| 武义县| 桃园县| 屯昌县| 连城县| 凤庆县| 黄石市| 望谟县| 建德市| 渑池县| 盖州市| 沙田区| 讷河市| 乐清市| 河间市| 淳化县| 都安| 台北市| 长顺县| 兴仁县| 武冈市| 平南县| 沽源县| 崇信县| 沐川县| 龙山县| 福清市| 新巴尔虎右旗| 乳山市|