Copyright 2025 Google LLC.
SPDX-License-Identifier: Apache-2.0
This document provides a high-level overview of the geemap library's
| /** | |
| * Copyright 2026 The Google Earth Engine Community Authors | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * https://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| import builtins | |
| import pathlib | |
| import shutil | |
| import sys | |
| import tempfile | |
| import textwrap | |
| import unittest | |
| from unittest import mock | |
| from geemap.scripts import bump_geemap_version |
| # SPDX-License-Identifier: MIT | |
| from __future__ import annotations | |
| import html | |
| from functools import _lru_cache_wrapper, lru_cache | |
| from typing import Any, Literal, Union | |
| from warnings import warn | |
| import ee |
| TEST_F(GTiffTest, CreateCopyPreservesMaskForBandInterleavedCog) { | |
| constexpr char kFilename[] = "/vsimem/create_copy_with_mask.tif"; | |
| constexpr int kWidth = 2; | |
| constexpr int kHeight = 2; | |
| constexpr size_t kSize = kWidth * kHeight; | |
| constexpr int kNumBands = 1; | |
| GDALRegister_GTiff(); | |
| GDALDriver* driver = GetGDALDriverManager()->GetDriverByName(GTiff); |
| // Copyright 2017 Google Inc.All Rights Reserved. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // https://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| Same license as https://gitlab.com/libtiff/libtiff/-/blob/fa1d6d787fc67a1eeb3abccb790b5bee969d424b/LICENSE.md | |
| Copied tif_jxl.c and tif_jxl.h from gdal/frmts/gtiff and then applied these changes | |
| --- a/libtiff/tif_codec.c | |
| +++ b/libtiff/tif_codec.c | |
| @@ -90,6 +90,8 @@ | |
| {"ThunderScan", COMPRESSION_THUNDERSCAN, TIFFInitThunderScan}, | |
| {"NeXT", COMPRESSION_NEXT, TIFFInitNeXT}, | |
| {"JPEG", COMPRESSION_JPEG, TIFFInitJPEG}, |
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
| * Copyright by The HDF Group. * | |
| * Copyright by the Board of Trustees of the University of Illinois. * | |
| * All rights reserved. * | |
| * * | |
| * This file is part of HDF. The full HDF copyright notice, including * | |
| * terms governing use, modification, and redistribution, is contained in * | |
| * the COPYING file, which can be found at the root of the source code * | |
| * distribution tree, or in https://support.hdfgroup.org/ftp/HDF/releases/. * | |
| * If you do not have access to either file, you may request a copy from * |
| #!/usr/bin/env python3 | |
| # Copyright 2023 Google Inc. All Rights Reserved. | |
| """Tests for jpeginfo command line app.""" | |
| import json | |
| import subprocess | |
| import unittest |
| #!/usr/bin/env python3 | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # Copyright 2023 Google Inc. All Rights Reserved. | |
| # I recommend that dataclass decorator option. | |
| import collections | |
| import dataclasses |