{"id":1426,"date":"2013-10-11T13:48:59","date_gmt":"2013-10-11T20:48:59","guid":{"rendered":"http:\/\/blog.light42.com\/wordpress\/?p=1426"},"modified":"2013-10-28T20:55:03","modified_gmt":"2013-10-29T03:55:03","slug":"california-pois-2013","status":"publish","type":"post","link":"http:\/\/blog.light42.com\/wordpress\/?p=1426","title":{"rendered":"California POIs 2013"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2012\/11\/University_of_California_Seal.svg_.png\" alt=\"University_of_California_Seal.svg\" width=\"200\" height=\"200\" class=\"alignright size-full wp-image-981\" srcset=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2012\/11\/University_of_California_Seal.svg_.png 200w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2012\/11\/University_of_California_Seal.svg_-150x150.png 150w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/p>\n<p>I took a short course on the <strong>US Census<\/strong> at the <a href=\"http:\/\/dlab.berkeley.edu\/\" title=\"DLab\" target=\"_blank\">University of California, Berkeley D-Lab<\/a> recently. Of course, the <a href=\"http:\/\/dlab.berkeley.edu\/blog\/data-and-shutdown-0\" title=\"s\" target=\"_blank\">first topic was the shutdown<\/a> of census.gov. People using the convenient, interactive Census API have been left without access to census data. <\/p>\n<p>Two hours of condensed lecture was just enough time to cover the basics of the breadth of the Census, and the Instructor <a href=\"http:\/\/dlab.berkeley.edu\/jon-stiles\" title=\"jon stiles\" target=\"_blank\">Dr. Jon Stiles<\/a> did an expert job.<\/p>\n<p>Following up on some leads from the class, I looked into &#8220;points of interest in the 2013 Census data versus OpenStreetMap.&#8221;  The Census includes a table called <strong>pointlm<\/strong>. In the case of California, the file I looked at is called <em>tl_2013_06_pointlm.shp<\/em>. It is a simple layout, with the state code, an ANSI code, point ID, fullname and something called mtfcc. Rather than dig through 1000 pages of census docs, on a site that is out of service, I found <a href=\"http:\/\/www.scribekey.com\/EntityAttributes\/POINTLM.html\" title=\"scribekey mtfcc\" target=\"_blank\">this table <\/a>, which has an easy to read format and a pointer to the definitions. A quick summary in SQL shows:<br \/>\n<br \\\/><br \/>\n<strong>US Census<\/strong><\/p>\n<pre>\r\nCensus 2013 pointlm California\r\n   Definition                           | count\r\n--------------------------------------------------\r\n...\r\n\"Hospital\/Hospice\/Urgent Care Facility\" | 292\r\n\"School or Academy\"                     | 3547\r\n...\r\n<\/pre>\n<p><br \\\/><br \/>\n<strong>OpenStreetMap<\/strong><\/p>\n<pre>\r\nOpenStreetMap California latest-snapshot\r\n   Definition                           | count\r\n--------------------------------------------------\r\n...\r\nhospital                                | 829\r\nschool                                  | 9201\r\n...\r\n\r\n<\/pre>\n<p>I used a tool called <a href=\"http:\/\/imposm.org\/\" title=\"imposm\" target=\"_blank\">imposm<\/a> (ignoring the latest-latest new version 3.0 and using the 2.x I was familiar with..) and <a href=\"http:\/\/imposm.org\/docs\/imposm\/latest\/tutorial.html\" title=\"imposm tutorial\" target=\"_blank\">imported<\/a> a dump of OpenStreetMap California &#8216;latest&#8217; to postgresql. <\/p>\n<p>  After seeing some of the other counts in the 2013 Census pointlm classes, I quickly became more interested in the OSM dataset for further refinements.<\/p>\n<p><em>Important Links<\/em><br \/>\n&#8212;<br \/>\n<a href=\"http:\/\/ucdata.berkeley.edu\/\" title=\"ucdata\" target=\"_blank\">ucdata.berkeley.edu<\/a><br \/>\n<a href=\"http:\/\/mcdc.missouri.edu\/websas\/geocorr12.html\" title=\"Geocorr\" target=\"_blank\">MABLE\/Geocorr12<\/a><br \/>\n<a href=\"https:\/\/gist.github.com\/darkblue-b\/6889328\" title=\"ACS20121\" target=\"_blank\">Import &#8220;ACS2012 1 Year&#8221; to PostgreSQL script<\/a><br \/>\n<a href=\"http:\/\/www.census.gov\/geo\/maps-data\/data\/pdfs\/tiger\/tgrshp2013\/TGRSHP2013_TechDoc.pdf\" title=\"TGRSHP2013_TechDoc.pdf\" target=\"_blank\">TGRSHP2013_TechDoc.pdf<\/a><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I took a short course on the US Census at the University of California, Berkeley D-Lab recently. Of course, the first topic was the shutdown of census.gov. People using the convenient, interactive Census API have been left without access to census data. Two hours of condensed lecture was just enough time to cover the basics [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1426"}],"collection":[{"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1426"}],"version-history":[{"count":12,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1426\/revisions"}],"predecessor-version":[{"id":1470,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1426\/revisions\/1470"}],"wp:attachment":[{"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1426"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}