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

  • ArcGIS Pro 2.x Cookbook
  • Tripp Corbin GISP
  • 1889字
  • 2021-06-24 19:10:45

How to do it...

  1. Start ArcGIS Pro.
  2. In the ArcGIS Pro start window, click Open another project.
  1. Select Computer from the Open window and then click Browse in the area on the right:
  1. Navigate to C:\Student\ArcGISProCookbook\Chapter2\RasterVector by clicking on C:\ in the area on the left of the Open Project window. Then double-click the Student, ArcGISProCookbook, Chapter2, and RasterVector folders.
  2. Select the RasterVector.aprx project file and click OK.

The project will open with a single aerial photograph. An aerial photograph is one example of raster data and is one of the most common you will use.  

  1. Select the Map tab in the ribbon and then click the small arrowhead located under Bookmarks.
  2. Select the Raster 1 bookmark to zoom into to a specific location in the map.

Your map should now zoom in very closely to the aerial you were just viewing:

Pixelated Image due to zoom scale

The aerial now looks like a series of individual squares. These are called cells, though many people mistakenly refer to them as pixels.

All rasters consist of cells that are assigned a numeric value. You can think of them as being similar to a spreadsheet. The value assigned to each cell can represent different properties depending on the purpose of the raster. In the case of a color aerial photo, such as the one you have been working with in this recipe, the value assigned to the cell equals the color for each band to be displayed.

  1. Activate the Explore tool on the Map tab in the Navigate group.
  2. Click one of the cells in the Aerial Photo to see what information is linked to the cell you selected:

As you can see, the cells store information. In this case, it stores the values used to display the Red, Green, and Blue bands stored in the photo. When these three bands are overlapped, you are able to see the true color.

Rasters can have a single band or multiple bands. Bands are similar to layers. Most aerial photographs have three bands: Red, Green, and Blue. However, some will also have infrared bands if they are multispectral. Those additional bands allow you to extract information such as vegetation and impervious surfaces.   

  1. Close the information window by clicking the small X in the upper-right corner.
  2. Right-click the Aerial Photo layer in the Contents pane and select Properties.
  3. Click Source in the right-hand side of the Layer Properties window.
  4. If needed, expand the Data Source option by clicking the small arrowhead.
  5. Look at the Dataset cell in the presented table.

Question: What is the dataset listed in the table for the Aerial Photo layer?

Answer:

  1. Click OK when done.
The source for the Aerial Photo layer was 152380.sid. This is what is commonly called a Mr. SID file.  Rasters come in many formats, Mr. SID is just one. Other common raster formats include:  Joint Photographic Experts Group  ( JPEG/JPG),  Portable Network Graphic  (PNG),  Tag Image File Format  ( TIFF), and  ERDAS Imagine  ( IMG ).
  1. Right-click the Aerial Photo layer in the Contents pane and select Zoom to Layer.
  2. In the Catalog pane located on the right side of the ArcGIS Pro interface, click the Portal tab located at the top of the pane next to Project.
  3. Click the Living Atlas button, as shown here:
  1. In the Search cell, type DEM.

