Fall 2016
   GEO327G/386G: GIS & GPS Applications in Earth Sciences


Messages

Syllabus

Schedule

Lecture

Lab

Projects

Trip(s)


Lab 9: Map Preparation of GPS Field Data


 

 Goal

GPS data from last weekend's field trip need to be brought into the GIS project constructed in Lab 8 and assembled into a geologic map that shows field observations.

Procedure:

The general procedure for lab this week involves the following steps:

  1. Import field data into the ArcGIS project created last week;
  2. Clean the field data of spurious GPS point and vertices.  Edit your point file attribute table, if necessary, so that joint/foliation strikes and dips are correct;
  3. Merge or Append line, point and polygon files to create single feature classes;
  4. Edit these lines and polygons to remove any self-overlaps or undershoots;
  5. Snap the ends of the line segments to create single lines that entirely enclose areas;
  6. Convert the enclosing line features to polygons;
  7. For polygons that lie within polygons, subtract the overlying polygon from the underlying polygon -  this step completes polygon creation and editing;
  8. Add these new feature classes (the new lines, polygons, and point shapefiles) to your existing GIS from Lab 8;
  9. Symbolize the new data to make a map.
  10. Hyperlink field photos to locations.

9.1 Getting Started - Importing Field Data

  1. Open the Collector App on the iPad and sync with ArcGIS Online.  Do this even if you did so on Sunday before leaving the WMA.

  2. On a desktop computer, open the Lab 8 ArcMap document that you used to create your non-editable Base Layer Feature Layer in ArcGIS Online.  Turn off the "All points thru 2015" layer.

  3. Copy the Lab_9_data folder to your local storage space.  For convenience, this should be the same place you stored the Lab_8_data folder.  Unzip the "MH_MMWMA_EditLayers_2016_Export3-28-16" folder into this folder using a right-click>Extract.  Be sure you know the destination of the unzipped folder.  This zipped folder contains a file geodatabase of all of the lines, points and polygons collected by students using Dr. Helper's editable Feature Layer, as well as his attachments (i.e. field photos) associated with points.  Unfortunately, it does not seem to contain photos taken by others users of this Feature Layer.

  4. Rename the geodatabase extracted above with a shorter name that contains your initials.  Do this in ArcCatalog.  Add the layers in this geodatabase your ArcMap from Step 2.
     
  5. Open a Web browser and sign into ArcGIS Online.

  6. If you successfully created a Feature Layer that you edited in the field, go to "My Content", find your editable features, click the down arrow and select "View Item Details". Near the top right of the page, use the down arrow next to "Export" to select "Export to FGDB".  Fill in fields as requested, then click Export.  This will create a new File Geodatabase (akin to a Personal Geodatabase) that will be created and stored within ArcGIS Online in your "My Content" area, with the name you assigned upon Export, with the "Type" listed as File Geodatabase.  These can then be downloaded (use the down arrow next to "File Geodatabase") and added to your Lab_9_data folder and unzipped, as in Step 3.  This is my preferred method of downloading and adding field data to an existing desktop ArcMap (it will preserve attachments, e.g. photos, whereas the methods given below may not) but is only available if you created the editable layer and can thus see it in the "My Content" area of ArcGIS online.  Ignore this step if you used Dr. H's editable feature layer - you already have the files you need from Step 3.

  7. We will next download data from all other iPads. The general process is:
    1. In ArcGIS Online, go to "Groups", click on  click on the down arrow next to "Open" (below the empty thumbnail) for a for one of your classmate's editable layer, then choose "Open in ArcGIS Desktop".  This will create a downloaded layer (item.pitem) in your browser which you can save or open, in either case by double clicking the file.
    2. Double-clicking will open the features layer (which contains point, line, polygon feature classes) in ArcMap and add them to the ArcMap table of contents (TOC).
       
  8.  Do Step 7 for all the editable layers in the Group that contain field data that you have not already downloaded (i.e. Dr. Helper's and possibly your own).  The editable layers in the Group that contain field data for you to download, as indicated by author, are by: xxxxx

  9. At this point you should see everyone's point, line and polygon features in the TOC of your ArcMap document.  Read on....

9.2 Converting ArcGIS Online Data For Use Offline

The layers you downloaded in Step 8 above are not permanently resident as part of your ArcMap document, they are still being hosted online and not locally.  The steps below describe a process to create local copies of the online-hosted Group layers downloaded in Step 8 by importing them into the file geodatabase copied during Step 3. To make and preserve a local copy:

  1. Find the tool within Toolbox (from within ArcMap) "Feature Class to Geodatabase (multiple)" and open it.  From the drop down arrow next to 'Import Features" select each of the feature classes (point, line and polygons) THAT WERE BROUGHT IN DURING STEP 8 as Input.  The "Output Geodatabase" will be the one in your Lab_9_data folder that you renamed during Step 4 above.

  2. Delete from ArcMap any files that might have gotten loaded during this step that aren't the imported editable field layers, i.e. you should see only new point, line and polygon files with student initials at the end of the layer name.  Not sure why this sometimes happens but best to keep a clean TOC...

  3. Remove from the Table of Contents the layers that were added in 9.1 steps 2 and 3 - these are the online-hosted layers for which you now have local copies.  This will leave only the "local" copies - those hosted on your permanent local storage - in your ArcMap, plus the original base layers.

  4. Save your ArcMap document with a meaningful name.

For possible future reference, another way to create local copies is: 1) within the ArcMap TOC, right-click on the online-hosted editable layer of interest, 2) select "Edit Features" and create a local copy, 3) do this a second time and select "Disconnect Local Copy from Server".  Doing this for a few feature classes seems reasonable; for 9 or 12 it would be onerous.  Either way, you now have stand-alone versions of the Editable Layers installed from the "Group" area of ArcGIS Online that are available for use by all of the tools in ArcToolbox.

