{"id":172,"date":"2007-10-15T20:52:48","date_gmt":"2007-10-16T03:52:48","guid":{"rendered":"http:\/\/jeffhobbs.net\/2007\/10\/15\/creating-a-hyperlink-from-a-point-in-geomedia-to-windows-live-search\/"},"modified":"2007-10-15T20:52:48","modified_gmt":"2007-10-16T03:52:48","slug":"creating-a-hyperlink-from-a-point-in-geomedia-to-windows-live-search","status":"publish","type":"post","link":"https:\/\/jeffhobbs.com\/?p=172","title":{"rendered":"Creating a Hyperlink from a Point in GeoMedia to Windows Live Search"},"content":{"rendered":"<p>For the &quot;long-term readers&quot;, I posted an entry on <a href=\"http:\/\/jeffhobbs.net\/2007\/07\/10\/creating-a-hyperlink-from-a-point-in-geomedia-to-google-maps\/\">Creating a Hyperlink to Google Maps in GeoMedia<\/a> a few months ago. Well, Chris Matus sent me an example of linking to Microsoft&#8217;s Virtual Earth environment. I&#8217;ve modified it slightly to work against the US Sample dataset. This demonstration is using the &quot;USSampleData.gws&quot; geoworkspace. I&#8217;ve simply created a functional attribute on the HighwayInterchange feature class (although not terribly useful, it still demonstrates the functionality).<\/p>\n<blockquote>\n<p align=\"left\">&#8216;http:\/\/maps.live.com\/default.aspx?v=2&amp;cp=&#8217;+<br \/>\n\t\t          ROUND(Y(CENTERPOINT(Input.Geometry), TrueMeas, Degree), 6)+&#8217;~&#8217;+ROUND(X(CENTERPOINT(Input.Geometry), TrueMeas, Degree), 6)+&#8217;&amp;style=h&amp;lvl=17&amp;tilt=-90&amp;dir=0&amp;alt=-1000&amp;sp=Point.&#8217;+Y(CENTERPOINT(Input.Geometry), TrueMeas, Degree)+&#8217;_&#8217;+X(CENTERPOINT(Input.Geometry), TrueMeas, Degree)+&#8217;_&#8217;+Input.ID+&#8221; <\/p>\n<\/blockquote>\n<p align=\"left\">In Chris&#8217; case, he was using an area feature named &quot;building&quot;. That&#8217;s why you&#8217;re seeing the CENTERPOINT function being used. Additionally Chris is creating a bounding box (also known as a minimum bounding rectangle). That&#8217;s why you&#8217;re seeing two lat\/long pairs. Past those points, he&#8217;s using the same logic I used in my Google Maps posting to calculate the latitude and longitude.<\/p>\n<p align=\"left\">So, the <strong>&#8216;http:\/\/maps.live.com\/default.aspx?<\/strong> is simply calling Microsoft Live. Then he has some parameters he&#8217;s calling:<\/p>\n<ul>\n<li>V=2<\/li>\n<li>Style=h<\/li>\n<li>Lvl=17<\/li>\n<li>Tilt=-90<\/li>\n<li>Dir=0<\/li>\n<li>Alt=-10000<\/li>\n<li>Sp=Point<\/li>\n<\/ul>\n<p>Instead of describing the parameters here, I&#8217;ll point you to the <a href=\"http:\/\/dev.live.com\/\">Microsoft Live help<\/a> (which by the way, is fantastic). In the help you can search for the different parameters and you should be able to find what they mean and other options quite simply. For instance, Style is actually the map style. Valid arguments here are:<\/p>\n<p>r=Road<\/p>\n<p>a=Aerial<\/p>\n<p>h=Hybrid<\/p>\n<p>o=Birdseye<\/p>\n<p>Just by changing the style I can go from a:<\/p>\n<p><strong>Road Style<\/strong><\/p>\n<p><a href=\"http:\/\/maps.live.com\/default.aspx?v=2&amp;cp=37.604184~-97.310918&amp;style=r&amp;lvl=17&amp;tilt=-90&amp;dir=0&amp;alt=-1000&amp;sp=Point.37.6041843206049_-97.3109183034338_46\">http:\/\/maps.live.com\/default.aspx?v=2&amp;cp=37.604184~-97.310918&amp;style=r&amp;lvl=17&amp;tilt=-90&amp;dir=0&amp;alt=-1000&amp;sp=Point.37.6041843206049_-97.3109183034338_46<\/a><\/p>\n<p><strong><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/jeffhobbs.com\/wp-content\/uploads\/2007\/10\/roadstyle.gif\" width=\"300\" height=\"185\" \/><\/strong><\/p>\n<p>to a <strong>Hybrid Style<\/strong> (aerial and lines)<\/p>\n<p><a href=\"http:\/\/maps.live.com\/default.aspx?v=2&amp;cp=37.604184~-97.310918&amp;style=h&amp;lvl=17&amp;tilt=-90&amp;dir=0&amp;alt=-1000&amp;sp=Point.37.6041843206049_-97.3109183034338_46\">http:\/\/maps.live.com\/default.aspx?v=2&amp;cp=37.604184~-97.310918&amp;style=h&amp;lvl=17&amp;tilt=-90&amp;dir=0&amp;alt=-1000&amp;sp=Point.37.6041843206049_-97.3109183034338_46<\/a><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/jeffhobbs.com\/wp-content\/uploads\/2007\/10\/hybridstyle.gif\" width=\"300\" height=\"184\" \/><\/p>\n<p>As a whole, I really like the Microsoft Live Search Maps application. It&#8217;s extremely functional and really offers a lot of nice bells and whistles. In fact, you can even get into 3D rendering of your map. As a whole, it&#8217;s a nice and welcome alternative to Google Maps and I&#8217;d highly recommend you play with it.<\/p>\n<p>One last note &#8211; Chris made a great point when he mentioned that he&#8217;s using the functional attribute for a GeoMedia WebMap Publisher application. Since he&#8217;s doing that, he actually URL encoding his functional attribute to ensure it works correctly on a web site. So, in the example he gave me, he substituted all &quot;&amp;&quot; with &quot;%26&quot;. I changed it back for this demonstration. However if looking to feed this though a web application like GeoMedia WebMap as opposed to GeoMedia\/Pro, it would be best to <a href=\"http:\/\/www.blooberry.com\/indexdot\/html\/topics\/urlencoding.htm\">URL encode<\/a> the function.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the &quot;long-term readers&quot;, I posted an entry on Creating a Hyperlink to Google Maps in GeoMedia a few months&#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":[10,3,4],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating a Hyperlink from a Point in GeoMedia to Windows Live Search - 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=172\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a Hyperlink from a Point in GeoMedia to Windows Live Search - jeffhobbs.com\" \/>\n<meta property=\"og:description\" content=\"For the &quot;long-term readers&quot;, I posted an entry on Creating a Hyperlink to Google Maps in GeoMedia a few months...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jeffhobbs.com\/?p=172\" \/>\n<meta property=\"og:site_name\" content=\"jeffhobbs.com\" \/>\n<meta property=\"article:published_time\" content=\"2007-10-16T03:52:48+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/jeffhobbs.com\/wp-content\/uploads\/2007\/10\/roadstyle.gif\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jeffhobbs.com\/?p=172\",\"url\":\"https:\/\/jeffhobbs.com\/?p=172\",\"name\":\"Creating a Hyperlink from a Point in GeoMedia to Windows Live Search - jeffhobbs.com\",\"isPartOf\":{\"@id\":\"https:\/\/jeffhobbs.com\/#website\"},\"datePublished\":\"2007-10-16T03:52:48+00:00\",\"dateModified\":\"2007-10-16T03:52:48+00:00\",\"author\":{\"@id\":\"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7\"},\"breadcrumb\":{\"@id\":\"https:\/\/jeffhobbs.com\/?p=172#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jeffhobbs.com\/?p=172\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jeffhobbs.com\/?p=172#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jeffhobbs.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a Hyperlink from a Point in GeoMedia to Windows Live Search\"}]},{\"@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":"Creating a Hyperlink from a Point in GeoMedia to Windows Live Search - 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=172","og_locale":"en_US","og_type":"article","og_title":"Creating a Hyperlink from a Point in GeoMedia to Windows Live Search - jeffhobbs.com","og_description":"For the &quot;long-term readers&quot;, I posted an entry on Creating a Hyperlink to Google Maps in GeoMedia a few months...","og_url":"https:\/\/jeffhobbs.com\/?p=172","og_site_name":"jeffhobbs.com","article_published_time":"2007-10-16T03:52:48+00:00","og_image":[{"url":"http:\/\/jeffhobbs.com\/wp-content\/uploads\/2007\/10\/roadstyle.gif"}],"author":"Jeff Hobbs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jeff Hobbs","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jeffhobbs.com\/?p=172","url":"https:\/\/jeffhobbs.com\/?p=172","name":"Creating a Hyperlink from a Point in GeoMedia to Windows Live Search - jeffhobbs.com","isPartOf":{"@id":"https:\/\/jeffhobbs.com\/#website"},"datePublished":"2007-10-16T03:52:48+00:00","dateModified":"2007-10-16T03:52:48+00:00","author":{"@id":"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7"},"breadcrumb":{"@id":"https:\/\/jeffhobbs.com\/?p=172#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jeffhobbs.com\/?p=172"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jeffhobbs.com\/?p=172#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jeffhobbs.com\/"},{"@type":"ListItem","position":2,"name":"Creating a Hyperlink from a Point in GeoMedia to Windows Live Search"}]},{"@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\/172"}],"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=172"}],"version-history":[{"count":0,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/posts\/172\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}