= GPlates Tutorial: Preparing Data in ArcGIS for GPlates == Author Sabin Zahirovic^1^ ^1^EarthByte Research Group, School of Geosciences, University of Sydney, Australia == Introduction The vast majority of users that deal with geospatial data are likely to be using commercial GIS packages to display and edit their data. This tutorial will help you create and prepare data in ArcGIS (a common commercial GIS package) for viewing in *GPlates*. It is important to note that *GPlates* will import any shapefile (assuming it conforms to shapefile standards), and can export shapefiles to be used in other GIS platforms. The tutorial will involve loading *GPlates* data into ArcGIS to familiarize the user on the file conversion capabilities of *GPlates*. The later sections deal with adding *GPlates* attributes such as Plate IDs, to selected geological provinces in ArcMap, in order to create a shapefile that can be loaded into *GPlates* and reconstructed using the EarthByte rotation model. [NOTE] =================================== The shapefiles associated with this tutorial are in a WGS 84 geographic datum. If you are working in another projection within ArcGIS, you may need to apply a geographic transformation to the data. This is reasonably straight-forward and automatic in most GIS packages. Refer to the manual of your GIS package for more information. =================================== === Required Data - ftp://ftp.geosci.usyd.edu.au/pub/permanent/earthbyte/GPlates/SampleData/Datafiles/DataBundleForNovice.zip[GPlates data bundle (i.e. DataBundleForNovice folder)] - http://www.earthbyte.org/Resources/GPlates_tutorials/Preparing_Data_in_ArcGIS_Tutorial/SampleData/Preparing_Data_in_ArcGIS_Tutorial_Data.zip[ArcGIS tutorial data] Create a folder named +ArcGIS_Tutorial+, unarchive the data bundles into this folder, and remember the location so you can access the datasets later. == Loading GPlates data in ArcGIS - Open a new empty map document in ArcMap. - Click the 'Add Data' image:Add_Data.png[] button in the main window. - Navigate to the folder in which you saved +GPlates_Coastline.shp+. You may need to click the 'Connect To Folder' image:Connect_To_Folder.png[] image button to access some folders. - Once you have found your *GPlates* coastline file, select it and click 'Add'. image::shapefile_tut_image4.JPG[] - The *GPlates* coastline contains feature attribute data. It may be useful to colour the coastline features by Plate ID. To do this, right-click on the +GPlates_Coastline+ layer in the Table of Contents on the left side of the screen. - Click 'Properties' from the drop-down menu. image::shapefile_tut_image5.JPG[] - Select the 'Symbology' tab in the 'Layer Properties' screen. Click *Unique values* under the 'Categories' section. The value field is the feature attribute that the colour ramp will be assigned to. - Select the *PLATEID* Value Field and choose a suitable colour ramp. image::shapefile_tut_image6.JPG[] - Click 'Add All Values' to load all the Plate IDs from the shapefile. The next step will be to make the displayed lines thicker. Click the 'Symbol' column and select 'Properties for All Symbols'. image::shapefile_tut_image7.JPG[] - Change the line width to +2.00+ points. - Leave all the other settings as their default value and click *OK*. image::shapefile_tut_image8.JPG[] - Click *OK* again to return to the map display window. The coastline will now be coloured by Plate ID. It will be essential to use the 'Identify' image:Identify.png[] tool to query Plate IDs and other attributes. The figure below shows the Australasian region coloured by Plate ID. image::shapefile_tut_image9.JPG[] - To query the shapefile, select the 'Identify' image:Identify.png[] tool and click on the desired feature. For example, clicking on the Australian coastline will display attribute information for that feature. The Plate ID of 801 belongs to Australia and will be used to assign Plate IDs to new shapefile features in the following sections. image::shapefile_tut_image10.JPG[] - Save your map document. == Assigning Plate IDs to geological provinces As most external data that users are working with does not have assigned Plate ID, this tutorial section will describe the process of assigning Plate IDs to shapefile features in an external GIS environment such as ArcMap. This will allow you to load shapefiles directly in *GPlates* and reconstruct your data through time using the GPlates/EarthByte rotation model. Additional data is available from: http://www.earthbyte.org/Resources/earthbyte_gplates.html[] - Open the map document from the previous section in ArcMap. - Click the 'Add Data' image:Add_Data.png[] button in the main window. - Once prompted, navigate to the +GPlates_SHP_Tutorial+ sample data folder. - Select the following shapefiles: +CarpentariaBasin.shp, EuclaBasin.shp, MarionTerrain.shp and QLD_Plateau.shp+ - Click 'Add' to display these geological provinces. image::shapefile_tut_image11.JPG[] image::shapefile_tut_image12.JPG[] - Right-click on the +CarpentariaBasin+ layer, and select 'Open Attribute Table'. The 'Attribute Table' contains all the relevant information for the features in that selected shapefile. Fields can be added or deleted (be vary of this, they cannot be recovered once deleted) and attributes can be edited much like an ordinary spreadsheet. image::shapefile_tut_image13.JPG[] - The 'Attribute Table' for the Carpentaria Basin contains only one polygon feature. We want to add a +PlateID+ column (the ArcGIS term is ‘Field’) so that these geological provinces can be loaded into GPlates and reconstructed through time using the EarthByte rotation model. - In the 'Attribute Table' click *Options -> Add Field* image::shapefile_tut_image14.JPG[] - Name the new field as +PlateID+ and assign it the +Short Integer+ data type. Click *OK*. image::shapefile_tut_image15.JPG[] - Right-click on the +PlateID+ column heading, and select 'Field Calculator' from the drop-down menu. In the 'Field Calculator' screen, type in +801+ (without spaces) and click *OK* to assign the Plate ID. When this shapefile is loaded into *GPlates*, this feature will reconstruct using the rotation entry for Plate ID 801 (Australia). image::shapefile_tut_image16.JPG[] image::shapefile_tut_image17.JPG[] - Repeat the last three steps for the other three geological provinces, adding a +PlateID+ field and assigning the Plate ID of +801+ to each shapefile. Changes that are made using the 'Field Calculator' are automatically appended to the shapefile. The shapefiles are now ready to be loaded in *GPlates* and reconstructed using the EarthByte rotation model. NOTE: In case you want to make changes to individual records in the shapefile using the Shapefile Attribute Table in ArcMap, you will need to enter an edit session. This is outside the scope of this tutorial -- refer to the ArcGIS documentation on how to use 'Editor'.