Digital Elevation Model (DEMis a raster format commonly used to represent changes of elevation along the ground.

  1. Right-click Terrain: Hillshade and select Add to Current Map:

You have just added a raster layer that comes from a web service hosted in Esri's ArcGIS Online living atlas. Data in the Living Atlas is available to everyone for use in ArcGIS Pro and other GIS applications.

  1. Click the Full Extent button located in the Map tab in the Navigate group. It looks like a small globe. This takes you to the full extent of the map. You will see more of the new Terrain layer you just added.
  2. Now you will take a closer look. In the Map tab, click the arrowhead located under Bookmarks and select DEM Zoomed:
Zoomed in DEM
  1. Look at the two raster layers now present in the map and compare the two.

Question: How many bands does the Aerial Photo have?

Answer:

QuestionHow many bands does Terrain: Hillshade have?

Answer:

  1. Activate the Explore tool in the Map tab.
  2. Click a cell in the Terrain: Hillshade layer to access the information linked to the cell.
  3. Review the information presented. Compare it to the information you saw when you did the same thing for the Aerial Photo layer.
  1. Close the information window when you are done.

As you can see, the Terrain layer you added was a good bit different than the Aerial Photo layer even though they are both rasters. The Aerial Photo layer has three bands, where the Terrain has a single band. The Terrain also has more information attached to each cell than the Aerial Photo. That is because the terrain was created to do more than just present a picture. It is designed so you can determine the elevation of an area and perform analysis based on the elevation. You will get a chance to do that later in this book.

Now, you will look more closely at vector data. The majority of the data you will work with will most likely be stored as a vector, meaning it will be either a point, line, or polygon.

  1. Click the Full Extent button to see the entire map.
  2. Turn off the Terrain: Hillshade layer by clicking the check box located next to the layer name.
  3. In the Catalog pane, select the Project tab at the top of the pane.
  4. Expand the Databases folder so you see the two geodatabases connected to the project.
  5. Expand Trippville_GIS.gdb so you can see its contents.
  6. Expand the Base Feature Dataset in the Trippville_GIS geodatabase.

Feature Datasets are organizational units in a geodatabase. They act similarly to folders on your computer. They allow you to store related feature classes in a common container within the geodatabase so that you can easily find them. All feature classes stored within a feature dataset share the same coordinate system. This allows the feature classes stored in the feature dataset to take part in a topology and geometric network. Feature datasets only exist in geodatabases. You will not find them in other GIS data formats, such as shapefiles.

  1. Select the Parcels feature class and then drag and drop it into the map view.
  2. Click the arrowhead under Bookmarks on the Map tab and select Parcels.
  3. Activate the Explore tool on the Map tab and click one of the parcels displayed in the map.
Question: What fields of information are linked to the parcels?


Answer
:
  1. Close the Information window.
  2. Right-click the Parcels layer in the table of contents. Select Attribute Table from the menu that appears:

You should see Attribute Table open at the bottom. This is another way to view attributes associated with a vector layer.

Question: Is there a difference between the fields you saw when using the Explore tool and what you see in Attribute Table?

Answer:

You should see the same fields of information in both the Explore tool information window and the attribute table. However, how the information is presented is quite different. The attribute table presents data for all features in the layer in a tabular format. The information window only presents the information about one feature at a time.  

All vector layers will have a database table of attributes attached to it. This attribute table will include a combination of Default fields and User Defined fields. Default fields are those created and maintained by the software. They will vary depending on the type of data and the format. User defined fields are those columns created by software users and must be manually maintained.

  1. Activate the Select tool in the Map tab.
  2. Double-click one of the Parcels in the map.
  3. Look at the bottom of the Parcels attribute table you have opened. It should say 1 of 8,129 selected.

If it still says 0 of 8,129 selected, you did not select a parcel. This might be due to the Layer not being set as selectable. Try going to the List by Selection button in the Contents pane and verifying that the Parcels layer is set to be a selectable layer.

  1. Click the Show selected records button located to the left:

Only a single record should be displayed now because you only have a single parcel selected.

  1. Click the Select tool again.
  2. Click the upper-left side of the map and draw a rectangle similar to the following image:
Selection window location
  1. Look at the Parcels attribute table now. You should see an additional records appear in the table now that they are selected.

When working with vector data there is a one-to-one relationship between features in the map and records in the attribute table.

  1. Click the Clear button located on the Map tab in the Selection group to deselect all selected features.
  2. Close the attribute table by clicking the small X located next to the word Parcels in the small tab at the top of the table.  
  3. Now click the Edit tab in the ribbon.
  1. Activate the Select tool on the Edit tab.
  2. Click one of the small parcels located along the road. The parcel should now be selected.
  3. Click the Vertices button located in the Tools window on the Edit tab in the ribbon.

If the selection disappears when you click the Vertices button, then the parcels layer is most likely not set to be an editable layer. To verify, click the List by Editing button in the Contents pane.

  1. Notice the change in the display of the parcel. You should now see the vertices that form the parcel polygon.

Vector data is stored using the x, y coordinates of the vertices that form the feature. As you have seen, each of those features is then linked to additional attributes that are stored in the attribute table. So, all vector data includes two components, geometry, and attributes. A group of vector data that shares the same geometry (point, line, or polygon) and the same attribute table is called a feature class.

Like rasters, there are several types of vector files that you may encounter while using ArcGIS Pro. Some of the most common are:

  • Geodatabase feature class: Stored in one of several types of geodatabases. Displayed as a gray icon in the Catalog pane. Is the preferred storage format for ArcGIS Pro.
  • Shapefiles: Esri format that stores a single feature class. Is made up of multiple files including SHP, DBF, SHX, and others. Displayed with a green icon in the Catalog pane.
  • AutoCAD drawing: Has a DWG file extension and stores multiple feature classes.
  • AutoCAD drawing exchange file: Has a DXF file extension and stores multiple feature classes. Displayed with a blue icon with a compass in the Catalog pane.
  • Microstation drawing: Has a DGN file extension and stores multiple feature classes. Displayed with a blue icon with a compass in the Catalog pane.
  1. Zoom to the full extent and save your project.
  2. If you are not continuing to the next recipe, close ArcGIS Pro.
主站蜘蛛池模板: 富蕴县| 冷水江市| 斗六市| 汉阴县| 黔东| 乌恰县| 二手房| 平陆县| 师宗县| 金堂县| 新宁县| 东阳市| 塘沽区| 和顺县| 比如县| 保靖县| 阜新市| 百色市| 镇江市| 格尔木市| 武宣县| 云霄县| 青河县| 大英县| 邮箱| 南川市| 曲阳县| 盈江县| 唐山市| 闽清县| 九龙县| 镇巴县| 木兰县| 常德市| 米易县| 博兴县| 荔波县| 元氏县| 南漳县| 宜君县| 大同市|