{"id":162071,"date":"2009-01-21T21:15:31","date_gmt":"2009-01-21T21:15:31","guid":{"rendered":"http:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=162071"},"modified":"2018-12-18T12:01:08","modified_gmt":"2018-12-18T20:01:08","slug":"how-to-save-label-classes-in-layer-files","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files","title":{"rendered":"How to Save Label Classes in Layer Files?"},"author":4331,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[22941],"tags":[128002,38411],"industry":[],"product":[36991],"class_list":["post-162071","blog","type-blog","status-publish","format-standard","hentry","category-mapping","tag-labeling","tag-mapping-center","product-arcgis-desktop"],"acf":{"short_description":"You can save your labeling rules to a style by clicking the Label Styles button while viewing your label class in the label manager.","flexible_content":[{"acf_fc_layout":"content","content":"<p><strong>Question:<\/strong>\u00a0I put this question on the following ESRI Forum thread:<\/p>\n<p>http:\/\/forums.esri.com\/Thread.asp?c=93&#038;f=986&#038;t=146650<\/p>\n<p>and the reply that I had was that I should try asking a cartographer \u2013 so that is what I am doing:<\/p>\n<p>ORIGINAL QUESTION<\/p>\n<p>I am not working with Geology data, however, I came across this thread when I was trying to find a way of saving Label Classes within Layer Files or in some way so that they could (along with their Label Expressions and Styles) be re applied to other Feature Classes.<\/p>\n<p>I am using ArcGIS v9.3 &amp; working mainly with personal &amp; file geodatabases though occassionaly shape files &amp; I wondered if there is any non programming way of doing this?<\/p>\n<p>I have tried Willy Lynch\u2019s script (many thanks) but because the Layer Files I have don\u2019t seem to have the Label Classes stored within them \u2013 I think because they have since been converted to Annotation it does not seem to solve my issues completely.<\/p>\n<p>I am also curious if anyone has worked out how to re apply Layer Files saved from Annotation Feature Classes to new Labels or directly to new Annotation as I can\u2019t seem to find a way i.e. there is no \u201cimport\u201d as there is for Feature Symbology?<\/p>\n<p>With thanks,<\/p>\n<p><strong>Answer:<\/strong>\u00a0Okay, so there are a bunch of things to address here:<\/p>\n<ol>\n<li>Saving a layer to a .lyr file does save the label classes\u2026 AND the SQL Queries.<\/li>\n<li>Converting labels to annotation just turns off labeling\u2013it does not changing your layer\u2019s or label classes settings\u2013if you turn off the anno and turn labeling on for your layer(s) you will get the correct result.<\/li>\n<li>You can save your labeling rules to a style by clicking the Label Styles button while viewing your label class in the label manager.\u00a0 That will show the Label Style Selector, and you can click the Save button to save your label style (Expression, Rules, &amp; Symbol) to a style\u2013this will not preserve your SQL Query.\u00a0 Use the Label Styles button to retrieve your saved element to be used on another layer.<\/li>\n<li>All that said, the easiest way to reuse the label classes from one layer on another layer is to copy the layer and change the data source of the copied layer.\u00a0 Of course this will only work if your second data source has the same attributes as the first layer\u2019s data source.<\/li>\n<\/ol>\n<p><em>Formerly a Mapping Center Ask a Cartographer \u00a0Q &amp; A.<\/em><\/p>\n"}],"authors":[{"ID":4331,"user_firstname":"Aileen","user_lastname":"Buckley","nickname":"Aileen Buckley","user_nicename":"abuckley","display_name":"Aileen Buckley","user_email":"abuckley@esri.com","user_url":"","user_registered":"2018-03-02 00:15:57","user_description":"Dr. Aileen Buckley is a cartographer researcher and Senior Principal GIS Engineer at Esri. I'm on the ArcGIS Living Atlas of the World Team, making, writing, and talking about maps. I'm also involved in a number of cartographic societies and association, and I'm the chair of the ICA Ethics in Cartography Commission.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/03\/Aileen.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"related_articles":"","card_image":false,"wide_image":false},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Save Label Classes in Layer Files?<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Save Label Classes in Layer Files?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2018-12-18T20:01:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files\"},\"author\":{\"name\":\"Aileen Buckley\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/874953792dea98fe178fbb6a5e8255b0\"},\"headline\":\"How to Save Label Classes in Layer Files?\",\"datePublished\":\"2009-01-21T21:15:31+00:00\",\"dateModified\":\"2018-12-18T20:01:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files\"},\"wordCount\":8,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"labeling\",\"Mapping Center\"],\"articleSection\":[\"Mapping\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files\",\"name\":\"How to Save Label Classes in Layer Files?\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2009-01-21T21:15:31+00:00\",\"dateModified\":\"2018-12-18T20:01:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Save Label Classes in Layer Files?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/874953792dea98fe178fbb6a5e8255b0\",\"name\":\"Aileen Buckley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/03\/Aileen.jpg\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/03\/Aileen.jpg\",\"caption\":\"Aileen Buckley\"},\"description\":\"Dr. Aileen Buckley is a cartographer researcher and Senior Principal GIS Engineer at Esri. I'm on the ArcGIS Living Atlas of the World Team, making, writing, and talking about maps. I'm also involved in a number of cartographic societies and association, and I'm the chair of the ICA Ethics in Cartography Commission.\",\"sameAs\":[\"https:\/\/www.instagram.com\/buckley.aileen\/\",\"linkedin.com\/in\/aileenbuckley\"],\"honorificPrefix\":\"Dr.\",\"honorificSuffix\":\"PhD\",\"gender\":\"female\",\"award\":[\"Chair of the ICA Commission on Ethics in Cartography\"],\"knowsAbout\":[\"Cartography\",\"GIS\"],\"knowsLanguage\":[\"English\"],\"jobTitle\":\"Research Cartographer\",\"worksFor\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/author\/abuckley\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Save Label Classes in Layer Files?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files","og_locale":"en_US","og_type":"article","og_title":"How to Save Label Classes in Layer Files?","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2018-12-18T20:01:08+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files"},"author":{"name":"Aileen Buckley","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/874953792dea98fe178fbb6a5e8255b0"},"headline":"How to Save Label Classes in Layer Files?","datePublished":"2009-01-21T21:15:31+00:00","dateModified":"2018-12-18T20:01:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files"},"wordCount":8,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["labeling","Mapping Center"],"articleSection":["Mapping"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files","name":"How to Save Label Classes in Layer Files?","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2009-01-21T21:15:31+00:00","dateModified":"2018-12-18T20:01:08+00:00","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-desktop\/mapping\/how-to-save-label-classes-in-layer-files#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"How to Save Label Classes in Layer Files?"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/874953792dea98fe178fbb6a5e8255b0","name":"Aileen Buckley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/03\/Aileen.jpg","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/03\/Aileen.jpg","caption":"Aileen Buckley"},"description":"Dr. Aileen Buckley is a cartographer researcher and Senior Principal GIS Engineer at Esri. I'm on the ArcGIS Living Atlas of the World Team, making, writing, and talking about maps. I'm also involved in a number of cartographic societies and association, and I'm the chair of the ICA Ethics in Cartography Commission.","sameAs":["https:\/\/www.instagram.com\/buckley.aileen\/","linkedin.com\/in\/aileenbuckley"],"honorificPrefix":"Dr.","honorificSuffix":"PhD","gender":"female","award":["Chair of the ICA Commission on Ethics in Cartography"],"knowsAbout":["Cartography","GIS"],"knowsLanguage":["English"],"jobTitle":"Research Cartographer","worksFor":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/author\/abuckley"}]}},"text_date":"January 21, 2009","author_name":"Aileen Buckley","author_page":"https:\/\/www.esri.com\/arcgis-blog\/author\/abuckley","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/08\/Newsroom-Keyart-Wide-1920-x-1080.jpg","primary_product":"ArcMap","tag_data":[{"term_id":128002,"name":"labeling","slug":"labeling","term_group":0,"term_taxonomy_id":128002,"taxonomy":"post_tag","description":"","parent":0,"count":14,"filter":"raw"},{"term_id":38411,"name":"Mapping Center","slug":"mapping-center","term_group":0,"term_taxonomy_id":38411,"taxonomy":"post_tag","description":"","parent":0,"count":35,"filter":"raw"}],"category_data":[{"term_id":22941,"name":"Mapping","slug":"mapping","term_group":0,"term_taxonomy_id":22941,"taxonomy":"category","description":"","parent":0,"count":2698,"filter":"raw"}],"product_data":[{"term_id":36991,"name":"ArcMap","slug":"arcgis-desktop","term_group":0,"term_taxonomy_id":36991,"taxonomy":"product","description":"","parent":36981,"count":325,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-desktop","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/162071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/4331"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=162071"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/162071\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=162071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=162071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=162071"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=162071"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=162071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}