<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>BostonGIS - waiting_postgis_22</title>
    <link>https://www.bostongis.com/blog/</link>
    <description>Open Source GIS</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6.0 - http://www.s9y.org/</generator>
    <pubDate>Thu, 07 Jan 2016 20:39:07 GMT</pubDate>

    <image>
    <url>https://www.bostongis.com/blog/templates/default/img/s9y_banner_small.png</url>
    <title>RSS: BostonGIS - waiting_postgis_22 - Open Source GIS</title>
    <link>https://www.bostongis.com/blog/</link>
    <width>100</width>
    <height>21</height>
</image>

<item>
    <title>ogr_fdw foreign data wrapper for PostgreSQL 9.5rc1</title>
    <link>https://www.bostongis.com/blog/index.php?/archives/249-ogr_fdw-foreign-data-wrapper-for-PostgreSQL-9.5rc1.html</link>
            <category>postgis postgresql</category>
            <category>waiting_postgis_22</category>
    
    <comments>https://www.bostongis.com/blog/index.php?/archives/249-ogr_fdw-foreign-data-wrapper-for-PostgreSQL-9.5rc1.html#comments</comments>
    <wfw:comment>https://www.bostongis.com/blog/wfwcomment.php?cid=249</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://www.bostongis.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=249</wfw:commentRss>
    

    <author>nospam@example.com (Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;The PostgreSQL 9.5 FDW api changed a little bit between 9.5beta2 release and 9.5rc1.  This means that many FDWs may be broken at the moment.  I patched up the OGR_FDW to be compatible with 9.5rc1 and Paul  &lt;a href=&quot;https://github.com/pramsey/pgsql-ogr-fdw/commit/9c32a630fa53e867efbb32ec0a557674d4b1a361&quot; target=&quot;_blank&quot;&gt;merged this into the ogr_fdw repo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;That said I have not repackaged the Windows PostGIS 2.2.0 9.5 bundle to have this updated library, so as such, if you upgraded to PostgreSQL 9.5rc1, your ogr_fdw will crash your backend if you are using the ones on Stackbuilder.  However there are newer versions compiled against 9.5rc1 with the patch on &lt;a href=&quot;http://winnie.postgis.net/download/windows/pg95/buildbot/extras/&quot;&gt;winnie&#039;s 9.5 extras folder -  http://winnie.postgis.net/download/windows/pg95/buildbot/extras&lt;/a&gt;.  &lt;/p&gt;

&lt;p&gt;We plan to do another release with this patched version (or newer patched version), for PostGIS 2.2.1, which should be out within the next week or so.&lt;/p&gt;

&lt;p&gt;I also submitted a patch for ogr_fdw for the new IMPORT FOREIGN SCHEMA support which is available for 9.5+.  This patch has not been accepted yet, but I&#039;m hoping it will be in some shape or form before 9.5/PostGIS 2.2.1 release time.   How to take advantage of this new feature is briefly described in &lt;a href=&quot;http://www.postgresonline.com/journal/archives/359-Import-Foreign-Schema-for-ogr_fdw-for-PostgreSQL-9.5.html&quot; target=&quot;_blank&quot;&gt;Import Foreign Schema for ogr fdw for PostgreSQL 9.5&lt;/a&gt;.  If any one on windows is in a rush to try this new feature, let me know and I&#039;ll spin up a binary from &lt;a href=&quot;https://github.com/robe2/pgsql-ogr-fdw&quot; target=&quot;_blank&quot;&gt;my ogr_fdw fork&lt;/a&gt;.  The IMPORT FOREIGN SCHEMA feature is much more useful than I dreamed it would be for ogr_fdw so I&#039;m very excited.&lt;/p&gt;  
    </content:encoded>

    <pubDate>Sat, 02 Jan 2016 17:05:00 -0500</pubDate>
    <guid isPermaLink="false">https://www.bostongis.com/blog/index.php?/archives/249-guid.html</guid>
    
</item>
<item>
    <title>PostGIS 2.2.0 windows bundle is now on Application Stackbuilder includes pgRouting 2.1.0</title>
    <link>https://www.bostongis.com/blog/index.php?/archives/247-PostGIS-2.2.0-windows-bundle-is-now-on-Application-Stackbuilder-includes-pgRouting-2.1.0.html</link>
            <category>gis</category>
            <category>pgrouting</category>
            <category>postgis postgresql</category>
            <category>waiting_postgis_22</category>
    
    <comments>https://www.bostongis.com/blog/index.php?/archives/247-PostGIS-2.2.0-windows-bundle-is-now-on-Application-Stackbuilder-includes-pgRouting-2.1.0.html#comments</comments>
    <wfw:comment>https://www.bostongis.com/blog/wfwcomment.php?cid=247</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://www.bostongis.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=247</wfw:commentRss>
    

    <author>nospam@example.com (Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;The PostGIS 2.2.0 bundles for windows for PostgreSQL 9.3-9.4 (both 32/64-bit) and PostgreSQL 9.5beta1 64-bit are now on stackbuilder.  I&#039;m working out some compile issues for the PostgreSQL 9.5beta1 32-bit so don&#039;t have those ready yet.  This includes pgRouting 2.1.0 and inaugural release of PostGIS SFCGAL extension, OGR FDW spatial foreign data wrapper, and pgPointCloud on windows.&lt;/p&gt;

&lt;p&gt;I have also updated our popular BostonGIS - &lt;a href=&quot;/PrinterFriendly.aspx?content_name=postgis_tut01&quot; target=&quot;_blank&quot;&gt;Part 1: Getting Started With PostGIS: An almost Idiot&#039;s Guide&lt;/a&gt; to utilize PostgreSQL 9.5beta1 and PostGIS 2.2.  Still on our todo is to update the loader/query example and also the pgRouting tutorial for pgRouting 2.1.0.  A ton has changed in pgRouting 2.1.0, so be sure to buy our book &lt;a href=&quot;http://locatepress.com/pgrouting&quot; target=&quot;_blank&quot;&gt;pgRouting: A Practical Guide&lt;/a&gt; which will have a preview release sale coming soon  with first 4-5 draft chapters available and all on final publication all chapters (approximately 10-12).&lt;/p&gt;

&lt;p&gt;Check out the PostGIS Bundle 2.2 extensions higlighted in yellow in pgAdmin extensions drop down  &lt;img src=&quot;/images/snippets/pgAdminIII_extensions_postgis22_02a.png&quot; /&gt; &lt;img src=&quot;/images/snippets/pgAdminIII_extensions_postgis22_02.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;To take full advantage of what PostGIS 2.2 has to offer (notable true KNN distance for geometry, geography, and 3D geometries -- not just bounding box like is available for PostgreSQL 9.4 and below), you need to use PostgreSQL 9.5.  So start testing out your apps on PostgreSQL 9.5 now so you will be ready when it hits release.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 17 Oct 2015 22:37:00 -0400</pubDate>
    <guid isPermaLink="false">https://www.bostongis.com/blog/index.php?/archives/247-guid.html</guid>
    
</item>
<item>
    <title>Waiting for PostGIS 2.2 - ST_ClipByBox2D - Map dicing Redux in concert with ST_Tile</title>
    <link>https://www.bostongis.com/blog/index.php?/archives/231-Waiting-for-PostGIS-2.2-ST_ClipByBox2D-Map-dicing-Redux-in-concert-with-ST_Tile.html</link>
            <category>postgis postgresql</category>
            <category>postgis_raster</category>
            <category>waiting_postgis_22</category>
    
    <comments>https://www.bostongis.com/blog/index.php?/archives/231-Waiting-for-PostGIS-2.2-ST_ClipByBox2D-Map-dicing-Redux-in-concert-with-ST_Tile.html#comments</comments>
    <wfw:comment>https://www.bostongis.com/blog/wfwcomment.php?cid=231</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://www.bostongis.com/blog/rss.php?version=2.0&amp;type=comments&amp;cid=231</wfw:commentRss>
    

    <author>nospam@example.com (Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;One of the new features coming in PostGIS 2.2 is &lt;a href=&quot;http://postgis.net/docs/manual-dev/ST_ClipByBox2D.html&quot; target=&quot;_blank&quot;&gt;ST_ClipByBox2D&lt;/a&gt; (thanks to &lt;a href=&quot;http://strk.keybit.net&quot; target=&quot;_blank&quot;&gt;Sandro Santilli&#039;s&lt;/a&gt; recent commits
funded by &lt;a href=&quot;http://cartodb.com&quot; target=&quot;_blank&quot;&gt;CartoDB&lt;/a&gt; ).  However to take advantage of it, you are going to need your PostGIS compiled with GEOS 3.5+ (very recent build) which has not been released yet.
Windows folks, the PostGIS 2.2 9.3 and 9.4 experimental binaries are built with the latest GEOS 3.5 development branch, so you should be able to test this out with &lt;a href=&quot;http://postgis.net/windows_downloads&quot; target=&quot;_blank&quot;&gt;Winnie&#039;s experimental builds&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Since the dawn of PostGIS, PostGIS users have needed to mutilate their geometries in often painful and horrific ways.
Why is ST_ClipByBox2D function useful, because its a much faster way of mutilating your geometries by a rectangular mold than using ST_Intersection.  Why would you want to mutilate your geometries?
There are many reasons, but I&#039;ll give you one:  As your geometry approaches the area of your bounding box and as your bounding box size decreases, the more efficient your spatial index becomes.
You can consider this article, Map dicing redux of the article I wrote (eons ago) - &lt;a href=&quot;https://www.bostongis.com/blog/index.php?/archives/35-Map-Dicing-and-other-stuff.html&quot; target=&quot;_blank&quot;&gt;Map Dicing and other stuff&lt;/a&gt; which describes the same approach with much older technology.  Though I will be using more or less the same dataset &lt;a href=&quot;http://www.mass.gov/anf/research-and-tech/it-serv-and-support/application-serv/office-of-geographic-information-massgis/datalayers/townsurvey.html&quot; target=&quot;_blank&quot;&gt;Massachusetts TOWNSSURVEY_POLYM&lt;/a&gt; (its newer so you can&#039;t really compare) and I tried to simplify my exercise a bit (not resorting to temp tables and such), my focus in this article will be to compare the speed between the new ST_ClipByBox2D approach and the old ST_Intersection approach. The spoiler for those who don&#039;t have the patience for this exercise is that using &lt;b&gt;ST_ClipByBox2D&lt;/b&gt; at least on my sample data set on my puny Windows 7 64-bit desktop using PostgreSQL 9.4beta2 64-bit 
was about 4-5 times faster than using &lt;b&gt;ST_Intersection&lt;/b&gt;.  There was a downside to this speedup.  With the ST_Intersection approach, I had no invalid polygons.  In the case of ST_ClipByBox2D, I had one invalid polygon.  So as noted in the docs, use with caution.  We&#039;d be very interested in hearing other people&#039;s experiences with it.&lt;/p&gt;

&lt;p&gt;One other benefit that ST_ClipByBox2D has over ST_Intersection which I didn&#039;t test out is that although ST_Intersection doesn&#039;t work with invalid geometries, ST_ClipByBox2D can.&lt;/p&gt;

&lt;p&gt;For these exercises, I&#039;m going to also abuse the PostGIS raster function &lt;a href=&quot;http://postgis.net/docs/manual-dev/RT_ST_Retile.html&quot; target=&quot;_blank&quot;&gt;ST_Tile&lt;/a&gt; for geometry use, cause 
for some strange reason, we have no ST_Tile function for PostGIS geometry. For those who missed the improper use of ST_Tile for raster, refer to &lt;a href=&quot;https://www.bostongis.com/blog/index.php?/archives/207-Waiting-for-PostGIS-2.1-ST_Tile.html&quot; target=&quot;_blank&quot;&gt;Waiting for PostGIS 2.1 - ST_Tile&lt;/a&gt;.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://www.bostongis.com/blog/index.php?/archives/231-Waiting-for-PostGIS-2.2-ST_ClipByBox2D-Map-dicing-Redux-in-concert-with-ST_Tile.html#extended&quot;&gt;Continue reading &quot;Waiting for PostGIS 2.2 - ST_ClipByBox2D - Map dicing Redux in concert with ST_Tile&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 30 Sep 2014 10:55:00 -0400</pubDate>
    <guid isPermaLink="false">https://www.bostongis.com/blog/index.php?/archives/231-guid.html</guid>
    
</item>

</channel>
</rss>
