- ArcGIS Pro 2.x Cookbook
- Tripp Corbin GISP
- 799字
- 2021-06-24 19:10:47
How to do it...
- If you closed ArcGIS Pro at the end of the last recipe, open ArcGIS Pro. If you still have ArcGIS Pro open, click the back arrow, located in the top-left corner of the About ArcGIS Pro window.
- In the ArcGIS Pro start window, click Open another project, as shown in the following image:

- Click the Browse button, which looks like a file folder.
- Using the skills you have learned, navigate to C:\Student\ArcGISProCookbook\Chapter2. Select Creating a Shapefile.aprx and click OK.
The project should open with a map that contains the layers that reference the three feature classes you created in the last recipe. They are still empty. Next, you will create a new shapefile to store street signs that will be inventoried by a field crew using a GPS unit that can make use of shapefiles.
- In the ribbon, click the Analysis tab.
- Select the Tools button in the Geoprocessing group to open the Geoprocessing pane.
Geoprocessing means to perform operations on geospatial data. This includes analysis, data conversion, projecting coordinate systems, creating new feature classes, and adding data fields. The tools you use to perform these functions are called geoprocessing tools.
- In the Geoprocessing pane, click the Toolboxes tab located between Favorites and Portal:

- Click the small arrowhead located next to Data Management Tools to expand its contents.
- Click the small arrowhead located next to the Feature Class toolset to expand its contents:

- Double-click the Create Feature Class tool.
- Click the Browse button, located to the right of the Feature Class Location cell.
- In the area on the left of the Feature Class Location dialog window, scroll down to Computer and select C:\.
- In the area on the right, scroll down and double-click the Student folder.
- Double-click the ArcGISProCookbook folder.
- Select the MyProjects folder. Do not double-click it:

- Click OK.
- In the Feature Class Name cell, type ST_Signs.
- You will use the same coordinate system you used for the geodatabase feature classes you created in the last recipe. So click the drop-down arrow in the Coordinate System cell.
- Select Side_Walks from the list that is presented. This should set the coordinate system to be WGS_1984_Web_Mercator_Auxillery_Sphere.
- Verify that the tool looks like the following graphic. If it does, click Run:

- Close the Geoprocessing pane once it is complete.
This same tool can also be used to create geodatabase feature classes. All you need to do is ensure the Feature Class Location is set to a geodatabase or a feature dataset within a geodatabase.
Now that you have created the new shapefile, you will verify that it was created correctly. To do this, you will need to connect to the folder where you created the shapefile.
- Right-click Folders in the Catalog pane and select Add Folder Connection.
- In the area located on the left of the Add Folder Connection dialog window, select C:\.
- Scroll down in the area on the right and double-click the Student folder.
- Double-click the ArcGISProCookbook folder.
- Select MyProjects and click OK. Do not double-click the folder.
- If needed, expand the contents of Folders in the Catalog pane. Then expand the contents of the MyProjects folder connection you just added.
- If your shapefile was created successfully, you should see an ST_Signs.shp file listed in the folder:

- Look at the Contents pane located on the left side of the interface. The new shapefile should have automatically been added as a new layer to your map. If it has not been, then drag and drop the shapefile from the Catalog pane into the map view to add it as a layer to your map.
- Right-click the ST_Signs layer in the Contents pane. Select Design and then Fields from the menus that appear:

- Using the same process you used for the geodatabase feature classes, add the following attribute fields. For any properties not specified, accept defaults:
- Field 1:
- Field Name: Date_Inst
- Field Alias: Date of Install
- Data Type: Date
- Field 2:
- Field Name: Type
- Field Alias: Sign Type
- Data Type: Text
- Length: 15
- Field 3:
- Field Name: Cond
- Field Alias: Condition
- Data Type: Text
- Length: 5
- Field 4:
- Field Name: Date_Col
- Field Alias: Data Collected
- Data Type: Date
- Field 1:
Remember field names cannot have spaces or special characters (except an underscore) and must start with a letter. Also, because this is a shapefile, the length of the name is limited to 10 characters.
- Verify that your attribute table looks like the following image and click the Save button in the Fields tab in the ribbon:

You may get a warning indicating the Date data type is invalid. Ignore this warning as it is incorrect and may be a bug in ArcGIS Pro 2.0. It was fixed in ArcGIS 2.1.
- If you are not continuing to the next recipe, save your project and close ArcGIS Pro.
- HTML5+CSS3王者歸來
- 新一代通用視頻編碼H.266/VVC:原理、標(biāo)準(zhǔn)與實(shí)現(xiàn)
- Drupal 8 Configuration Management
- Android開發(fā):從0到1 (清華開發(fā)者書庫(kù))
- Python深度學(xué)習(xí):模型、方法與實(shí)現(xiàn)
- Android應(yīng)用案例開發(fā)大全(第二版)
- Android群英傳
- Learning Material Design
- 響應(yīng)式Web設(shè)計(jì):HTML5和CSS3實(shí)戰(zhàn)(第2版)
- Android Studio Cookbook
- Magento 2 Beginners Guide
- Android系統(tǒng)下Java編程詳解
- Building a Media Center with Raspberry Pi
- Eclipse開發(fā)(學(xué)習(xí)筆記)
- Tkinter GUI Application Development Blueprints