Transcript
Page 1: Exercise 4 - Creating and Editing Spatial Data

Creating and Editing Spatial Data 

Spatial Data  One of the very important things that an ArcMap user has to learn is how to create and edit spatial data. But, it is also as important as to learn the concept of spatial data. Remember that in ArcMap, a user can make use of two types of data, the spatial and the non‐spatial. Non‐spatial data are data that is not geographical integrated, which mean that in using such kind of data you have to perform some operations. Spatial data on the other hand, is already a part of a graphical representation of an area. Spatial data can be integrated into a line/polyline, point, or polygon. With that information, whenever a user will click any feature within a map (with the use of Identify) ArcMap will be able to display added information as included within the spatial data. Spatial data is also termed as geospatial data or geographic information. Included in the data are geographic locations of features and boundaries, coordinates, and topology. Mostly spatial data are the one needed for GIS processing.  

Data Acquisitions  Acquiring spatial data can be done in many ways. There is what we called as digitizing, it is the process where a printed map has to be captured using a photo scanner and the image that it produced is trace within ArcMap. Another one still with the use of sketching method, will be from aerial photograph and trace as well within ArcMap. Also, we can acquire spatial data by actually doing a survey. Surveys can be done using the Total Station or using the Global Positioning System (GPS).  Data from the Total Station or the GPS still needs to be processed in order for it to be used within ArcMap. The data that has been gathered will then be manipulated in order for it to be aligned with any coordinate systems and on any existing ArcInfo spatial data.  

GIS Laboratory Exercise 4 – Creating and Editing Spatial Data  Objectives: In this exercise, you will: 

- Align an acquired aerial photo using Georeferencing - Creating and Editing spatial data from aerial photograph - Importing spatial data from CAD file 

 Using Georeferencing to align an aerial photograph  

4‐1  

Page 2: Exercise 4 - Creating and Editing Spatial Data

Acquiring a spatial data can be done in many ways. With the existence of the internet, we can be able to acquire abundant sources of these data. For this portion of the exercise, we will utilize an aerial photo obtained from GoogleEarth program.  

o Run ArcCatalog.  

o Make sure that the file extension is visible. Hint: Click Customize menu and then select ArcCatalog Options.  

o Click the General tab if necessary, and make sure that Folder Connections (always shown), Toolboxes, and Return to last location when ArcCatalog starts up are the only boxes that shows the check sign. Then click OK.  

o Verify LearnGIS2 folder appears on your Folder Connections. If not, then you have to add LearnGIS2 folder.  

o Expand LearnGIS2 and select Creating and Editing Spatial Data folder.  

1. What are the files and its corresponding type contained in this folder?  ________________________________________________________________________  

o Expand Creating and Editing Spatial Data folder, right‐click on SRP_01.jpg, and select Properties from the popup menu.  

2. Does this Raster Dataset contain any spatial reference?  ____________________  

o Close the Properties dialog box and click on the Preview tab.  

3. Describe the content of SRP_01.jpg.  ________________________________________________________________________  

o Close ArcCatalog and run ArcMap.  

o In ArcMap, click File menu and select Open. Locate CebuCitySRP.mxd map document in ..\LearnGIS2\Creating and Editing Spatial Data folder and click Open. 

 Your current view is the SRP Area which is a view bookmark. Currently, SRP (South Road Properties) does not exist on this map. It is our objective to create the map of the SRP. Since 

4‐2  

Page 3: Exercise 4 - Creating and Editing Spatial Data

the only way we can do that is to make use of a reference map which is an aerial photo of the area.  

o From Catalog, locate SRP_01.jpg and drag‐drop it to the Data Frame.  

o On the Create Pyramids for SRP_01.jpg (4000 x 2604) dialog box, click on Yes. (If a dialog box related to Spatial Reference will appear, just click OK).  

o Zoom to Full Extent.  

 4. Describe what happened.What is the scale of the map? Can you see the image and the 

map clearly?  ________________________________________________________________________  ________________________________________________________________________  ________________________________________________________________________  

o Zoom to SRP_01.jpg layer. Hint: Right‐click SRP_01.jpg and then click Zoom To Layer.  

o Using the mouse scroll or the Zoom Out tool, zoom out the Data Frame until you reach the approximate scale value of the full extent view.  

5. Describe the actual location of the image with respect to the map.  ________________________________________________________________________  ________________________________________________________________________  

o Click the Full Extent zoom tool again.  

o Click the Customize menu then select Toolbars and verify that Georeferencing is checked.  

o The Georeferencing toolbar   will appear. Dock it to the toolbar area.  

Since Georeferencing tool will work on Raster and importable formats, what would only appear on the Layer drop‐down list is the SRP_01.jpg. 

 

