Skip to content

Commit

Permalink
Add support of TIFF and PNG compression for elevation data in GeoPack…
Browse files Browse the repository at this point in the history
…age.
  • Loading branch information
ComBatVision committed Dec 22, 2023
1 parent 16edebf commit 626f2e1
Show file tree
Hide file tree
Showing 12 changed files with 200 additions and 690 deletions.
2 changes: 2 additions & 0 deletions worldwind/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ kotlin {
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.github.pdvrieze.xmlutil:serialization:0.85.0")
implementation("com.eygraber:uri-kmp:0.0.11")
implementation("ar.com.hjg:pngj:2.1.0")
implementation("mil.nga:tiff:3.0.0")
api("dev.icerock.moko:resources:$mokoVersion")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ actual open class GeoPackage actual constructor(pathName: String, isReadOnly: Bo
while (moveToNext()) addGriddedCoverage(
GpkgGriddedCoverage(
this@GeoPackage, getInt(0), getString(1), getString(2),
getDouble(3), getDouble(4), getDouble(5), getDouble(6),
getFloat(3), getFloat(4), getFloat(5), getFloat(6),
getString(7), getString(8), getString(9), getString(10)
)
)
Expand All @@ -435,8 +435,8 @@ actual open class GeoPackage actual constructor(pathName: String, isReadOnly: Bo
""".trimIndent(), arrayOf(tableName, tileId.toString())).use { it.run {
if (moveToNext()) GpkgGriddedTile(
this@GeoPackage, getInt(0), getString(1), getInt(2),
getDouble(3), getDouble(4), getDouble(5), getDouble(6),
getDouble(7), getDouble(8)
getFloat(3), getFloat(4), getFloat(5), getFloat(6),
getFloat(7), getFloat(8)
) else null
} }
}
Expand Down

This file was deleted.

Loading

0 comments on commit 626f2e1

Please sign in to comment.