Skip to content

Commit

Permalink
Remove pgpointcloud GHT compression (#2147)
Browse files Browse the repository at this point in the history
Remove pgpointcloud GHT compression, as the support for GHT compression
has been removed in pgpointcloud v1.2.0.
  • Loading branch information
elemoine authored and abellgithub committed Aug 22, 2018
1 parent f65c92b commit 541d807
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion doc/stages/writers.pgpointcloud.rst
Expand Up @@ -70,7 +70,6 @@ compression

* **none** applies no compression
* **dimensional** applies dynamic compression to each dimension separately
* **ght** applies a "geohash tree" compression by sorting the points into a prefix tree
* **lazperf** applies a "laz" compression (using the `laz-perf`_ library in PostgreSQL Pointcloud)

overwrite
Expand Down
2 changes: 1 addition & 1 deletion pdal/compression/Compression.hpp
Expand Up @@ -42,7 +42,7 @@ namespace pdal
enum class CompressionType
{
None = 0,
Ght = 1,
// Ght = 1, -- Removed compression type
Dimensional = 2,
Lazperf = 3,
Unknown = 256
Expand Down
2 changes: 0 additions & 2 deletions plugins/pgpointcloud/io/PgCommon.hpp
Expand Up @@ -50,8 +50,6 @@ inline pdal::CompressionType getCompressionType(
compression_type = Utils::tolower(compression_type);
if (compression_type == "dimensional")
return CompressionType::Dimensional;
else if (compression_type == "ght")
return CompressionType::Ght;
else if (compression_type == "lazperf")
return CompressionType::Lazperf;
return CompressionType::None;
Expand Down
2 changes: 0 additions & 2 deletions plugins/pgpointcloud/io/PgWriter.cpp
Expand Up @@ -217,8 +217,6 @@ uint32_t PgWriter::SetupSchema(uint32_t srid)
/* If the writer specifies a compression, we should set that */
if (m_patch_compression_type == CompressionType::Dimensional)
compression = "dimensional";
else if (m_patch_compression_type == CompressionType::Ght)
compression = "ght";
else if (m_patch_compression_type == CompressionType::Lazperf)
compression = "laz";

Expand Down

0 comments on commit 541d807

Please sign in to comment.