9.3 Downloading and Converting Point Data From PDFMaps

To Download PDFMaps data from your iPad:

  1. With the map containing your points open in PDF Maps, select the "Map Features" icon, shown below at left in a red square, then choose the "Export" icon at the bottom, shown below at right with the red square.

 

  1. In the "Export Settings" window (shown below), enter the FileName "WMA_KML_XX" where XX is your initials, choose "KML" as the Format, a destination, either your DropBox (faster) or an Email attachment (slower), and set the "Media" option to export photos if desired.  This will create and export a Keyhole Markup Language (KML) file that can be imported into ArcMap or Google Earth.  With more than one Placemark, Line or Track (and photos, if you choose, at least in the iOS version), a zipped KML file(a "KMZ" file) will be created, which is also readable by both programs.  FYI, GPX and CSV, the other export formats listed, are common exchange format for GPS data, though neither will export photos with the points.  We will not use them, but such files can be imported by many programs and Apps, including ArcMap.  Finally, if you choose to, you have some control over which data are exported by selecting from "All Features", "Custom" and "Schema Only" from the Data field.  Regardless of which options you choose, data will be exported with GCS WGS84 coordinates, the spatial reference for all KML.
  2. Within ArcCatalog, create a folder in your Lab_9_data folder named "WMA_PDFMaps_data_XX", where XX is your initials. Retrieve this newly created KMZ file from your DropBox or email, and copy it to this folder.

  3. Copy your field digital photos from your iPad or phone to the same folder - either email them to yourself (slow) or DropBox them (faster).  Do this even if you exported them within a KML file in the above step.

  4. Use the Search tool in ArcMap to find the ArcToolbox tool "From KML".  The "KML to Layer" tool will convert KML points and/or lines and attributes (but not, unfortunately photos nor, oddly, the "Description" data) to geodatabase feature classes within a newly created geodatabase and adds them to your ArcMap table of contents.

9.4 Combining Field Data Into Single Feature Classes

From this point there are many ways forward for creating a finished map.  I have previously found it useful to combine all of the field data of a single type (point, line or polygon) from different field data collection units into single feature classes before performing edits.  This can instead be done after editing (or not at all), but requires editing multiple feature classes of a single type instead of just one.

