{"id":78,"date":"2007-07-13T12:27:50","date_gmt":"2007-07-13T19:27:50","guid":{"rendered":"http:\/\/jeffhobbs.net\/2007\/07\/13\/loading-named-styles-automatically-in-61\/"},"modified":"2007-07-13T12:27:50","modified_gmt":"2007-07-13T19:27:50","slug":"loading-named-styles-automatically-in-61","status":"publish","type":"post","link":"https:\/\/jeffhobbs.com\/?p=78","title":{"rendered":"Loading Named Styles Automatically in 6.1"},"content":{"rendered":"<p>One of my favorite changes that came in 5.2 (I think) was the ability to name a style (at the time they were called GeoMedia Style Definitions or .gsd) files with the same name as a feature class. Then, as long as the style was in a set folder (identified in Tools &gt; Options), when the feature class was loaded into the legend, it would default to the style definition. I used this ALL THE TIME.<br \/>\n\t\t\t    Then, when Intergraph introduced 6.0, the .gsd was eliminated because styles are now saved either in a geoworkspace or a library. With the elimination of the .gsd also came the elimination of the feature classes loading with predetermined styles. Well&#8230;I&#8217;m happy to report that Intergraph has re-introduced the this functionality in 6.1! So, if you have a style named &quot;Airport&quot; that is in your geoworkspace styles, when you load the feature class named &quot;Airport&quot;, it will default to the &quot;Airport&quot; style. Very cool!<\/p>\n<p>Now, a few notes on the functionality.<\/p>\n<p>1) If I understand the specifications correctly (haven&#8217;t tried it myself), this functionality only works with styles that are in the geoworkspace. As a result, make sure to have your styles either in a geoworkspace template or make sure to move the styles from your library BEFORE loading feature class. It would be nice if the feature class would look in a library as well, but reading the specifications, it doesn&#8217;t appear that this happens.<\/p>\n<p>2) When using Oracle, you need to ensure that the style is named CONNECTION.FEATURE CLASS NAME. In other words, if your data are in an Oracle schema named &quot;GISDATA&quot;, your feature class, when first loaded in the legend, will be named GISDATA.MY_FEATURE_CLASS_NAME. You need to make sure the style has the &quot;GISDATA.&quot; prefix in the name of the style. I&#8217;ve filed this as a change request as this was also a problem with the .gsd files. It&#8217;s not a showstopper, but it would be nice if that restriction were removed.\n\t\t\t      <\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of my favorite changes that came in 5.2 (I think) was the ability to name a style (at the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[7,4],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Loading Named Styles Automatically in 6.1 - jeffhobbs.com<\/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:\/\/jeffhobbs.com\/?p=78\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Loading Named Styles Automatically in 6.1 - jeffhobbs.com\" \/>\n<meta property=\"og:description\" content=\"One of my favorite changes that came in 5.2 (I think) was the ability to name a style (at the...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jeffhobbs.com\/?p=78\" \/>\n<meta property=\"og:site_name\" content=\"jeffhobbs.com\" \/>\n<meta property=\"article:published_time\" content=\"2007-07-13T19:27:50+00:00\" \/>\n<meta name=\"author\" content=\"Jeff Hobbs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Hobbs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jeffhobbs.com\/?p=78\",\"url\":\"https:\/\/jeffhobbs.com\/?p=78\",\"name\":\"Loading Named Styles Automatically in 6.1 - jeffhobbs.com\",\"isPartOf\":{\"@id\":\"https:\/\/jeffhobbs.com\/#website\"},\"datePublished\":\"2007-07-13T19:27:50+00:00\",\"dateModified\":\"2007-07-13T19:27:50+00:00\",\"author\":{\"@id\":\"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7\"},\"breadcrumb\":{\"@id\":\"https:\/\/jeffhobbs.com\/?p=78#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jeffhobbs.com\/?p=78\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jeffhobbs.com\/?p=78#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jeffhobbs.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Loading Named Styles Automatically in 6.1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jeffhobbs.com\/#website\",\"url\":\"https:\/\/jeffhobbs.com\/\",\"name\":\"jeffhobbs.com\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jeffhobbs.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7\",\"name\":\"Jeff Hobbs\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jeffhobbs.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bafb9a6abd79509b50a190d399dea779?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bafb9a6abd79509b50a190d399dea779?s=96&d=mm&r=g\",\"caption\":\"Jeff Hobbs\"},\"sameAs\":[\"http:\/\/jeffhobbs.com\"],\"url\":\"https:\/\/jeffhobbs.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Loading Named Styles Automatically in 6.1 - jeffhobbs.com","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:\/\/jeffhobbs.com\/?p=78","og_locale":"en_US","og_type":"article","og_title":"Loading Named Styles Automatically in 6.1 - jeffhobbs.com","og_description":"One of my favorite changes that came in 5.2 (I think) was the ability to name a style (at the...","og_url":"https:\/\/jeffhobbs.com\/?p=78","og_site_name":"jeffhobbs.com","article_published_time":"2007-07-13T19:27:50+00:00","author":"Jeff Hobbs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jeff Hobbs","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jeffhobbs.com\/?p=78","url":"https:\/\/jeffhobbs.com\/?p=78","name":"Loading Named Styles Automatically in 6.1 - jeffhobbs.com","isPartOf":{"@id":"https:\/\/jeffhobbs.com\/#website"},"datePublished":"2007-07-13T19:27:50+00:00","dateModified":"2007-07-13T19:27:50+00:00","author":{"@id":"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7"},"breadcrumb":{"@id":"https:\/\/jeffhobbs.com\/?p=78#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jeffhobbs.com\/?p=78"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jeffhobbs.com\/?p=78#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jeffhobbs.com\/"},{"@type":"ListItem","position":2,"name":"Loading Named Styles Automatically in 6.1"}]},{"@type":"WebSite","@id":"https:\/\/jeffhobbs.com\/#website","url":"https:\/\/jeffhobbs.com\/","name":"jeffhobbs.com","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jeffhobbs.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7","name":"Jeff Hobbs","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jeffhobbs.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/bafb9a6abd79509b50a190d399dea779?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bafb9a6abd79509b50a190d399dea779?s=96&d=mm&r=g","caption":"Jeff Hobbs"},"sameAs":["http:\/\/jeffhobbs.com"],"url":"https:\/\/jeffhobbs.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/posts\/78"}],"collection":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78"}],"version-history":[{"count":0,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}