Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Aug 6, 2020
2 parents 4fbc5f1 + 96395ae commit 5d8fd98
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion cmake/gtest.cmake
Expand Up @@ -9,7 +9,9 @@ add_subdirectory(vendor/gtest)

find_package(absl QUIET)
if (absl_FOUND)
cmake_policy(SET CMP0079 NEW)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.13.0")
cmake_policy(SET CMP0079 NEW)
endif()
target_compile_definitions(gtest PUBLIC GTEST_HAS_ABSL=1)
target_compile_definitions(gtest_main PUBLIC GTEST_HAS_ABSL=1)
target_link_libraries(gtest PRIVATE absl::algorithm
Expand Down
6 changes: 3 additions & 3 deletions plugins/tiledb/io/TileDBWriter.cpp
Expand Up @@ -83,8 +83,8 @@ std::string attributeDefaults(R"(
{"compression": "gzip", "compression_level": 9}
],
"Intensity":{"compression": "bzip2", "compression_level": 5},
"ReturnNumber": {"compression": "zstd", "compression_level": 75},
"NumberOfReturns": {"compression": "zstd", "compression_level": 75},
"ReturnNumber": {"compression": "zstd", "compression_level": 7},
"NumberOfReturns": {"compression": "zstd", "compression_level": 7},
"ScanDirectionFlag": {"compression": "bzip2", "compression_level": 5},
"EdgeOfFlightLine": {"compression": "bzip2", "compression_level": 5},
"Classification": {"compression": "gzip", "compression_level": 9},
Expand All @@ -96,7 +96,7 @@ std::string attributeDefaults(R"(
"Blue": {"compression": "rle"},
"GpsTime": [
{"compression": "bit-shuffle"},
{"compression": "zstd", "compression_level": 75}
{"compression": "zstd", "compression_level": 7}
]
})");

Expand Down
10 changes: 5 additions & 5 deletions plugins/tiledb/test/TileDBWriterTest.cpp
Expand Up @@ -222,7 +222,7 @@ namespace pdal
Options options;
options.add("array_name", pth);
options.add("compression", "zstd");
options.add("compression_level", 50);
options.add("compression_level", 7);

if (vfs.is_dir(pth))
{
Expand All @@ -246,7 +246,7 @@ namespace pdal
EXPECT_EQ(f.filter_type(), TILEDB_FILTER_ZSTD);
int32_t compressionLevel;
f.get_option(TILEDB_COMPRESSION_LEVEL, &compressionLevel);
EXPECT_EQ(compressionLevel, 50);
EXPECT_EQ(compressionLevel, 7);
}

TEST_F(TileDBWriterTest, write_options)
Expand All @@ -261,7 +261,7 @@ namespace pdal
// add an array filter
jsonOptions["coords"] = {
{{"compression", "bit-shuffle"}},
{{"compression", "zstd"}, {"compression_level", 50}}
{{"compression", "zstd"}, {"compression_level", 7}}
};
jsonOptions["OffsetTime"]["compression"] = "rle";

Expand Down Expand Up @@ -292,7 +292,7 @@ namespace pdal
EXPECT_EQ(f2.filter_type(), TILEDB_FILTER_ZSTD);
int32_t compressionLevel;
f2.get_option(TILEDB_COMPRESSION_LEVEL, &compressionLevel);
EXPECT_EQ(compressionLevel, 50);
EXPECT_EQ(compressionLevel, 7);

tiledb::Attribute att = array.schema().attributes().begin()->second;
tiledb::FilterList flAtts = att.filter_list();
Expand All @@ -318,7 +318,7 @@ namespace pdal

options.add("array_name", pth);
options.add("compression", "zstd");
options.add("compression_level", 50);
options.add("compression_level", 7);
options.add("filters", jsonOptions);

if (vfs.is_dir(pth))
Expand Down
2 changes: 1 addition & 1 deletion scripts/azp/linux-conda.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
conda config --set always_yes True --set show_channel_urls True
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install --yes --quiet --name pdal -c conda-forge gdal=3.0.2=py37hbb6b9fb_8 python=3.7 conda-build ninja conda-forge-ci-setup=2 -y
conda install --yes --quiet --name pdal -c conda-forge gdal=3.0.2=py37hbb6b9fb_8 python=3.7 abseil-cpp conda-build ninja conda-forge-ci-setup=2 -y
conda install --yes --quiet --name pdal -c conda-forge pdal --only-deps -y
displayName: Install PDAL dependencies
- script: |
Expand Down

0 comments on commit 5d8fd98

Please sign in to comment.