{"id":631,"date":"2022-02-16T19:23:02","date_gmt":"2022-02-17T00:23:02","guid":{"rendered":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/?post_type=chapter&#038;p=631"},"modified":"2022-02-17T01:35:15","modified_gmt":"2022-02-17T06:35:15","slug":"part-i-copying-a-project","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/chapter\/part-i-copying-a-project\/","title":{"raw":"Part I: Copying a Project","rendered":"Part I: Copying a Project"},"content":{"raw":"<h1>Creating a Copy of a Project<\/h1>\r\nWe will begin by learning how to copy our project from Chapter 1. This will allow us to build upon the work that we have already done.\r\n\r\nTip: Good digital humanities projects should always keep future compatibility and collaboration in mind. By designing your GIS project with good data management practices, you will be able to find and open your files when you need them, and it will be easier to share your project with collaborators.\r\n<ul>\r\n \t<li>Within the QGIS folder that we created in Chapter 1, there is a folder called Chapter1.\r\nUsing Windows Explorer, right-click the folder called Chapter1.<\/li>\r\n \t<li>Click Copy<\/li>\r\n<\/ul>\r\n[caption id=\"attachment_632\" align=\"aligncenter\" width=\"945\"]<img src=\"http:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.1.png\" alt=\"Figure 2.1. From the QGIS folder click on Chapter 1 and copy it. \" width=\"945\" height=\"1068\" class=\"size-full wp-image-632\" \/> <strong>Figure 2.1<\/strong>[\/caption]\r\n\r\n&nbsp;\r\n\r\n[caption id=\"attachment_633\" align=\"aligncenter\" width=\"877\"]<img src=\"http:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.2.png\" alt=\"Figure 2.2. After pasting the copy of Chapter 1 right clicking on the Chapter 1 file. This image shows the pop-up that will allow you to paste the Chapter 1 - Copy. The paste choice is the sixth option. \" width=\"877\" height=\"962\" class=\"size-full wp-image-633\" \/> <strong>Figure 2.2<\/strong>[\/caption]\r\n\r\nThis will create a folder called Chapter1 - Copy.\r\n<ul>\r\n \t<li>Right-click the folder called Chapter1 - Copy<\/li>\r\n \t<li>Click Rename<\/li>\r\n \t<li>Type in Chapter2<\/li>\r\n \t<li>Press Enter on your keyboard<\/li>\r\n<\/ul>\r\n[caption id=\"attachment_634\" align=\"aligncenter\" width=\"856\"]<img src=\"http:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/fig-2.3.png\" alt=\"Figure 2.3. This shows that right clicking on the new file will put the name in a box and highlight it so it can be changed. \" width=\"856\" height=\"379\" class=\"size-full wp-image-634\" \/> <strong>Figure 2.3<\/strong>[\/caption]\r\n\r\nWe will now open the new Chapter2 folder and rename the project file inside.\r\n<ul>\r\n \t<li>Double-click on the folder called Chapter2<\/li>\r\n \t<li>Double-click on the folder called ProjectFiles<\/li>\r\n \t<li>Right-click on the QGIS project file called Project1<\/li>\r\n \t<li>Click Rename<\/li>\r\n \t<li>Type in Project2<\/li>\r\n \t<li>Press Enter on your keyboard<\/li>\r\n<\/ul>\r\n[caption id=\"attachment_635\" align=\"aligncenter\" width=\"877\"]<img src=\"http:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.4.png\" alt=\"Figure 2.4. This shows the file name being changed to \u201cProject1\u201d.\" width=\"877\" height=\"320\" class=\"size-full wp-image-635\" \/> <strong>Figure 2.4<\/strong>[\/caption]\r\n\r\n<div class=\"textbox shaded\"><strong>Note:<\/strong> if we had simply opened the Project1 project file and used Save As to create a copy of it named Project2, we would only be creating a copy of the project file. We would not be creating duplicate copies of the layer data that the project file references. In fact, this hypothetical Project2 file would reference the layer data of the original Project1 project file from which it was copied. The problem here is that this layer data is stored with the Project1 file and not with the Project2 file. We need all of our data (i.e., layer files and the project file) stored in the same parent folder (e.g., Chapter2) so that we can zip this folder and share it with others. It also is critical to have all of our data in the same folder for another reason: if we ever deleted the Chapter1 folder and then tried to open Project2, it would not work because the layer data that Project2 is trying to open has now been deleted.<\/div>\r\n<h1>Opening a Copied Project<\/h1>\r\n<ul>\r\n \t<li>Double click on the freshly renamed Project2 file to open it in QGIS.<\/li>\r\n<\/ul>\r\nQGIS will now open all of the work you did in Chapter 1. We can reuse some of this work in this chapter so that we do not have to start from scratch.\r\n<div class=\"textbox shaded\"><strong>Note:<\/strong> if you have not completed Chapter 1, you will have to go to that chapter to set up Project1 before you can copy Project1 to create Project2. Chapter 1 shows you how to create Project1. It includes links to download all of the data you need and instructions on how to import it to QGIS.<\/div>\r\n&nbsp;","rendered":"<h1>Creating a Copy of a Project<\/h1>\n<p>We will begin by learning how to copy our project from Chapter 1. This will allow us to build upon the work that we have already done.<\/p>\n<p>Tip: Good digital humanities projects should always keep future compatibility and collaboration in mind. By designing your GIS project with good data management practices, you will be able to find and open your files when you need them, and it will be easier to share your project with collaborators.<\/p>\n<ul>\n<li>Within the QGIS folder that we created in Chapter 1, there is a folder called Chapter1.<br \/>\nUsing Windows Explorer, right-click the folder called Chapter1.<\/li>\n<li>Click Copy<\/li>\n<\/ul>\n<figure id=\"attachment_632\" aria-describedby=\"caption-attachment-632\" style=\"width: 945px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.1.png\" alt=\"Figure 2.1. From the QGIS folder click on Chapter 1 and copy it.\" width=\"945\" height=\"1068\" class=\"size-full wp-image-632\" srcset=\"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.1.png 945w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.1-265x300.png 265w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.1-906x1024.png 906w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.1-768x868.png 768w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.1-65x73.png 65w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.1-225x254.png 225w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.1-350x396.png 350w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><figcaption id=\"caption-attachment-632\" class=\"wp-caption-text\"><strong>Figure 2.1<\/strong><\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_633\" aria-describedby=\"caption-attachment-633\" style=\"width: 877px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.2.png\" alt=\"Figure 2.2. After pasting the copy of Chapter 1 right clicking on the Chapter 1 file. This image shows the pop-up that will allow you to paste the Chapter 1 - Copy. The paste choice is the sixth option.\" width=\"877\" height=\"962\" class=\"size-full wp-image-633\" srcset=\"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.2.png 877w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.2-273x300.png 273w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.2-768x842.png 768w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.2-65x71.png 65w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.2-225x247.png 225w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.2-350x384.png 350w\" sizes=\"auto, (max-width: 877px) 100vw, 877px\" \/><figcaption id=\"caption-attachment-633\" class=\"wp-caption-text\"><strong>Figure 2.2<\/strong><\/figcaption><\/figure>\n<p>This will create a folder called Chapter1 &#8211; Copy.<\/p>\n<ul>\n<li>Right-click the folder called Chapter1 &#8211; Copy<\/li>\n<li>Click Rename<\/li>\n<li>Type in Chapter2<\/li>\n<li>Press Enter on your keyboard<\/li>\n<\/ul>\n<figure id=\"attachment_634\" aria-describedby=\"caption-attachment-634\" style=\"width: 856px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/fig-2.3.png\" alt=\"Figure 2.3. This shows that right clicking on the new file will put the name in a box and highlight it so it can be changed.\" width=\"856\" height=\"379\" class=\"size-full wp-image-634\" srcset=\"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/fig-2.3.png 856w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/fig-2.3-300x133.png 300w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/fig-2.3-768x340.png 768w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/fig-2.3-65x29.png 65w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/fig-2.3-225x100.png 225w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/fig-2.3-350x155.png 350w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/><figcaption id=\"caption-attachment-634\" class=\"wp-caption-text\"><strong>Figure 2.3<\/strong><\/figcaption><\/figure>\n<p>We will now open the new Chapter2 folder and rename the project file inside.<\/p>\n<ul>\n<li>Double-click on the folder called Chapter2<\/li>\n<li>Double-click on the folder called ProjectFiles<\/li>\n<li>Right-click on the QGIS project file called Project1<\/li>\n<li>Click Rename<\/li>\n<li>Type in Project2<\/li>\n<li>Press Enter on your keyboard<\/li>\n<\/ul>\n<figure id=\"attachment_635\" aria-describedby=\"caption-attachment-635\" style=\"width: 877px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.4.png\" alt=\"Figure 2.4. This shows the file name being changed to \u201cProject1\u201d.\" width=\"877\" height=\"320\" class=\"size-full wp-image-635\" srcset=\"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.4.png 877w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.4-300x109.png 300w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.4-768x280.png 768w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.4-65x24.png 65w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.4-225x82.png 225w, https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-content\/uploads\/sites\/53\/2022\/02\/Fig-2.4-350x128.png 350w\" sizes=\"auto, (max-width: 877px) 100vw, 877px\" \/><figcaption id=\"caption-attachment-635\" class=\"wp-caption-text\"><strong>Figure 2.4<\/strong><\/figcaption><\/figure>\n<div class=\"textbox shaded\"><strong>Note:<\/strong> if we had simply opened the Project1 project file and used Save As to create a copy of it named Project2, we would only be creating a copy of the project file. We would not be creating duplicate copies of the layer data that the project file references. In fact, this hypothetical Project2 file would reference the layer data of the original Project1 project file from which it was copied. The problem here is that this layer data is stored with the Project1 file and not with the Project2 file. We need all of our data (i.e., layer files and the project file) stored in the same parent folder (e.g., Chapter2) so that we can zip this folder and share it with others. It also is critical to have all of our data in the same folder for another reason: if we ever deleted the Chapter1 folder and then tried to open Project2, it would not work because the layer data that Project2 is trying to open has now been deleted.<\/div>\n<h1>Opening a Copied Project<\/h1>\n<ul>\n<li>Double click on the freshly renamed Project2 file to open it in QGIS.<\/li>\n<\/ul>\n<p>QGIS will now open all of the work you did in Chapter 1. We can reuse some of this work in this chapter so that we do not have to start from scratch.<\/p>\n<div class=\"textbox shaded\"><strong>Note:<\/strong> if you have not completed Chapter 1, you will have to go to that chapter to set up Project1 before you can copy Project1 to create Project2. Chapter 1 shows you how to create Project1. It includes links to download all of the data you need and instructions on how to import it to QGIS.<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"author":31,"menu_order":2,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[48],"contributor":[],"license":[],"class_list":["post-631","chapter","type-chapter","status-publish","hentry","chapter-type-numberless"],"part":623,"_links":{"self":[{"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/pressbooks\/v2\/chapters\/631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/wp\/v2\/users\/31"}],"version-history":[{"count":1,"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/pressbooks\/v2\/chapters\/631\/revisions"}],"predecessor-version":[{"id":649,"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/pressbooks\/v2\/chapters\/631\/revisions\/649"}],"part":[{"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/pressbooks\/v2\/parts\/623"}],"metadata":[{"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/pressbooks\/v2\/chapters\/631\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/wp\/v2\/media?parent=631"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/pressbooks\/v2\/chapter-type?post=631"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/wp\/v2\/contributor?post=631"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/geospatialhumanities\/wp-json\/wp\/v2\/license?post=631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}