{"id":573,"date":"2010-12-29T14:38:00","date_gmt":"2010-12-29T14:38:00","guid":{"rendered":"\/blogs\/bobb\/post\/The-other-fullglobe-feature-in-SQL-Server-Denali.aspx"},"modified":"2013-01-03T23:59:34","modified_gmt":"2013-01-04T07:59:34","slug":"the-other-fullglobe-feature-in-sql-server-denali","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/","title":{"rendered":"The &#8220;other fullglobe feature&#8221; in SQL Server Denali"},"content":{"rendered":"<p>\nNow about that &quot;other&quot; feature that could be called fullglobe in Denali that <a href=\"http:\/\/3.209.169.194\/blogs\/bobb\/measuring-the-earth-with-sql-server-denali\/\" class=\"broken_link\">I mentioned<\/a>. I don&#39;t know which feature will retain the moniker or whether they both will&#8230;that&#39;s why I&#39;m not in marketing.\n<\/p>\n<p>\nHere&#39;s the deal&#8230; the SQL Server spatial geography type is limited to a single hemisphere in size in SQL Server 2008 and R2. That doesn&#39;t mean that a single feature can&#39;t <strong>span<\/strong> hemispheres, it means the feature can&#39;t <strong>be bigger than<\/strong> a hemisphere. And it means that there is a &quot;left-foot rule&quot; that you must follow for geography polygons. You might also have heard it called &quot;left-hand rule&quot;, but Ed renamed it, as there already is a well-known <a href=\"http:\/\/en.wikipedia.org\/wiki\/Right-hand_rule\">right-hand rule<\/a> in mathematics and physics.\n<\/p>\n<p>\nThe rule is really meant for disambiguation; if I code up a polygon that describes Iceland, am I representing Iceland or &quot;everything on earth that isn&#39;t Iceland&quot;? The left-foot rule makes it unambiguous.\n<\/p>\n<p>\nAnyhow, Denali removes the hemisphere limit, so you can represent &quot;not Iceland&quot;. And provides a cool convenience feature to make this easy. So here&#39;s code inspired by my first (but not my last) teaching gig in Reykjavik, a few years ago, in December (thanks Gunner). I enjoyed myself immensely, especially in the geothermal-heated public pool near downtown (yes, its open in December, sorry, no link).\n<\/p>\n<p>\n&#8212; here&#39;s Iceland<br \/>\nSELECT geog <br \/>\nFROM dbo.cntry00 <br \/>\nWHERE cntry_name = &#39;Iceland&#39;\n<\/p>\n<p>\n&#8212; here&#39;s everywhere that&#39;s not Iceland<br \/>\n&#8212; well, it better be &quot;not Iceland&quot; I can&#39;t see it in spatial results<br \/>\nSELECT geog.ReorientObject()<br \/>\nFROM dbo.cntry00<br \/>\nWHERE cntry_name = &#39;Iceland&#39;\n<\/p>\n<p>\nThe only fallout I can envision from this is that some folks might have used the error to indicate their ring-orientation was wrong. Now it will just work, and you&#39;ll wind up with &quot;big &#39;ol hunk o&#39; geography&quot; (TM pending) instead. So if you are one of those people beware&#8230;it works now. For the rest of the things that used to break and that this feature fixes reference Ed and Milan&#39;s <a href=\"ttp:\/\/sqlcat.com\/whitepapers\/archive\/2010\/11\/09\/new-spatial-features-in-sql-server-code-named-denali-\">excellent whitepaper<\/a>.\n<\/p>\n<p>\n@bobbeauch<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now about that &quot;other&quot; feature that could be called fullglobe in Denali that I mentioned. I don&#39;t know which feature will retain the moniker or whether they both will&#8230;that&#39;s why I&#39;m not in marketing. Here&#39;s the deal&#8230; the SQL Server spatial geography type is limited to a single hemisphere in size in SQL Server 2008 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,36],"tags":[],"class_list":["post-573","post","type-post","status-publish","format-standard","hentry","category-sql-server-2012","category-sql-server-spatial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The &quot;other fullglobe feature&quot; in SQL Server Denali - Bob Beauchemin<\/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.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The &quot;other fullglobe feature&quot; in SQL Server Denali - Bob Beauchemin\" \/>\n<meta property=\"og:description\" content=\"Now about that &quot;other&quot; feature that could be called fullglobe in Denali that I mentioned. I don&#039;t know which feature will retain the moniker or whether they both will&#8230;that&#039;s why I&#039;m not in marketing. Here&#039;s the deal&#8230; the SQL Server spatial geography type is limited to a single hemisphere in size in SQL Server 2008 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/\" \/>\n<meta property=\"og:site_name\" content=\"Bob Beauchemin\" \/>\n<meta property=\"article:published_time\" content=\"2010-12-29T14:38:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-01-04T07:59:34+00:00\" \/>\n<meta name=\"author\" content=\"Bob Beauchemin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bob Beauchemin\" \/>\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:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/\",\"name\":\"The \\\"other fullglobe feature\\\" in SQL Server Denali - Bob Beauchemin\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\"},\"datePublished\":\"2010-12-29T14:38:00+00:00\",\"dateModified\":\"2013-01-04T07:59:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Server 2012\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/sql-server-2012\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"The &#8220;other fullglobe feature&#8221; in SQL Server Denali\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\",\"name\":\"Bob Beauchemin\",\"description\":\"SQL Server Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\",\"name\":\"Bob Beauchemin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"caption\":\"Bob Beauchemin\"},\"sameAs\":[\"http:\/www.sqlskills.com\/blogs\/bobb\/\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \"other fullglobe feature\" in SQL Server Denali - Bob Beauchemin","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.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/","og_locale":"en_US","og_type":"article","og_title":"The \"other fullglobe feature\" in SQL Server Denali - Bob Beauchemin","og_description":"Now about that &quot;other&quot; feature that could be called fullglobe in Denali that I mentioned. I don&#39;t know which feature will retain the moniker or whether they both will&#8230;that&#39;s why I&#39;m not in marketing. Here&#39;s the deal&#8230; the SQL Server spatial geography type is limited to a single hemisphere in size in SQL Server 2008 [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/","og_site_name":"Bob Beauchemin","article_published_time":"2010-12-29T14:38:00+00:00","article_modified_time":"2013-01-04T07:59:34+00:00","author":"Bob Beauchemin","twitter_misc":{"Written by":"Bob Beauchemin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/","name":"The \"other fullglobe feature\" in SQL Server Denali - Bob Beauchemin","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website"},"datePublished":"2010-12-29T14:38:00+00:00","dateModified":"2013-01-04T07:59:34+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/the-other-fullglobe-feature-in-sql-server-denali\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/"},{"@type":"ListItem","position":2,"name":"SQL Server 2012","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/sql-server-2012\/"},{"@type":"ListItem","position":3,"name":"The &#8220;other fullglobe feature&#8221; in SQL Server Denali"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/","name":"Bob Beauchemin","description":"SQL Server Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e","name":"Bob Beauchemin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","caption":"Bob Beauchemin"},"sameAs":["http:\/www.sqlskills.com\/blogs\/bobb\/"],"url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/comments?post=573"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/573\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/media?parent=573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/categories?post=573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/tags?post=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}