{"id":161,"date":"2007-10-04T19:54:34","date_gmt":"2007-10-05T02:54:34","guid":{"rendered":"http:\/\/jeffhobbs.net\/2007\/10\/04\/playing-with-functional-attributes\/"},"modified":"2007-10-04T19:54:34","modified_gmt":"2007-10-05T02:54:34","slug":"playing-with-functional-attributes","status":"publish","type":"post","link":"https:\/\/jeffhobbs.com\/?p=161","title":{"rendered":"Playing with Functional Attributes"},"content":{"rendered":"<p>I was playing with the DOTDENSITY functional attribute today. Although it&#8217;s quite easy to use, I&#8217;m not sure how many people have ever actually used it.<\/p>\n<p>It&#8217;s defined as &quot;Returns a collection of points that are placed on that area&quot;. Basically, you can tell GeoMedia to place a number of dots on a polygon and these number of dots are designed to show density. The more dots, the greater the density. I&#8217;ve typically seen this done with populations. So, to make life simple and easy to share with my readers, I did a little playing with the US Sample data set. <a href=\"http:\/\/www.box.net\/shared\/crvbo4f1fn\">You can download my geoworkspace from here<\/a>. The geoworkspace should work fine if you have the US Sample data set in c:\\warehouses. If you&#8217;ve moved it, just be sure to change the location of the warehouse under Warehouse &gt; Connections.<\/p>\n<p>In short, I normalized the population by dividing the populations for Asians, Blacks, and Whites. I did this by dividing each population by 10,000. This functional attribute looked like <strong>ROUND(Input.WHPOP\/10000, 0)<\/strong>. This was done just to simply reduce the number of dots. After that, I created the functional attribute: <strong>DOTDENSITY(Input.Geometry, INT(Output.WHITE))<\/strong>. This simply takes the output from my previous functional attribute that divided the white population by 10,000 (Output.WHITE) and rounded it to the nearest whole number (INT function). After that I feed in the input geometry and the rounded Output.WHITE population into the DOTDENSITY function. The result is a point collection for each of the black, white, and asian populations.<\/p>\n<p>You can take a look at my screenshots of California to see the results:<\/p>\n<p>All of the dots: <\/p>\n<p>White dot = White Population <\/p>\n<p>Black dot = Black Population<\/p>\n<p>Blue dot = Asian Population<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/jeffhobbs.net\/files\/2007\/10\/dot1.gif\" width=\"137\" height=\"225\" \/> <\/p>\n<p>White Population<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/jeffhobbs.net\/files\/2007\/10\/dot-white-000.gif\" width=\"142\" height=\"225\" \/><\/p>\n<p>Black Population<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/jeffhobbs.net\/files\/2007\/10\/dot-black-000.gif\" width=\"147\" height=\"225\" \/><\/p>\n<p>Asian Population<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/jeffhobbs.net\/files\/2007\/10\/dot-asian-000.gif\" width=\"147\" height=\"225\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was playing with the DOTDENSITY functional attribute today. Although it&#8217;s quite easy to use, I&#8217;m not sure how many&#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>Playing with Functional Attributes - 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=161\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Playing with Functional Attributes - jeffhobbs.com\" \/>\n<meta property=\"og:description\" content=\"I was playing with the DOTDENSITY functional attribute today. Although it&#8217;s quite easy to use, I&#8217;m not sure how many...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jeffhobbs.com\/?p=161\" \/>\n<meta property=\"og:site_name\" content=\"jeffhobbs.com\" \/>\n<meta property=\"article:published_time\" content=\"2007-10-05T02:54:34+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/jeffhobbs.net\/files\/2007\/10\/dot1.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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jeffhobbs.com\/?p=161\",\"url\":\"https:\/\/jeffhobbs.com\/?p=161\",\"name\":\"Playing with Functional Attributes - jeffhobbs.com\",\"isPartOf\":{\"@id\":\"https:\/\/jeffhobbs.com\/#website\"},\"datePublished\":\"2007-10-05T02:54:34+00:00\",\"dateModified\":\"2007-10-05T02:54:34+00:00\",\"author\":{\"@id\":\"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7\"},\"breadcrumb\":{\"@id\":\"https:\/\/jeffhobbs.com\/?p=161#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jeffhobbs.com\/?p=161\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jeffhobbs.com\/?p=161#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jeffhobbs.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Playing with Functional Attributes\"}]},{\"@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":"Playing with Functional Attributes - 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=161","og_locale":"en_US","og_type":"article","og_title":"Playing with Functional Attributes - jeffhobbs.com","og_description":"I was playing with the DOTDENSITY functional attribute today. Although it&#8217;s quite easy to use, I&#8217;m not sure how many...","og_url":"https:\/\/jeffhobbs.com\/?p=161","og_site_name":"jeffhobbs.com","article_published_time":"2007-10-05T02:54:34+00:00","og_image":[{"url":"http:\/\/jeffhobbs.net\/files\/2007\/10\/dot1.gif"}],"author":"Jeff Hobbs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jeff Hobbs","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jeffhobbs.com\/?p=161","url":"https:\/\/jeffhobbs.com\/?p=161","name":"Playing with Functional Attributes - jeffhobbs.com","isPartOf":{"@id":"https:\/\/jeffhobbs.com\/#website"},"datePublished":"2007-10-05T02:54:34+00:00","dateModified":"2007-10-05T02:54:34+00:00","author":{"@id":"https:\/\/jeffhobbs.com\/#\/schema\/person\/600c6cc6bd115876f071a9bfb5c934d7"},"breadcrumb":{"@id":"https:\/\/jeffhobbs.com\/?p=161#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jeffhobbs.com\/?p=161"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jeffhobbs.com\/?p=161#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jeffhobbs.com\/"},{"@type":"ListItem","position":2,"name":"Playing with Functional Attributes"}]},{"@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\/161"}],"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=161"}],"version-history":[{"count":0,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeffhobbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}