There can be problems in combining feature classes from different data collection units. First, if attribute table field definitions are not standardized it can be difficult to Append or Merge feature classes. This problem could be avoided If everyone used the same editable Feature Layer from ArcGIS Online in the field, but this wouldn't give you the valuable experience of creating and using your own!  This is also a problem when combining data from two different Apps, like PDFMaps and Collector.  Second, Merging and Appending feature classes runs the very real risk of losing feature class attachments - photos taken in the field with Collector are no longer attached to points where they were collected and might be entirely lost if they weren't downloaded to the field unit during collection.  Because most(?) of you could not collect attachments in the Collector App, this is not much of a concern. The bottom line for this lab is that if you can't get the steps below for combining feature classes from different iPads and PDF maps to work well, or if you are concerned about loosing attachments, then proceed by editing individual feature classes using the techniques in section 9.5.

  1. To create single point, line and polygon feature classes from the data collected on all of the iPads we will use the Merge tool.  Before doing so, if you want to keep track of your data, create a new text field in your point, line and polygon attribute tables and use the field calculator to enter your initials for each record that's your own.  Ask Nathan how to do this if you need help.

  2. Using the Merge tool, merge first the point, then the line and finally the polygon feature classes into single point, line and polygon feature classes.

  3. Remove the original non-merged feature classes from ArcMap.  You should now have only 3 field data feature classes, one point, one line and one polygon feature class, each containing all of the field data of each geometry type.

9.5 Cleaning Collector App Data By Editing

Field data are rarely perfect; to fix errors we edit.  Polygon collected while streaming may have contained spurious vetices that resulted in splitting a polygon into two or more pieces when "submitting" during capture.  Point data may contain invalid strike or dip values, lines may need to be turned into polygons or adjusted in position, etc.  Furthermore, data collected on multiple units needs to be evaluated and duplications removed.  The orthophoto, added to your map at this stage, may help.  We begin with polygons. Don't forget to turn on or off layers for selection if you have trouble selecting what you want to edit.  You are, of course, familiar with the editing process from Labs 4 and 5.  Below are a few additional pointers and a list of items to complete:

  1. To delete a polygon, start editing the appropriate feature class, select the polygon (using any of the selection tools available, including the attribute table) or its row in the attribute table and press the keyboard Del key, or right-click in the polygon and choose delete.

  2. To edit polygon vertices, start editing, select the polygon, right-click on it and "edit vertices".  Move, delete or insert a vertices as needed.

  3. To combine overlapping polygons, select them during an editing session, then use the drop-down menu on the Edit toolbar and "Merge".

  4. To subtract two overlapping polygons, do the same but choose "Clip".  If you use the Clip option, be sure that all base map polygon layers are first turned off in the TOC.  Clipping will clip a hole in any polygon layer beneath the selected polygon (like, for example, the WMA boundary polygon) that is turned on in the TOC.

  5. The "Split Polygon" tool on the Editor toolbar can create two polygons from a single one.

  6. To convert closed lines into polygons, first edit them to ensure that the starting and ending nodes of the lines are snapped together, then use the ArcToolbox tool "Feature to Polygon". This tool will fail if the closed lines are not truly closed by snapping.  This tool also requires that the lines being converted are within the same feature class - you may have to Append or Merge separate field unit line feature classes first.

  7. Once the polygon layer(s) are free of duplicates and error-free, they can be combined into a single feature class, if not already done, using the Merge or Append tool, as described above.  Add this new layer to the map if not already there.

  8. Finally, we are now ready to update "Outcrops thru 2015" feature class.  To do so, we would like to subtract (cut donut holes in) the existing outcrops where grassy area polygons were collected AND add the new granite outcrops to the existing file. There are a number of ways to do this but we will use the following four steps:

    1. Extract the grassy area polygons from the cleaned, merged polygon file created in Step 7 to a new feature class.  Do this by selecting the grassy area polygons then, with a right-click on the layer in the TOC, Data>Export Data... to a new feature class, "Grassy Areas", in your Lab_9_data geodatabase and add it to the map.
    2. Edit your cleaned, merged polygon file to delete the grassy area polygons.  Save Edits. Stop Editing.
    3. Find the Erase tool in ArcToolbox and use the new Grassy Areas feature class to "erase" granite from the "outcrops_thru_2015" feature class.  Save your result as "Outcrops_thru_Spring2015_NoGrass" in your geodatabase.
    4. Merge your Outcrops_thru_Spring_2016 and cleaned, merged and edited polygon file using the Merge tool in ArcToolbox.  This will create a new file containing all granite outcrop polygons.  Name it "Outcrops_thru_Spr_2016" and save it in your geodatabase.

