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

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.
主站蜘蛛池模板: 内江市| 锡林浩特市| 莱阳市| 科尔| 德格县| 双鸭山市| 黄梅县| 手游| 星子县| 灯塔市| 仲巴县| 阜平县| 瓦房店市| 新宁县| 义乌市| 潮州市| 梧州市| 中卫市| 神池县| 克东县| 县级市| 小金县| 会泽县| 瓮安县| 云安县| 德兴市| 连城县| 资溪县| 乳山市| 康保县| 红原县| 安达市| 平定县| 库尔勒市| 葵青区| 开江县| 渑池县| 迁西县| 蓬莱市| 花莲县| 涡阳县|