From 1f75c74b3b12ffbc312085d5e2324a4fd30a0d20 Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Wed, 23 May 2012 17:54:39 +0000 Subject: [PATCH] Add support for GeoTIFF subdatasets. Ticket is #1839 git-svn-id: http://svn.osgeo.org/postgis/trunk@9809 b70326c6-7e19-0410-871a-916f4a2858ee --- NEWS | 2 ++ raster/loader/raster2pgsql.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/NEWS b/NEWS index a3a525630..ecc8cbc00 100644 --- 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 diff --git a/raster/loader/raster2pgsql.c b/raster/loader/raster2pgsql.c index 942301633..ac7482691 100644 --- a/raster/loader/raster2pgsql.c +++ b/raster/loader/raster2pgsql.c @@ -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; } -- 2.50.1