{"id":207,"date":"2011-08-18T18:00:00","date_gmt":"2011-08-18T18:00:00","guid":{"rendered":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/2011\/08\/18\/creating-kmzs-in-arcmap\/"},"modified":"2011-08-18T18:00:00","modified_gmt":"2011-08-18T18:00:00","slug":"creating-kmzs-in-arcmap","status":"publish","type":"post","link":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/2011\/08\/18\/creating-kmzs-in-arcmap\/","title":{"rendered":"Creating KMZ&#8217;s in ArcMap"},"content":{"rendered":"<p>Our recent blog series featuring the collaboration between <a href=\"http:\/\/magic.lib.uconn.edu\/\">MAGIC<\/a>\u00a0and the <a href=\"http:\/\/ontheline.trincoll.edu\/\">On The Line<\/a> project has detailed the development of digital maps. Although we have given some technical detail in each post, I thought it would be fun to post a tutorial on how to create <a href=\"http:\/\/code.google.com\/apis\/kml\/documentation\/kmzarchives.html\">KMZ&#8217;s<\/a>\u00a0(for use in Google Maps and Google Earth) in ESRI&#8217;s ArcMap. For this exercise, I will create a map of Connecticut towns symbolized by total population.<\/p>\n<p>1.<b><i>Acquire Data<\/i><\/b>: The first step in creating any cartographic project is to acquire the necessary data. For this project, I have downloaded <a href=\"http:\/\/magic.lib.uconn.edu\/connecticut_data.html#census\">Census data by town (county subdivision) from MAGIC&#8217;s GIS Data Page<\/a>.<\/p>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/magic.lib.uconn.edu\/connecticut_data.html#census\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"295\" src=\"http:\/\/3.bp.blogspot.com\/-_MZ7mboX4YM\/TkwrSbxjYTI\/AAAAAAAAAJM\/TRn9ngTuoOE\/s400\/magicwebsite.jpg\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">The shapefiles download will include shapefiles in both WGS84 and NAD83 coordinate systems. Once I download the shapefiles, I can add the P001 (which contains total population) WGS84 shapefile into ArcMap. If you are going to be working with MAGIC&#8217;s Census data, it is also important to download the spreadsheet data in addition to the shapefiles. The spreadsheet data contains a codebook that will allow you to interpret the field names of the shapefile attribute table.\u00a0<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">2. <b><i>Remove Counties Not Defined:<\/i><\/b> There are 4 features in the Connecticut County Subdivisions data set that are not really towns, but are features that occupy the Long Island Sound area. In the <i>Name10 <\/i>field of the attribute table, I can see which these are.\u00a0<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/1.bp.blogspot.com\/-7Dr2NZVg9Bk\/TkwtX3dvf0I\/AAAAAAAAAJQ\/JCBGs8PbPXs\/s1600\/attributetable.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"312\" src=\"http:\/\/1.bp.blogspot.com\/-7Dr2NZVg9Bk\/TkwtX3dvf0I\/AAAAAAAAAJQ\/JCBGs8PbPXs\/s400\/attributetable.jpg\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">To remove these, I need to write a simple Definition Query, which is done in the Properties menu of the layer. Click Apply or OK to save the changes.<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/2.bp.blogspot.com\/-MMESU4vs9Zk\/TkwvQ0Nli_I\/AAAAAAAAAJc\/-8PaNv5jF1Q\/s1600\/layerproperties.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"311\" src=\"http:\/\/2.bp.blogspot.com\/-MMESU4vs9Zk\/TkwvQ0Nli_I\/AAAAAAAAAJc\/-8PaNv5jF1Q\/s400\/layerproperties.jpg\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/1.bp.blogspot.com\/-peC9BfE-0Cg\/Tkwu-p3SjcI\/AAAAAAAAAJY\/LY8N2vZPDoY\/s1600\/query.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"400\" src=\"http:\/\/1.bp.blogspot.com\/-peC9BfE-0Cg\/Tkwu-p3SjcI\/AAAAAAAAAJY\/LY8N2vZPDoY\/s400\/query.jpg\" width=\"345\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: center\"><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">3. <b><i>Symbolize Layer(s)<\/i><\/b>: Now that I have only the 169 Connecticut towns displayed, I&#8217;m ready to symbolize the layer. This, like the Definition Query, is done in the Layer Properties.\u00a0Click Apply or OK to save the changes.<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/1.bp.blogspot.com\/-ix_LthAluDQ\/Tkwwt9YKEaI\/AAAAAAAAAJg\/HFmqHrHj-g0\/s1600\/symbols.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"311\" src=\"http:\/\/1.bp.blogspot.com\/-ix_LthAluDQ\/Tkwwt9YKEaI\/AAAAAAAAAJg\/HFmqHrHj-g0\/s400\/symbols.jpg\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">4. <b><i>Hide\u00a0Unnecessary\u00a0Labels<\/i><\/b>: Next, I am going to hide all of the fields I do not want displayed in my final product (I only want the name of the town and total population). Under the Fields tab of the Layer&#8217;s Properties, I can uncheck \u00a0the fields I don&#8217;t need or want to display.\u00a0Click Apply or OK to save the changes.<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/1.bp.blogspot.com\/-l0YxKHN5voY\/Tkwx1qN85RI\/AAAAAAAAAJk\/h-5w9jtly8E\/s1600\/fields.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"311\" src=\"http:\/\/1.bp.blogspot.com\/-l0YxKHN5voY\/Tkwx1qN85RI\/AAAAAAAAAJk\/h-5w9jtly8E\/s400\/fields.jpg\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">5. <i><b>Configure Pop-Up Labels<\/b><\/i>: ArcMap allows you to export labels as pop up windows. This is done under the HTML Labels tab in the Layer&#8217;s Properties. By default, the field name will be included, but you can check the <i>hide field name column<\/i> if you don&#8217;t want it to display (as I have done).\u00a0Click Apply or OK to save the changes.<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/1.bp.blogspot.com\/-NYBsKiFA2kg\/Tkwy91ohrpI\/AAAAAAAAAJo\/VVTKuXsx-XQ\/s1600\/labels.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"311\" src=\"http:\/\/1.bp.blogspot.com\/-NYBsKiFA2kg\/Tkwy91ohrpI\/AAAAAAAAAJo\/VVTKuXsx-XQ\/s400\/labels.jpg\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">6. <i><b>Export Layer\/Map using Conversion To KML<\/b><\/i>: There are two options to export your data; you can either export an individual layer or the whole map. If you choose Layer to KML you will need to browse to your layer, if you choose Map To KML you must browse to your .MXD file.<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/3.bp.blogspot.com\/-4yVbStkPm9c\/Tkw00DXjaGI\/AAAAAAAAAJw\/RlFvb41VfJ8\/s1600\/arctoolbox.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"320\" src=\"http:\/\/3.bp.blogspot.com\/-4yVbStkPm9c\/Tkw00DXjaGI\/AAAAAAAAAJw\/RlFvb41VfJ8\/s320\/arctoolbox.jpg\" width=\"159\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: center\"><\/div>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto;margin-right: auto;text-align: center\">\n<tbody>\n<tr>\n<td style=\"text-align: center\"><a href=\"http:\/\/1.bp.blogspot.com\/-U-sPIXd5tcQ\/Tk1AhwC9sPI\/AAAAAAAAAJ4\/zOBtoz7izrc\/s1600\/layertokml.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"208\" src=\"http:\/\/1.bp.blogspot.com\/-U-sPIXd5tcQ\/Tk1AhwC9sPI\/AAAAAAAAAJ4\/zOBtoz7izrc\/s400\/layertokml.jpg\" width=\"400\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\">You can adjust the output scale as well as the resolution of your output in the <i>Layer (or Map) to KML<\/i> tool.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">7. <i><b>Display in Google Earth<\/b><\/i>: If you have Google Earth already installed on your computer, you should be able to double-click your new KML to open it.\u00a0<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/3.bp.blogspot.com\/-S55Zfx52c-8\/Tk1BwGwgKLI\/AAAAAAAAAJ8\/XV7XdRpp_Cs\/s1600\/GE.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"311\" src=\"http:\/\/3.bp.blogspot.com\/-S55Zfx52c-8\/Tk1BwGwgKLI\/AAAAAAAAAJ8\/XV7XdRpp_Cs\/s400\/GE.jpg\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: center\"><\/div>\n<div style=\"clear: both;text-align: center\"><\/div>\n<div style=\"clear: both;text-align: center\"><\/div>\n<div style=\"clear: both;text-align: left\">8. <b><i>Clean up Labels<\/i><\/b>: To give my labels a cleaner look, I&#8217;m going to reduce their redundancy. To do this, I must go back into ArcMap and ensure my primary label is set under the display tab of the Layer Properties menu. I chose the town name field.<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto;margin-right: auto;text-align: center\">\n<tbody>\n<tr>\n<td style=\"text-align: center\"><a href=\"http:\/\/2.bp.blogspot.com\/-MFfJkd9NTAI\/Tk1EsTTDfwI\/AAAAAAAAAKA\/WIvD-dwkLpk\/s1600\/displayfield.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"311\" src=\"http:\/\/2.bp.blogspot.com\/-MFfJkd9NTAI\/Tk1EsTTDfwI\/AAAAAAAAAKA\/WIvD-dwkLpk\/s400\/displayfield.jpg\" width=\"400\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><b>Note<\/b>: You can also adjust transparency under the Display tab.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">Then, I can turn the name field off.\u00a0Click Apply or OK to save the changes.<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/1.bp.blogspot.com\/-JOZSL6lUa8Y\/Tk1E1X9J3qI\/AAAAAAAAAKE\/OajFUUDya2s\/s1600\/deselectname.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"311\" src=\"http:\/\/1.bp.blogspot.com\/-JOZSL6lUa8Y\/Tk1E1X9J3qI\/AAAAAAAAAKE\/OajFUUDya2s\/s400\/deselectname.jpg\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">Now, at least one of the repeated labels has been removed.<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: center\"><a href=\"http:\/\/4.bp.blogspot.com\/-ABNKmHnkuDo\/Tk1F3ukhXCI\/AAAAAAAAAKI\/Y7u0bW8a5W4\/s1600\/final.jpg\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"311\" src=\"http:\/\/4.bp.blogspot.com\/-ABNKmHnkuDo\/Tk1F3ukhXCI\/AAAAAAAAAKI\/Y7u0bW8a5W4\/s400\/final.jpg\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\">If you want to edit the labels in more detail, many times it will be more efficient to edit them in ArcMap using tools like the Field Calculator before exporting the layer or map.\u00a0<\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<div style=\"clear: both;text-align: left\"><\/div>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Our recent blog series featuring the collaboration between MAGIC\u00a0and the On The Line project has detailed the development of digital maps. Although we have given some technical detail in each post, I thought it would be fun to post a &hellip; <a href=\"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/2011\/08\/18\/creating-kmzs-in-arcmap\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9NL4O-3l","_links":{"self":[{"href":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/wp-json\/wp\/v2\/posts\/207"}],"collection":[{"href":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/wp-json\/wp\/v2\/comments?post=207"}],"version-history":[{"count":0,"href":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/wp-json\/wp\/v2\/posts\/207\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/wp-json\/wp\/v2\/media?parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/wp-json\/wp\/v2\/categories?post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.lib.uconn.edu\/outsidetheneatline\/wp-json\/wp\/v2\/tags?post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}