]> granicus.if.org Git - postgis/commitdiff
Add support for GeoTIFF subdatasets. Ticket is #1839
authorBborie Park <bkpark at ucdavis.edu>
Wed, 23 May 2012 17:54:39 +0000 (17:54 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Wed, 23 May 2012 17:54:39 +0000 (17:54 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9809 b70326c6-7e19-0410-871a-916f4a2858ee

NEWS
raster/loader/raster2pgsql.c

diff --git a/NEWS b/NEWS
index a3a525630c0331ff2023f4170056a20de741be88..ecc8cbc00a94da33d54c19df18b5b3e371753bdf 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@ PostGIS 2.1.0
 
 * Fixes *
 
+  - #1839, handling of subdatasets in GeoTIFF in raster2pgsql.
+
 PostGIS 2.0.0
 2012/04/03
    
index 9423016335cf1ad31008e5aeeaba8c10960a6f33..ac7482691802892f4f0969fed66627b069b27c4b 100644 (file)
@@ -351,6 +351,11 @@ isSubDataset(const char *fn) {
        if (ptr - fn == 0)
                return 4;
 
+       /* GeoTIFF */
+       ptr = strstr(fn, "GTIFF");
+       if (ptr - fn == 0)
+               return 5;
+
        return 1;
 }