<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mateusz Loskot &#187; ogc</title>
	<atom:link href="http://mateusz.loskot.net/tag/ogc/feed/" rel="self" type="application/rss+xml" />
	<link>http://mateusz.loskot.net</link>
	<description>mloskot&#039;s life, programming, c++, geo and adventures</description>
	<lastBuildDate>Tue, 10 Jan 2012 22:03:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Update on SqlGeometry and POINT EMPTY in WKB</title>
		<link>http://mateusz.loskot.net/2011/10/22/update-on-sqlgeometry-and-point-empty-in-wkb/</link>
		<comments>http://mateusz.loskot.net/2011/10/22/update-on-sqlgeometry-and-point-empty-in-wkb/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 22:41:46 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[geospatial]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[postgis]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[spatial]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[wkb]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=2221</guid>
		<description><![CDATA[Long time ago I discussed about how SqlGeometry handles POINT EMPTY in WKB format. The SqlGeometry states the definition of OGC GEOMETRY type for Microsoft SQL Server. Shortly, the message was that SqlGeometry implicitly casts POINT EMPTY to MULTIPOINT EMPTY &#8230; <a href="http://mateusz.loskot.net/2011/10/22/update-on-sqlgeometry-and-point-empty-in-wkb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Long time ago I discussed about how <a href="http://mateusz.loskot.net/?p=1914">SqlGeometry handles POINT EMPTY in </a><a href="http://en.wikipedia.org/wiki/Well-known_text">WKB</a> format. The <a href="http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.types.sqlgeometry%28SQL.105%29.aspx">SqlGeometry</a> states the definition of OGC <code>GEOMETRY</code> type for Microsoft SQL Server. Shortly, the message was that SqlGeometry implicitly casts <code>POINT EMPTY</code> to <code>MULTIPOINT EMPTY</code> geometry when generating WKB output. <a href="http://www.postgis.org">PostGIS</a> casts as well, but does it in a consistent way, in my opinion, outputting <code>GEOMETRYCOLLECTION</code>.</p>
<p>Following those findings, I assumed it is not quite correct, or I didn&#8217;t like the inconsistency, and I had reported it to <a href="http://connect.microsoft.com/">Microsoft Connect</a> as a bug: <a href="http://connect.microsoft.com/SQLServer/feedback/details/537018/sqlgeometry-reports-invalid-type-of-wkb-of-point-empty">SqlGeometry reports invalid type of WKB of POINT EMPTY</a>.</p>
<p>Recently, I have received a couple of comments from Microsoft to my report. The comments are attached to the report linked above, but I paste them below for completeness and archive:</p>
<blockquote><p>Our development team for the spatial data types tells me that it is not possible to use a single value for the WKB format of any spatial data type. For the POINT EMPTY, the WKB format does not allow empty points, so we are outputting a MULTIPOINT with zero elements.<br />
In a MULTIPOINT EMPTY, we are stripping out empty points.</p></blockquote>
<p>The reasoning is technically correct. It&#8217;s just Microsoft <em>does it differently</em>. However, as second comment suggests, the current behaviour may change in future:</p>
<blockquote><p>But we might consider changing it to get consistent behavior.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2011/10/22/update-on-sqlgeometry-and-point-empty-in-wkb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SqlGeometry and POINT EMPTY in WKB</title>
		<link>http://mateusz.loskot.net/2010/02/26/sqlgeometry-and-point-empty-in-wkb/</link>
		<comments>http://mateusz.loskot.net/2010/02/26/sqlgeometry-and-point-empty-in-wkb/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 22:53:29 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[geospatial]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[postgis]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[spatial]]></category>
		<category><![CDATA[visual c++]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=1914</guid>
		<description><![CDATA[Inspired by question Paul Ramsey asked today morning on IRC, I&#8217;ve inspected what kind of Well-Known-Binary output gives SqlGeometry for EMPTY geometries of all the seven geometry types as specified in OGC SFS. The SqlGeometry class is available from SQL &#8230; <a href="http://mateusz.loskot.net/2010/02/26/sqlgeometry-and-point-empty-in-wkb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Inspired by question <a href="http://www.cleverelephant.ca/index.html">Paul Ramsey</a> asked today morning on IRC, I&#8217;ve inspected what kind of Well-Known-Binary output gives <a href="http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.types.sqlgeometry%28SQL.105%29.aspx">SqlGeometry</a> for <code>EMPTY</code> geometries of all the seven geometry types as specified in OGC SFS. The <code>SqlGeometry</code> class is available from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=228DE03F-3B5A-428A-923F-58A033D316E1">SQL Server System CLR Types</a> for .NET Framework. Here we go.</p>
<p>I checked Well-Known-Binary output as returned by the SqlGeometry method <a href="http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.types.sqlgeometry.stasbinary%28SQL.105%29.aspx">STAsBinary()</a>. Here is a small test program written in C#:</p>
<pre><code>using System;
using System.Linq;
using Microsoft.SqlServer.Types;
namespace SqlGeometryEmpty
{
  class Test
  {
    static void Main(string[] args)
    {
      foreach (string type in
         Enum.GetNames(typeof(OpenGisGeometryType)))
      {
        string wkt = type.ToUpper() + " EMPTY";
        SqlGeometry geom = SqlGeometry.Parse(wkt);
        byte[] wkb = geom.STAsBinary().Buffer;
        string wkbhex = string.Join("",
          wkb.Select(
            b => b.ToString("X2")).ToArray());

        Console.WriteLine("{0}\n{1} ({2} bytes)\n",
          wkt, wkbhex, wkb.Length);
      }
    }
  }
}</code></pre>
<p>The first observation is that WKB of <code>EMPTY</code> geometry for all types is returned as a a slightly different binary. All the binary forms are truncated to <strong>nine bytes</strong>. The <strong>first byte</strong> indicates endianness as expected. The <strong>second</strong> chunk of <strong>four bytes</strong> indicate geometry type. It is exactly as defined in OGC specifications. The <strong>third</strong> chunk of remaining <strong>four bytes</strong> are set to Zero and seem to play a role of size specifier: number of points in <code>LINESTRING</code> or number of rings in <code>POLYGON</code>, number of points in <code>MULTIPOINT</code>, and so on. This makes another observation that WKB for EMPTY is reported as a collection of primitive components.</p>
<p>The difference in binary of WKB of EMPTY geometry I mentioned is in that the actual type of input geometry is preserved, so there seems to be no implicit translation to geometry of some other type.</p>
<p>So far so good but not for too long. In fact, <code>SqlGeometry</code> implicitly <em>casts</em> <code>POINT EMPTY</code> to <code>MULTIPOINT EMPTY</code> geometry with the WKB of the following form (in hex):</p>
<pre>010400000000000000</pre>
<p>Here is complete output of the test program above:</p>
<pre>POINT EMPTY
010400000000000000 (9 bytes)

LINESTRING EMPTY
010200000000000000 (9 bytes)

POLYGON EMPTY
010300000000000000 (9 bytes)

MULTIPOINT EMPTY
010400000000000000 (9 bytes)

MULTILINESTRING EMPTY
010500000000000000 (9 bytes)

MULTIPOLYGON EMPTY
010600000000000000 (9 bytes)

GEOMETRYCOLLECTION EMPTY
010700000000000000 (9 bytes)</pre>
<p>A word about how <a href="http://www.postgis.org/">PostGIS</a> behaves. PostGIS reports <code>GEOMETRYCOLLECTION EMPTY</code>, regardless of actual type of input <code>EMPTY</code> geometry. It is in hex form:</p>
<pre>010700000000000000</pre>
<p>Generally, there is not many choices of how to report EMPTY geometry in clear and usable way and a form of collection with size equal to Zero seems to be the most appropriate choice. <code>POINT EMPTY</code> reported with type set to <code>POINT</code> (010100000000000000) would be ambiguous as <em>feels</em> like truncated or invalid form of <code>POINT(0 0)</code>, especially in programming languages like C where native dynamic allocated arrays do not carry information about their size. IOW, geometry type is not enough information to process binary form of <code>POINT EMPTY</code> properly.</p>
<p>Reporting <code>EMPTY</code> geometries as a collection is a useful convention that seems to work well. PostGIS behaves about it in the very consistent manner reporting one type for all <em>empties</em>. SqlGeometry, so SQL Server, forces programmers to write a few more lines of code to handle all the possible cases. Yet another <del datetime="2010-02-26T22:41:25+00:00">original</del> exotic solution from Microsoft.</p>
<p>Consistent API is a bless!</p>
<p>Update: consistent specification of interface is even better.</p>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2010/02/26/sqlgeometry-and-point-empty-in-wkb/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>postgis dot us</title>
		<link>http://mateusz.loskot.net/2010/02/07/postgis-dot-us/</link>
		<comments>http://mateusz.loskot.net/2010/02/07/postgis-dot-us/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 00:12:05 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[geography]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[geospatial]]></category>
		<category><![CDATA[gis]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[postgis]]></category>
		<category><![CDATA[postgis in action]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[Regina Obe]]></category>
		<category><![CDATA[spatial]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=1852</guid>
		<description><![CDATA[Regina Obe has just announced that PostGIS in Action book website launched. It is http://postgis.us]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bostongis.com/blog/index.php?/authors/1-Regina-Obe">Regina Obe</a> has just <a href="http://www.bostongis.com/blog/index.php?/archives/155-PostGIS-1.5.0-out,-PLR-on-Windows,-and-PostGIS-In-Action-book-site-launched.html">announced</a> that <a href="http://www.manning.com/obe/">PostGIS in Action</a> book website launched. It is <a href="http://postgis.us">http://postgis.us</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2010/02/07/postgis-dot-us/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How PostGIS can help SQL Server users?</title>
		<link>http://mateusz.loskot.net/2010/02/03/how-postgis-can-help-sql-server-users/</link>
		<comments>http://mateusz.loskot.net/2010/02/03/how-postgis-can-help-sql-server-users/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 20:21:24 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[geospatial]]></category>
		<category><![CDATA[gml]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[opengis]]></category>
		<category><![CDATA[postgis]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[rdbms]]></category>
		<category><![CDATA[spatial]]></category>
		<category><![CDATA[sptial]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[stackoverflow]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=1829</guid>
		<description><![CDATA[I may be a gonzo or it&#8217;s just that today I didn&#8217;t have my notorious 4th coffee in my favourite Winnie The Pooh cup I got from Pantera on our 14th (or 15th?) anniversary we celebrated a month ago, so&#8230; &#8230; <a href="http://mateusz.loskot.net/2010/02/03/how-postgis-can-help-sql-server-users/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I may be a gonzo or it&#8217;s just that today I didn&#8217;t have my notorious <em>4th coffee</em> in my favourite <a href="http://www.whittard.co.uk/store/catalogue/China-P7000/Mugs-SC7002/Winnie-The-Pooh-Mug-208959.raa">Winnie The Pooh</a> cup I got from <a href="http://www.flickr.com/photos/mloskot/tags/pantera">Pantera</a> on our <strong>14th</strong> (or 15th?) anniversary we celebrated a month ago, so&#8230;</p>
<p>Apparently, there are situations in which <a href="http://www.postgis.org">PostGIS</a> could be an affordable anti-<a href="http://en.wikipedia.org/wiki/Geography_Markup_Language">GML</a> vaccine jab. It seems there is <a href="http://blog.cleverelephant.ca/2008/10/sponsor-geos-make-postgis-faster.html">a potential market for PostGIS</a> to conquer. Perhaps it wouldn&#8217;t be estimated as profitable as the <a href="http://marketsandmarkets.wordpress.com/2009/10/23/h1n1-swine-flu-influenza-vaccine-market-worth-us-7028-million-by-2011/">H1N1</a> but who knows what will happen if no one takes a brave stand and <a href="http://www.geoplace.com/me2/dirmod.asp?sid=119CFE3ACE2A48319AA7DE6A39B80D66&#038;nm=News&#038;type=Publishing&#038;mod=Publications%3A%3AArticle&#038;mid=8F3A7027421841978F18BE895F87F791&#038;tier=4&#038;id=A6331F2C001C4DBA81A350F0BA07980E">stop GML designers</a>! Here I&#8217;d eagerly conclude with one of the famous <a href="http://en.wikipedia.org/wiki/A_History_of_Scotland_%28TV_series%29">Scottish</a> <a href="http://www.firstfoot.com/dictionary/full.html">sentences</a> :-)</p>
<p>Back to the subject matter. Today, I spotted an interesting question on the <a href="http://stackoverflow.com/">StackOverflow</a> archives: <a href="http://stackoverflow.com/questions/352814/is-it-possible-to-export-spatial-data-from-sql-server-2008-in-gml2-format/">Is it possible to export spatial data from Sql Server 2008 in gml2 format?</a>. Natively? No, there is no such solution. Presumably, Microsoft thinks forward and thinks <a href="http://www.opengeospatial.org/standards/gml">GML 2</a> is a legacy standard. Fair enough, someone has to draw a line between prehistoric and modern, somewhere. Why Microsoft? <a href="http://www.microsoft.com/visualstudio/en-us/products/2010/default.mspx">Again</a>?</p>
<p>Facing such a tremendous suffer Microsoft exposed SQL Server users to, I suggested to visit the &#8220;underworld&#8221; for a while and <a href="http://stackoverflow.com/questions/352814/is-it-possible-to-export-spatial-data-from-sql-server-2008-in-gml2-format/2194841#2194841">hire PostGIS to do the dirty job</a>.</p>
<p>Paraphrasing <a href="http://en.wikipedia.org/wiki/Andrei_Alexandrescu">Andrei Alexan­dres­cu</a>&#8216;s, hysterically <a href="http://www.reddit.com/r/programming/comments/8isiw/author_of_modern_c_design_stl_iterators_must_die/">famous</a> recently, <a href="http://lambda-the-ultimate.org/node/3520">sentence</a>: <em>SQL Server should go!</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2010/02/03/how-postgis-can-help-sql-server-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PostGIS 1.5.0 will require GEOS 3.1.0+</title>
		<link>http://mateusz.loskot.net/2010/01/15/postgis-1-5-0-will-require-geos-3-1-0/</link>
		<comments>http://mateusz.loskot.net/2010/01/15/postgis-1-5-0-will-require-geos-3-1-0/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 18:06:58 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[geos]]></category>
		<category><![CDATA[geospatial]]></category>
		<category><![CDATA[jts]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[postgis]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[requirement]]></category>
		<category><![CDATA[spatial]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=1711</guid>
		<description><![CDATA[PostGirls and PostBoys, be prepared! The upcoming release of PostGIS 1.5.0 (available as beta1 beta2) will require GEOS in version 3.1.0 or later. The beta1 testing results suggested to bump the minimum GEOS version to 3.1.0. The GEOS requirement issue &#8230; <a href="http://mateusz.loskot.net/2010/01/15/postgis-1-5-0-will-require-geos-3-1-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/images/logos/postgis-globe-logo.gif" width="82" height="85" alt="PostGIS spatial database extension for PostgreSQL" align="left" border="0" style="margin: 5px" /><strong>PostGirls and PostBoys, be prepared!</strong></p>
<p>The upcoming release of <a href="http://trac.osgeo.org/postgis/">PostGIS</a> 1.5.0 (available as <a href="http://postgis.refractions.net/pipermail/postgis-devel/2010-January/008192.html"><del datetime="2010-01-15T18:31:35+00:00">beta1</del></a> <a href="http://postgis.refractions.net/pipermail/postgis-devel/2010-January/008290.html">beta2</a>) will require <a href="http://trac.osgeo.org/geos/">GEOS</a> in version 3.1.0 or later.</p>
<p>The <a href="http://postgis.refractions.net/pipermail/postgis-devel/2010-January/008192.html">beta1</a> testing results suggested to <a href="http://postgis.refractions.net/pipermail/postgis-devel/2010-January/008272.html"><em>bump the minimum GEOS version to 3.1.0</em></a>. The <a href="http://download.osgeo.org/geos/">GEOS</a> requirement issue was one of the heavily discussed topics on the <a href="http://postgis.refractions.net/pipermail/postgis-devel/2010-January/">postgis-devel this month.</a></p>
<p>The PostGIS team is going to give GEOS a nice present for its <a href="http://blog.cleverelephant.ca/2009/03/geos-310.html">10th round month birthday</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2010/01/15/postgis-1-5-0-will-require-geos-3-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PostGIS explains DE-9IM</title>
		<link>http://mateusz.loskot.net/2009/12/06/postgis-explains-de-9im/</link>
		<comments>http://mateusz.loskot.net/2009/12/06/postgis-explains-de-9im/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 02:08:21 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[de-9im]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[geography]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[geospatial]]></category>
		<category><![CDATA[gis]]></category>
		<category><![CDATA[intersection]]></category>
		<category><![CDATA[Kevin Neufeld]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[postgis]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[Regina Obe]]></category>
		<category><![CDATA[spatial]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=1614</guid>
		<description><![CDATA[I am happy I belong to the hordes of PostGIS users. Recently I asked for a very small addition to the PostGIS manual that will explain the three basic terms of the geospatial geometry: interior, boundary and exterior. Kevin Neufeld &#8230; <a href="http://mateusz.loskot.net/2009/12/06/postgis-explains-de-9im/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/images/logos/postgis-globe-logo.gif" width="82" height="85" alt="PostGIS spatial database extension for PostgreSQL" align="left" border="0" style="margin: 5px" />I am happy I belong to the hordes of <a href="http://postgis.org/">PostGIS</a> users. Recently I <a href="http://trac.osgeo.org/postgis/ticket/274">asked for a very small addition</a> to the PostGIS <a href="http://postgis.org/documentation/manual-svn/">manual</a> that will explain the three basic terms of the <a href="http://www.opengeospatial.org/standards/sfs/">geospatial geometry</a>: <em>interior</em>, <em>boundary</em> and <em>exterior</em>.</p>
<p>Kevin Neufeld delivered a very well written chapter about <a href="http://postgis.org/documentation/manual-svn/ch04.html#DE-9IM">Dimensionally Extended 9 Intersection Model (DE-9IM)</a> with series of excellent visualisations of the non-trivial mathematics.</p>
<p><a href="http://www.flickr.com/photos/mloskot/4161103255/" title="PostGIS - Dimensionally Extended 9 Intersection Model (DE-9IM), on Flickr"><img src="http://farm3.static.flickr.com/2568/4161103255_42353a284f_o.png" width="445" height="410" alt="PostGIS - Dimensionally Extended 9 Intersection Model (DE-9IM)" style="margin: 5px" /></a></p>
<p>Moreover, Kevin started completing the PostGIS <a href="http://postgis.org/documentation/manual-svn/reference.html">Functions Reference</a> with visual presentation of geometric problems together with SQL commands using various PostGIS functions that can be applied to solve particular situations. For example, what does the <a href="http://postgis.org/documentation/manual-svn/ST_Buffer.html ">ST_Buffer</a> function, how boolean predicates like <a href="http://postgis.org/documentation/manual-svn/ST_Contains.html">ST_Contains</a> check spatial relation of two geometries or what&#8217;s the difference between <a href="http://postgis.org/documentation/manual-svn/ST_Difference.html">ST_Difference</a> and <a href="http://postgis.org/documentation/manual-svn/ST_SymDifference.html">ST_SymDifference</a>.</p>
<p>Clearly, I&#8217;ve got <em>way way more</em> than I asked for or I expected. On behalf of myself and users who are about to start their adventure with PostGIS, I&#8217;d like to give big kudos to Kevin for this fantastic work!</p>
<p>Together with the recently documented <a href="http://www.postgis.org/documentation/manual-svn/reference.html#PostGIS_Types">PostgreSQL PostGIS Types</a> and <a href="/?p=1588">Function Support Matrix</a>, <a href="http://en.wikipedia.org/wiki/PostGIS">PostGIS team</a> is making abrupt manual a pleasant reading book.</p>
<p>By the way, here is a bunch of references about DE-9IM I found very useful myself:</p>
<ul>
<li><a href="http://gis.hsr.ch/wiki/images/3/3d/9dem_springer.pdf">Dimensionally Extended Nine-Intersection Model (DE-9IM)</a> by Christian Strobl</li>
<li><a href="http://www.springer.com/book/978-0-387-30858-6">Encyclopedia of GIS</a> by Hui Xiong, page 242</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2009/12/06/postgis-explains-de-9im/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PostGIS Function Support Matrix</title>
		<link>http://mateusz.loskot.net/2009/12/03/postgis-function-support-matrix/</link>
		<comments>http://mateusz.loskot.net/2009/12/03/postgis-function-support-matrix/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 09:05:48 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[geospatial]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[postgis]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[Regina Obe]]></category>
		<category><![CDATA[spatial]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=1588</guid>
		<description><![CDATA[Regina crafted matrix of functions available in upcoming PostGIS 1.5. Currently, PostGIS 1.5 is available from trunk in the Subversion repository. The PostGIS 1.5 documentation is available under the manual-svn node and here is the PostGIS Function Support Matrix. Regina, &#8230; <a href="http://mateusz.loskot.net/2009/12/03/postgis-function-support-matrix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/images/logos/postgis-globe-logo.gif" width="82" height="85" alt="PostGIS spatial database extension for PostgreSQL" align="left" border="0" style="margin: 5px" /><a href="http://www.bostongis.com/blog/">Regina</a> <a href="http://trac.osgeo.org/postgis/ticket/331">crafted</a> matrix of functions available in upcoming PostGIS 1.5. Currently, PostGIS 1.5 is available from <a href="http://svn.osgeo.org/postgis/trunk/">trunk</a> in the Subversion repository.</p>
<p>The PostGIS 1.5 <a href="http://www.postgis.org/documentation/">documentation</a> is available under the <a href="http://www.postgis.org/documentation/manual-svn/">manual-svn</a> node and here is the <a href=" http://www.postgis.org/documentation/manual-svn/ch08.html#PostGIS_TypeFunctionMatrix">PostGIS Function Support Matrix</a>.</p>
<p>Regina, great job!</p>
<p>By the way, there is an interesting <a href="http://trac.osgeo.org/postgis/ticket/331#comment:8">problem with check marks</a>. does anyone know how to define <a href="http://www.w3.org/TR/MathML2/isopub.html">check marks based on Unicode</a> and make them visible in <a href="http://en.wikipedia.org/wiki/Internet_Explorer_8">IE8</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2009/12/03/postgis-function-support-matrix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>OGC GeoTIFF?</title>
		<link>http://mateusz.loskot.net/2009/10/26/ogc-geotiff/</link>
		<comments>http://mateusz.loskot.net/2009/10/26/ogc-geotiff/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 18:21:16 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[Carl Reed]]></category>
		<category><![CDATA[geotiff]]></category>
		<category><![CDATA[libgeotiff]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[opengeospatial]]></category>
		<category><![CDATA[specification]]></category>
		<category><![CDATA[standard]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=1428</guid>
		<description><![CDATA[A couple of minutes ago, Mr Carl Reed, CTO at the Open Geospatial Consortium, posted the GeoTIFF project mailing list with message that may interest hundreds of thousands of users of geospatial raster data around the world. It is thread &#8230; <a href="http://mateusz.loskot.net/2009/10/26/ogc-geotiff/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A couple of minutes ago, Mr <a href="http://www.opengeospatial.org/user/10">Carl Reed</a>, CTO at the <a href="http://www.opengeospatial.org">Open Geospatial Consortium</a>, posted the <a href="http://trac.osgeo.org/geotiff/">GeoTIFF</a> project mailing <a href="http://lists.maptools.org/mailman/listinfo/geotiff">list</a> with message that may interest hundreds of thousands of users of <a href="http://www.gisdevelopment.net/technology/ip/mi03117pf.htm">geospatial raster data</a> around the world. It is thread titled <a href="http://lists.maptools.org/pipermail/geotiff/2009-October/000577.html">GeoTIFF and the OGC</a>. Hot!</p>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2009/10/26/ogc-geotiff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSGeo Propaganda</title>
		<link>http://mateusz.loskot.net/2009/10/12/osgeo-propaganda/</link>
		<comments>http://mateusz.loskot.net/2009/10/12/osgeo-propaganda/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 22:29:56 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[apollo]]></category>
		<category><![CDATA[defamation]]></category>
		<category><![CDATA[erdas]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[Shawn Owston]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=1273</guid>
		<description><![CDATA[The recent discussion on LinkedIn OGC forum about Advantages and disadvantages of Open Source GIS has reached at times hot temperatures. Good, as long as a discussion is factual. Unfortunately, the current one sometimes lacks of facts. Shawn Owston has &#8230; <a href="http://mateusz.loskot.net/2009/10/12/osgeo-propaganda/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The recent discussion on LinkedIn OGC forum about <a href="http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&#038;gid=55322&#038;discussionID=7776133&#038;sik=1255385959491&#038;trk=ug_qa_q&#038;goback=.ana_55322_1255385959491_3_1">Advantages and disadvantages of Open Source GIS</a> has reached at times hot temperatures. Good, as long as a discussion is factual. Unfortunately, the current one sometimes lacks of facts. <a href="http://owston.blogspot.com/2009/10/open-source-doesnt-like-to-be-talked.html">Shawn Owston</a> has started throwing heavy stones without, again, giving any facts or real examples:</p>
<blockquote><p>One of the major &#8220;issues&#8221; with OSGeo in particular is the open and slanderous at times propoganda that is communicated regarding &#8220;commercial&#8221; companies regarding software quality, maintenance schedule and delivery of bug fixes to their constituent markets.</p></blockquote>
<p>I agree with <a href="http://en.wikipedia.org/wiki/Propaganda">propaganda</a> but I do not agree with <a href="http://en.wikipedia.org/wiki/Defamation">slanderous</a> propaganda. I have never seen anybody talking or writing on behalf of <a href="http://osgeo.org">OSGeo</a> who would be spreading defamation about anyone or anything in the industry or outside.</p>
<p><em>Shawn, it&#8217;s just not right. Please, drop the heavy stones away and pick the facts.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2009/10/12/osgeo-propaganda/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The Myth of Objectivity</title>
		<link>http://mateusz.loskot.net/2009/10/10/the-myth-of-objectivity/</link>
		<comments>http://mateusz.loskot.net/2009/10/10/the-myth-of-objectivity/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 21:46:38 +0000</pubDate>
		<dc:creator>mloskot</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[discussion]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[fsf]]></category>
		<category><![CDATA[gdal ogr json geojson driver format gis geospatial feat]]></category>
		<category><![CDATA[human]]></category>
		<category><![CDATA[ignorance]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[linkedin.com]]></category>
		<category><![CDATA[myth]]></category>
		<category><![CDATA[nature]]></category>
		<category><![CDATA[objectivity]]></category>
		<category><![CDATA[ogc]]></category>
		<category><![CDATA[philosophy]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rambling]]></category>
		<category><![CDATA[religion]]></category>
		<category><![CDATA[Shawn Owston]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://mateusz.loskot.net/?p=1197</guid>
		<description><![CDATA[I do not advocate anything or anyone. All right, may be I do advocate but only a few small tiny things like C++ programming language, generic programming and high quality of software code and design and my dog, of course. &#8230; <a href="http://mateusz.loskot.net/2009/10/10/the-myth-of-objectivity/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I do not advocate <em>anything</em> or <em>anyone</em>. All right, may be I do advocate but only a few small tiny things like <a href="http://cpp-next.com/">C++ programming language</a>, <a href="http://www.boost.org/">generic programming</a> and <a href="http://www.research.att.com/~bs/JSF-AV-rules.pdf">high quality of software code and design</a> and <a href="http://www.flickr.com/photos/mloskot/tags/dog">my dog</a>, of course. However, I let myself to go down in the discussion about <a href="http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&#038;gid=55322&#038;discussionID=7776133&#038;goback=.anh_55322">advantages and disadvantages of Open Source GIS</a> on <a href="http://www.linkedin.com/groups?home=&#038;gid=55322&#038;trk=anet_ug_hm&#038;goback=.anh_55322">OGC forum</a> at LinkedIn and somewhat at <a href="http://lists.osgeo.org/pipermail/discuss/2009-October/006085.html">OSGeo mailing list</a> too.</p>
<p>A human nature pisses me off, sometimes. (I am a human being, in case of doubt.) The world is bloody relative but we love to sling absolutes around. Yeah, <a href="http://www.nba.com/video/i_love_this_game.html">we love this game!</a> We are not good in learning from mistakes, anyway. Thus, the only achievement of attempting to <a href="http://directory.fsf.org/project/patch/">apply a patch</a> to someone&#8217;s buggy ignorance is <em>a waste of time</em> and may be a bit of training in fast typing or boxing ;-)</p>
<p><a href="http://www.cleverelephant.ca/">Paul</a> is right <a href="http://lists.osgeo.org/pipermail/discuss/2009-October/006089.html">recommending</a> <em>don&#8217;t feed the troll!</em>. But, what has been learned is going to be lost, naturally.</p>
]]></content:encoded>
			<wfw:commentRss>http://mateusz.loskot.net/2009/10/10/the-myth-of-objectivity/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

