<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Shady Project: RDMBS and Spatial Data on OS X</title>
    <link>http://blog.shadyproject.net/articles/2007/01/23/rdmbs-and-spatial-data-on-os-x</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Stuff.  And Things.</description>
    <item>
      <title>RDMBS and Spatial Data on OS X</title>
      <description>&lt;p&gt;MySQL is nice enough for your average web application.  Even larger applications can be run on it with the appropriate amount of tuning voodoo (see: wikipedia).  There is even the MySQL MaxDB product (essentially SAPDB rebranded after its GPL release) available for Enterprise level MySQL, although this is not available for OS X.&lt;/p&gt;

&lt;p&gt;Core data is also a nice solution for persistence inside a single application.&lt;/p&gt;

&lt;p&gt;Oracle can also be run on OS X, provided you enjoy being turned upside down and shaken over a large funnel until all your money comes out. Not that this pertains specifically to Oracle on OS X, it's really more of an Oracle feature in general.&lt;/p&gt;

&lt;p&gt;Each of these database server options are available for OS X.  And they all have their various uses and proponents.  So why am I here talking about Postgres? Well, &lt;ol&gt;&lt;li&gt;It's Free (speech, and beer).&lt;/li&gt;&lt;li&gt;It's enterprise ready (I seem to recall the .org primary name servers run on postgres)&lt;/li&gt;&lt;li&gt;PostGIS&lt;/p&gt;&lt;/ol&gt;&lt;/p&gt;
&lt;p&gt;For those who don't know, &lt;a href="http://postgis.refractions.net/"&gt;PostGIS&lt;/a&gt; is an addon for PostgreSQL that allows the use of geographic objects as native datatypes inside the SQL engine.  This includes points, lines, polygons, as well as a variety of functions that can work with these data types to give us, say, area, intersection, and unions of the various objects.  To use the industry parlance, PostGIS will "spatially enable" PostgreSQL which allows us to store a wide variety of geographic data.  We can additionally point tools such as &lt;a href="http://qgis.org/"&gt;Quantum GIS&lt;/a&gt;, &lt;a href="http://grass.itc.it/index.php"&gt;GRASS GIS&lt;/a&gt;, and even the &lt;a href="http://www.esri.com"&gt;various ARC tools&lt;/a&gt; at a PostgreSQL database for almost all of our spatial data storage needs.  It is based on the &lt;a href="http://www. opengeospatial.org"&gt;Open Geospatial Consortium&lt;/a&gt; Simple Features Specification for SQL.&lt;/p&gt;

&lt;p&gt;Storing spatial data in an RDMBS solves a wide variety of problems that happen when managing spatial data, especially with multiple users.  We can manage concurrent access more easily, we have defined mechanisms for backing up the data, and we can even generate other file types (shapefiles, for example) from the data in the database.  Any organiziation that has more then a few users working on large amounts of spatial data can benefit a lot through the use of a spatially enabled RDMBS&lt;/p&gt;

&lt;p&gt;So why PostgreSQL then?  Well, to my knowledge there is no equivalent library for MySQL (feel free to point my in the right direction if one does exist).  Ditto for MaxDB.  Oracle does have spatial extensions, but costs, to use a technical term, assloads of money.  DB2 and MSSQL 2000 also have their own spatial extension, but fall into largley the same category as Oracle with regards to price.  Although, there is a free spatial extension for MSSQL 2000 available, the price of the server itself is costly.  Oh yeah, and neither one of those two run on OS X.  PostgreSQL does.&lt;/p&gt;

&lt;p&gt;Over the course of the week, I wil be writing more about setting up PostgreSQL on OS X (it's really not that hard), installing PostGIS, and getting everything working nice and happily.  Time permitting, I will even experiment with the &lt;a href="http://www.karppinen.fi/baseten/"&gt;BaseTen&lt;/a&gt; framework.  This library gives us all the ease of a CoreData-like API, with a PostegreSQL back end.  Heck, with those two, we're halfway to a Cocoa Native GIS program.  Wouldn't that be cool?&lt;/p&gt;

&lt;p&gt;Stay tuned tomorrow, when I delve into the mysteries of PostgreSQL, OS X, and kern.sysv.shmmax. &lt;/p&gt;</description>
      <pubDate>Tue, 23 Jan 2007 15:07:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:33579324-7b6a-498c-8902-587ad0f115e6</guid>
      <author>Shady</author>
      <link>http://blog.shadyproject.net/articles/2007/01/23/rdmbs-and-spatial-data-on-os-x</link>
      <category>OSX</category>
      <category>GIS</category>
      <category>GIS</category>
    </item>
    <item>
      <title>"RDMBS and Spatial Data on OS X" by Test</title>
      <description>Test</description>
      <pubDate>Tue, 23 Jan 2007 16:52:59 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:90672e32-5fca-444d-9518-9d0271213370</guid>
      <link>http://blog.shadyproject.net/articles/2007/01/23/rdmbs-and-spatial-data-on-os-x#comment-21</link>
    </item>
  </channel>
</rss>