4‐3  

Page 4: Exercise 4 - Creating and Editing Spatial Data

o Click Bookmarks menu and select SRP Area.   

o Click the Georeferencing drop‐down menu and click Fit To Display.  

o Click Bookmarks menu again and select RightMost Point. Locate a yellow‐colored circle on the image similar to what is shown below. 

  

o Zoom to Full Extent. From the Table Of Contents, move the SRP_01.jpg above BrgysOfCebuCity layer.  

o Click Bookmarks again and select LeftMost Point to view the leftmost part of the image as shown below. 

  

o This time, click the Bookmarks menu and click SRP Area.  Take note that for this exercise reference points are held‐out for you to make sure that you will be able to easily locate it.  

4‐4  

Page 5: Exercise 4 - Creating and Editing Spatial Data

o Place the SRP_01.jpg below BrgysOfCebuCity layer once again.  

o Set the transparency of BrgysOfCebuCity to 75%. Hint: Right‐click on BrgysOfCebuCity layer and click Properties. Click the Display tab on the Layer Properties dialog box and type 75 on the Transparent field.  

o Click Bookmarks menu and select LeftMost Point. Be sure that the yellow dot on the image will be visible, if necessary zoom‐in some more.  

o On the Georeferencing tool, uncheck Auto Adjust (click the Georeferencing dropdown 

menu) and then click the Add Control Points button  . Click on the center of the yellow dot and set the other endpoint of the line at an intersecting road just above it. Verify your result through the following graphic. 

  

o Now click the Bookmark menu again and select RightMost Point.  o Click on the center of the yellow dot and set the other endpoint of the line at the tip of a 

polygon shape as shown below. 

4‐5  

Page 6: Exercise 4 - Creating and Editing Spatial Data

  

The first protruding polygon on this area. 

o Click the Georeferencing dropdown menu and click Update Display.  Note: In case you will have some mistakes in using the Add Control Points, just open the Link 

Table dialog box by clicking the View Link Table  . On the Link Table dialog box, you may delete any existing links that you have created.  

6. What happened to the image on the Data Frame (Use the Pan tool  to examine the map)?  ________________________________________________________________________  

o Click Update Georeferencing in the Georeferencing tool. Save your map as MyCebuCitySRP in your ..\MyGISOutputs folder.  

o Remove the Georeferencing tool from your toolbar. Hint: Right‐click on the empty area of the toolbar for the popup menu to appear and uncheck Georeferencing. 

 Creating a Spatial Data by sketching the aerial photograph  The general term used for any geographic layer within any GIS software is Spatial Data. In ArcMap 10 this is specifically called a Feature Class while in older ArcGIS 3 it is commonly as Shapefile.  

o Click on the Catalog tool and locate Cebu_City_SRP geodatabase  ..\LearnGIS2\Creating and Editing Spatial Data folder. which is in

 o Right‐click on Cebu_City_SRP geodatabase select New and then click Feature Class. 

4‐6  

Page 7: Exercise 4 - Creating and Editing Spatial Data

 o On the New Feature Class dialog box, type SRP_Roads on the Name field and then select 

Line Features under Type. Click Next to continue.  

o For the coordinate system selection, click on Import. On the Browse for Coordinate System dialog box locate and select BrgysOfCebuCity feature class which is located in ..\LearnGIS2\Creating and Editing Spatial Data\Cebu_City_SRP geodatabase then click Add. Verify that Philippines_Zone_IV will appear in the Name field. Click Next thrice.  

o Under the Field Name column, on the third row type Road_Name and set the Data Type as Text then click on Finish. 

SRP_Roads layer is now being added to the Table Of Contents, but this layer is still empty therefore we will place some features into this layer. 

o Right‐click on the empty area of the toolbar and enable the Editor tool. Dock the Editor tool if necessary. Also enable the Snapping tool and dock it if necessary.  

o Click the Editor drop‐down menu and click Start Editing as shown below. 

  

o The Create Features docking window now appeared on the right side of ArcMap. Select the SRP_Roads and on the Construction Tools be sure to select Line.  

o Zoom to the area near the Fort San Pedro near the MalacañansaSugbo and begin tracing the major road from that point. Be sure that Use Snapping is unchecked. Verify this in Snapping tool. 

While doing the tracing you might want to pan or zoom the map without losing the tracing mode. You can do that by utilizing the shortcut keys. In order to pan the map while in tracing mode, press the C key and as soon as the cursor changes into a hand symbol without releasing the C key drag the mouse to where you want the map to be focused. 

For the zooming operation while on tracing mode, just press the Z key and drag a box around the area you want to zoom‐in. Just use the mouse scroll if you want to zoom‐in or out without specifying an area.  

