Author: Sabin Zahirovic1
1EarthByte Research Group, School of Geosciences, University of Sydney, Australia
This tutorial describes some common tasks related to managing shapefiles that can be carried out in GPlates. Shapefiles can be viewed natively in GPlates without having to perform any file conversions (assuming they conform to shapefile standards). GPlates will also export shapefiles for use in other GIS platforms (such as ArcGIS). Additionally GPlates is capable of converting legacy PLATES4-formatted files into the shapefile format, as well as GPlates GPML and GMT xy.
(1) Shapefiles are actually a collection of linked files. All these files must be located in the same directory as the .shp file that is being loaded in GPlates. The file extensions include: .sbx, .dbf, .prj, .sbn, .shx. When using GPlates only the file with the .shp extension is loaded, the rest are automatically referenced by the program, but will not have to be opened or read by you the user.
(2) When you create shapefiles in GPlates, GPlates will automatically generate the necessary ancillary files.
(3) Only rename shapefiles in your GIS editor, including GPlates (i.e. do not rename the .shp file in your Finder/My Computer etc).
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.
Shapefile tutorial data
1. Open GPlates
2. The sample GPlates data is contained in the data bundle for this tutorial.
In GPlates, navigate to File → Manage Feature Collections → Open File…
3. Navigate to the sample data directory, and select the coastline file
i.e. “Global_EarthByte_GPlates_Coastlines_20091014.gpml” (Figure 1) → Open
Figure 1. Loading feature data into GPlates.
4. Coastlines are now displayed in GPlates. To export these data in the shapefile format, open the ‘Manage Features Collection’ window again. Next to the filename, click the ‘Save a copy of the file with a different name’ button (Figure 2).
Figure 2. There are different options for saving files under the Actions tab in the Manage Feature Collections window. In this exercise we are using the option to save a copy of our data with a different name.
5. Specify the name of the output shapefile as “GPlates_Coastline”, and select the ‘ESRI shapefile (*.shp)’ file type (Figure 3). Click ‘Save’ to complete export. GPlates exports the geometry with the accompanying attribute information such as Plate ID, Name, etc. This means that this shapefile can be directly loaded in GPlates again.
Figure 3. The ‘Format’ drop down box enables you to choose which format you would like your data to be saved in; .shp in this case.
1. File → Manage Feature Collections → Open File…
Navigate to where you have saved sample data for this tutorial, select the four geological province shapefiles (CarpentariaBasin.shp, EuclaBasin.shp, MarionTerrain.shp and QLD_Plateau.shp) and click ‘Open’.
The first time you load a shapefile in GPlates, you will be prompted to assign the shapefile fields that correspond to the GPlates model properties. For our purposes, ensure that Plate ID and Name match the corresponding shapefile fields of the same titles, by making the necessary selections from the drop-down lists (Figures 4 and 5). Click ‘OK’ and repeat this process for the other geological provinces.
Note: Warning messages regarding unknown feature types may appear upon loading, but these can be ignored. This is because we have not assigned Feature Types in this exercise.
Figure 4. Selecting the shapefile attribute that corresponds to each GPlates geometry.
Figure 5. Use the drop down boxes to make sure that the GPlates Plate ID and Name fields match the correct shapefile attributes.
If by accident you choose the wrong shapefile attribute, you can reopen the 'Associate shapefile attributes with GPlates model properties' window at any time by using the ‘Configure’ button, under Actions, in the Manage Feature Collections window.
2. File → Manage Feature Collections → select the coastline and rotation files from the GPlates data bundle folder (the coastline file will already be loaded if you are continuing on from the last exercise) → Open → now close the Manage Feature Collections screen to return to the main globe view.
The coastline and rotation files are now loaded. Use the animation tools to reconstruct your data. You will notice that the four geological provinces will move with the Australian plate (as they share the same plate ID). In Figure 6, screen-shots from GPlates are taken at present day (0 Ma) and 20 Ma.
Figure 6. View of the Australian region showing that the basins are moving fixed to Australia.