{"id":118,"date":"2006-01-11T11:13:48","date_gmt":"2006-01-11T15:13:48","guid":{"rendered":"http:\/\/crschmidt.net\/blog\/?p=118"},"modified":"2006-01-11T11:13:48","modified_gmt":"2006-01-11T15:13:48","slug":"my-first-spatial-database","status":"publish","type":"post","link":"https:\/\/crschmidt.net\/blog\/archives\/118\/my-first-spatial-database\/","title":{"rendered":"My First Spatial Database"},"content":{"rendered":"<p>Thanks to Schuyler and Rich Gibson, I now have a spatially aware postgres database.<\/p>\n<p>Later today, thanks to Schuyler and zool, I&#8217;ll have a copy of Mapping Hacks, and a bluetooth GPS.<\/p>\n<p>Last night, I learned how to use centroid(), astext(), and distance_spheroid(), and calculated the distance from my house to zool&#8217;s house, and from there to Darwin&#8217;s, where I ate lunch and used the wireless yesterday. I loaded some data, learned the frustration of having data in different projections, and learned a little bit about the various types of geometry. I loaded data from an ESRI shapefile. I found that &#8220;&#8221; in Postgres is equivilant to &#8220; in mysql &#8212; that is, &#8220;GEOMETRY&#8221; means &#8216;the value from column Geometry&#8217;, not &#8216;GEOMETRY&#8217;, which is the literal. (If you ever get &#8220;Error: column &#8220;Foo&#8221; does not exist, that might be a good thing to check.) <\/p>\n<p>Last night, I made my first foray into spatial databases. <\/p>\n<p>Last night, I took control of space on my machine.<\/p>\n<p>Tomorrow, I take control of space in the world!<\/p>\n<p>But today, I need to work on things that I&#8217;m actually paid for at the moment. \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to Schuyler and Rich Gibson, I now have a spatially aware postgres database. Later today, thanks to Schuyler and zool, I&#8217;ll have a copy of Mapping Hacks, and a bluetooth GPS. Last night, I learned how to use centroid(), astext(), and distance_spheroid(), and calculated the distance from my house to zool&#8217;s house, and from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46,45],"tags":[],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-postgis","category-spatial-databases"],"_links":{"self":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":0,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"wp:attachment":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}