4‐7  

Page 8: Exercise 4 - Creating and Editing Spatial Data

To specify an end to a segment just click on it and continue the tracing until you arrive at the location of the boundary between Talisay and Cebu City. Whenever you arrive at that point, right‐click and select Finish Sketch on the popup menu. The road should be more or less likely the same as the following. 

 

o While the road is highlighted, open the attributes by clicking the Attributes button on 

the Editor toolbar  . On the Attributes dockable window, set the Road_Name field as Cebu South Coastal Road.  

o Next, we will trace the SRP‐Mambaling Road which is completely shown below. (Name the road on the Attributes window as SRP‐Mambaling Road) 

4‐8  

Page 9: Exercise 4 - Creating and Editing Spatial Data

  

o Click on the Editor drop‐down menu and click Save Edits, then Stop Editing.  

o Set the SRP_Roads symbol color to Yucca Yellow (row 1 , column 5) and its Width to 2. 

This time we are going to create the area which is the entire SRP. 

o Using what you learn in creating new feature class, create a polygon feature class and name it as SRP_Area. For the fields, just provide the following: 

o Field Name: Area_Name – Data Type: Text  

o Using what you learn when you authored the roads, start editing the feature class.  

7. On Create Features window, does the SRP_Area feature class appear on the list?  _____________________ 

For the SRP_Area feature class to appear, you need to create a template for it. 

o Click on the Organize Templates   on the Create Features window.  

o On the Organize Feature Templates window, select SRP_Area and select New Template then click Finish then Close.   

4‐9  

Page 10: Exercise 4 - Creating and Editing Spatial Data

o On the Create Features window, select SRP_Area and on the Construction Tools select Polygon and trace the boundary of the SRP artificial island as shown below and set the Area_Name to SRP Artificial Island. 

  

o Save and stop the editing.  

o Set the symbol color of SRP_Area to Violet Dust (row 7, column 10).  

o Open the SRP_Area’s attribute table.  

8. How much is the area of the created polygon? _______________________ 

We have created the area of the SRP but if you hide the SRP_Area and view the image, you will observe that there is a pond within the area. We have to remove a portion of our existing polygon to make the exact reclaimed area of SRP and make the hallow area. 

o Set the SRP_Area transparency to 30%. Hint: Right‐click on the SRP_Area layer in the Table Of Contents and select Properties. Click on Display if necessary, and set Transparent field to 30 then click OK.  

o Click the Editor drop‐down menu and Start Editing.  

4‐10  

Page 11: Exercise 4 - Creating and Editing Spatial Data

o On the Snapping toolbar, be sure to enable Use snapping. Make sure that the snapping mode will only be End Snapping by clicking on other snapping modes to remove the highlight as shown below. 

  

o Select the SRP_Area on the Create Features window and select the polygon area (which will show a highlighted polygon) on the Data Frame and from the Editor tool select Cut 

Polygons Tool  .  

o Now begin tracing the area of the pond and to end the tracing, double‐click on the starting point of this trace. Refer to the figure below for verification. 

  

o Currently, the SRP polygon is also selected. Now click on Edit Tool   and select the pond polygon and press the delete key.  

o Save and stop editing.  

9. How much is the area of the SRP_Area polygon this time? __________________  

o Restore the transparency of the BrgysOfCebuCity and SRP_Area back to 0 and hide SRP_01.jpg 

The correct way of constructing the polyline road feature on intersections is to cut the road once it arrived on an intersection. Crossing of lines within a polyline feature class is incorrect, 

4‐11  

Page 12: Exercise 4 - Creating and Editing Spatial Data

inthe following step we have to edit SRP_Road where we will correctly sketch the SRP‐Mambaling‐Cebu South Coastal intersection. 

o Open the SRP_Roads attribute table.  

10. How many records are there in the SRP_Roads? ______________  

o Using what you have learned in editing layers, edit the SRP_Roads. 

o Select the Cebu South Coastal Road and from the Editor toolbar, select Split Tool  .  

o Click on the intersection between SRP‐Mambaling Road and South Coastal Road.  

11. Once again view the SRP_Roads attribute table. How many records are there?   ___________  

o Save and stop your editing.  

o Update your map document. Hint: Click on File menu then Save.  

o From what you have learned in map layout (ie. Exercise #1), create a map layout focusing on the SRP area and export it on a PDF file. Be sure to enable the labels on the roads within SRP. Include scale bar and scale text as well with a map title “Cebu City South Road Properties”.  

 

Prepared by:  Engr. Janice B. Jamora, MEng and Engr. Noel T. Navasca, CompE December 2012  References: 

1. ArcGIS Desktop II: Tool and Functionality by GEODATA, ESRI 

4‐12  


Recommended