Skip to content

Commit e6290bf

Browse files
authored
Add GeoTIFF support in decode_tiff (#880)
This PR essentially replaces PR 578. GeoTIFF is a superset of TIFF that contains geographic information. I still haven't figured out exactly the best way to represent the geographic information so PR 578 has not be moving forward since then. But, since GeoTIFF is a superset of TIFF, at the minimium we could replace TIFF internal implementation with GeoTIFF internal information, so that it is possible to call decode_tiff to process GeoTIFF to get the image. This PR internally adds GeoTIFF support while no external API has been changed. This PR closes 578. Signed-off-by: Yong Tang <[email protected]>
1 parent 6f4c694 commit e6290bf

12 files changed

+643
-46
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dwaLookups.* linguist-generated=true
33
b44ExpLogTable.* linguist-generated=true
44
toFloat.* linguist-generated=true
55
eLut.* linguist-generated=true
6+
*.inc linguist-generated=true

WORKSPACE

+30
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,36 @@ http_archive(
110110
],
111111
)
112112

113+
http_archive(
114+
name = "libgeotiff",
115+
build_file = "//third_party:libgeotiff.BUILD",
116+
sha256 = "12c26422e89da7032efcd60d48f3d82c7c0b4c9f3f61aa30c5e3df512946c6cf",
117+
strip_prefix = "libgeotiff-1.5.1",
118+
urls = [
119+
"https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.5.1.zip",
120+
],
121+
)
122+
123+
http_archive(
124+
name = "proj",
125+
build_file = "//third_party:proj.BUILD",
126+
sha256 = "0b157e1aa81df4d0dbd89368a0005916bb717f0c09143b4dbc1b20d59204e9f2",
127+
strip_prefix = "proj-6.2.0",
128+
urls = [
129+
"https://download.osgeo.org/proj/proj-6.2.0.zip",
130+
],
131+
)
132+
133+
http_archive(
134+
name = "sqlite",
135+
build_file = "//third_party:sqlite.BUILD",
136+
sha256 = "adf051d4c10781ea5cfabbbc4a2577b6ceca68590d23b58b8260a8e24cc5f081",
137+
strip_prefix = "sqlite-amalgamation-3300100",
138+
urls = [
139+
"https://www.sqlite.org/2019/sqlite-amalgamation-3300100.zip",
140+
],
141+
)
142+
113143
http_archive(
114144
name = "com_github_azure_azure_storage_cpplite",
115145
build_file = "//third_party:azure.BUILD",

tensorflow_io/core/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ cc_library(
177177
"@easyexif",
178178
"@fmjpeg2koj",
179179
"@freetype",
180+
"@libgeotiff",
180181
"@libtiff",
181182
"@libwebp",
182183
"@openexr",

0 commit comments

Comments
 (0)