It's time for points...

  1. Imported point files from PDF Maps, alas, do not have attribute tables that match our Collector App point layers.  They can nevertheless be Merged together to make a single feature class - do so using the Merge tool.

  2. Edit the attribute table of this merged file to enter Joint and Foliation strikes and dips that are in the original PDFMap on the iPad into the empty strike and dip fields in the attribute table.  You will only be able to do this for your iPad data - we will not share all unit's PDFMaps data. For future reference, keep in mind that importing KMZ data using the "KML to Layer" tool does not preserve the "Description" information (such as strikes and dips you may have pecked in...) in PDFMaps, nor does it import photos attached to points.
     
  3. Similarly, enter the PT_TYPE for these same records.  Without this information we can't symbolize the points.

  4. Continue editing... remove duplicate measurements, check that strikes and dips have reasonable values (a strike of zero is probably an error), make sure all points have a PT_type entry (enter one or else delete them).

  5. You will likely find it easiest if the data are symbolized. Use the new layer file in the Lab_9_data folder to do this quickly.  To apply the layer file, open the Symbology tab from the Layer Properties window,  click "Import" and accept the defaults.
     
  6. Save Edits, Stop Editing.

Finally, the lines...

  1. Not much to do here, probably only removing duplicates.  See the polygon section for editing instructions.

9.6 Hyperlinking Field Photographs to Field Sites

Read the section "Setting HTML pop-up properties for feature layers" in ArcGIS Help and create HTML pop-up displays for 3 or more field photographs of your choosing.  These will be set up as "attachments" on the point feature class (see ArcGIS Help for how to create and enable attachments).  You choose how best to organize the data!  An alternative but less attractive way to do this is to enable the hyperlink tool using a dynamic hyperlink for each point feature.  Search ArcGIS Help for "Using Hyperlinks", paying particular attention to the section on "Defining dynamic hyperlinks though Identify Results".  The preferred method for establishing and viewing hyperlinks is:

  1. Rename your photos with meaningful file names so that you can easily know what they show.

  2. We will link photos to the field station points by adding them as "Attachments" to the points.  To add attachments, we first need to "enable" the point feature class so it can contain attachments.  Follow the two steps in ArcGIS Help "Enabling attachments" to do so.

  3. Using the instructions in ArcGIS Help "Adding attachments to feature", attach your photographs to the points where they belong.

  4. Once attached, there are number of ways to view the photos, including using the Identify tool and the attribute table.  Read about these in ArcGIS Help "Viewing attachments".

  5. Neither of these viewing techniques is very elegant - the picture viewing window often covers the map.  We will instead set up HTML pop-up windows for viewing the photos and attribute information.  Read ArcGIS Help "Setting HTML pop-up properties for feature layers".  We will use the first option mentioned, "As a table of visible fields"  that "Include(s) feature class attachments".  Read carefully these sections and create your pop-ups.  It's a lot simpler than it looks and you'll be pleased with the result.  An example is shown below; Popups are launched using the HTML Popup tool on the Main Toolbar, highlighted in red below.

Popup window display

9.7 Create a new map

  1. Create two page-size layout of the Saturday and Sunday field trip areas containing the new map elements - granite outcrops, dikes and measured point features.  A poor example (e.g. joints illegible, Explanation contains units not on map, contours below outcrops, no LIDAR hillshade!) from a previous trip is shown below.  Use the rock unit and outcrop symbology from Lab 8.  Show dikes as thin red lines.

To Turn In:

The layout described in step 8.5 above, AND a screen capture, like that above, that shows a photograph attachment open in ArcMap.

You're Done!

   

M. Helper, 2007, 2008, 2012, 2014, 2015, 2016

 

 Last updated September 24, 2017
 Comments and questions to helper@mail.utexas.edu
 Geological Sciences,  U. Texas at Austin