From 5821eb63d4f97d24c9bc31b38f35c719e89e2ed2 Mon Sep 17 00:00:00 2001 From: Lina Ceballos Date: Mon, 14 Oct 2024 15:51:45 +0200 Subject: [PATCH 1/2] creating LICENSES directory --- LICENSES/BSD-3-Clause.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 LICENSES/BSD-3-Clause.txt diff --git a/LICENSES/BSD-3-Clause.txt b/LICENSES/BSD-3-Clause.txt new file mode 100644 index 00000000..ea890afb --- /dev/null +++ b/LICENSES/BSD-3-Clause.txt @@ -0,0 +1,11 @@ +Copyright (c) . + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. From 9198c0f199b3f321756319abc2a28698f4e503e0 Mon Sep 17 00:00:00 2001 From: Lina Ceballos Date: Mon, 14 Oct 2024 15:52:01 +0200 Subject: [PATCH 2/2] adding headers with copyright and license info to various files --- app/index.html | 6 ++++++ app/src/Inspector.tsx | 4 ++++ app/src/Loader.tsx | 4 ++++ app/src/MapView.tsx | 4 ++++ app/src/MapViewComponent.tsx | 4 ++++ app/src/MaplibreMap.tsx | 4 ++++ app/src/Metadata.tsx | 4 ++++ app/src/Start.tsx | 4 ++++ app/src/TileInspect.tsx | 4 ++++ app/src/TileInspectComponent.tsx | 4 ++++ app/src/stitches.config.ts | 4 ++++ app/src/vite-env.d.ts | 4 ++++ app/vite.config.ts | 4 ++++ python/examples/create_raster_example.py | 4 ++++ python/pmtiles/__init__.py | 4 ++++ python/pmtiles/convert.py | 4 ++++ python/pmtiles/reader.py | 4 ++++ python/pmtiles/tile.py | 4 ++++ python/pmtiles/v2.py | 4 ++++ python/pmtiles/writer.py | 4 ++++ python/setup.py | 4 ++++ python/test/__init__.py | 3 +++ python/test/test_convert.py | 4 ++++ python/test/test_reader_writer.py | 4 ++++ python/test/test_tile.py | 4 ++++ 25 files changed, 101 insertions(+) diff --git a/app/index.html b/app/index.html index 2cb05b7f..579d2141 100644 --- a/app/index.html +++ b/app/index.html @@ -1,3 +1,9 @@ + + diff --git a/app/src/Inspector.tsx b/app/src/Inspector.tsx index cfdeb393..a2cac79e 100644 --- a/app/src/Inspector.tsx +++ b/app/src/Inspector.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import { VectorTile } from "@mapbox/vector-tile"; import { path } from "d3-path"; import { schemeSet3 } from "d3-scale-chromatic"; diff --git a/app/src/Loader.tsx b/app/src/Loader.tsx index 85591dcc..888272c6 100644 --- a/app/src/Loader.tsx +++ b/app/src/Loader.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import { useState } from "react"; import { PMTiles } from "../../js/index"; import { styled } from "./stitches.config"; diff --git a/app/src/MapView.tsx b/app/src/MapView.tsx index 1695416f..57bccad5 100644 --- a/app/src/MapView.tsx +++ b/app/src/MapView.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import React from "react"; import reactDom from "react-dom/client"; import MapViewComponent from "./MapViewComponent"; diff --git a/app/src/MapViewComponent.tsx b/app/src/MapViewComponent.tsx index 15f16c98..f82810e7 100644 --- a/app/src/MapViewComponent.tsx +++ b/app/src/MapViewComponent.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import * as DialogPrimitive from "@radix-ui/react-dialog"; import { GitHubLogoIcon } from "@radix-ui/react-icons"; import React, { useState, useEffect } from "react"; diff --git a/app/src/MaplibreMap.tsx b/app/src/MaplibreMap.tsx index 1da4996c..97663fa1 100644 --- a/app/src/MaplibreMap.tsx +++ b/app/src/MaplibreMap.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import { LayerSpecification, StyleSpecification, diff --git a/app/src/Metadata.tsx b/app/src/Metadata.tsx index 6eec3e68..6a8c4ba3 100644 --- a/app/src/Metadata.tsx +++ b/app/src/Metadata.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import { JsonViewer } from "@textea/json-viewer"; import { useEffect, useState } from "react"; import { Header, PMTiles } from "../../js/index"; diff --git a/app/src/Start.tsx b/app/src/Start.tsx index 7b69a6cc..6da4fbea 100644 --- a/app/src/Start.tsx +++ b/app/src/Start.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import { Dispatch, SetStateAction, useCallback, useState } from "react"; import { useDropzone } from "react-dropzone"; import { FileSource, PMTiles } from "../../js/index"; diff --git a/app/src/TileInspect.tsx b/app/src/TileInspect.tsx index a7def394..0c54d64d 100644 --- a/app/src/TileInspect.tsx +++ b/app/src/TileInspect.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import React from "react"; import reactDom from "react-dom/client"; import TileInspectComponent from "./TileInspectComponent"; diff --git a/app/src/TileInspectComponent.tsx b/app/src/TileInspectComponent.tsx index 20e23172..91aa34e8 100644 --- a/app/src/TileInspectComponent.tsx +++ b/app/src/TileInspectComponent.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import React, { useState, useEffect } from "react"; import { PMTiles } from "../../js/index"; import { globalStyles, styled } from "./stitches.config"; diff --git a/app/src/stitches.config.ts b/app/src/stitches.config.ts index 1a14d7a9..f9b192d7 100644 --- a/app/src/stitches.config.ts +++ b/app/src/stitches.config.ts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import { createStitches, globalCss } from "@stitches/react"; export const { styled } = createStitches({ diff --git a/app/src/vite-env.d.ts b/app/src/vite-env.d.ts index 11f02fe2..c3b257c6 100644 --- a/app/src/vite-env.d.ts +++ b/app/src/vite-env.d.ts @@ -1 +1,5 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + /// diff --git a/app/vite.config.ts b/app/vite.config.ts index 9d8b149e..024df916 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Protomaps LLC +// +// SPDX-License-Identifier: BSD-3-Clause + import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import { resolve } from "path"; diff --git a/python/examples/create_raster_example.py b/python/examples/create_raster_example.py index 8725549e..401d4baa 100644 --- a/python/examples/create_raster_example.py +++ b/python/examples/create_raster_example.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + # Generates a raster tile archive for conformance testing. from urllib.request import Request, urlopen diff --git a/python/pmtiles/__init__.py b/python/pmtiles/__init__.py index 2092434a..306b2c0f 100644 --- a/python/pmtiles/__init__.py +++ b/python/pmtiles/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + from collections import namedtuple Entry = namedtuple("Entry", ["z", "x", "y", "offset", "length", "is_dir"]) diff --git a/python/pmtiles/convert.py b/python/pmtiles/convert.py index e2544df6..f39da737 100644 --- a/python/pmtiles/convert.py +++ b/python/pmtiles/convert.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + # pmtiles to files import gzip import json diff --git a/python/pmtiles/reader.py b/python/pmtiles/reader.py index d0dee2d9..a00139da 100644 --- a/python/pmtiles/reader.py +++ b/python/pmtiles/reader.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + import json import mmap from .tile import ( diff --git a/python/pmtiles/tile.py b/python/pmtiles/tile.py index 01432569..ce9a978e 100644 --- a/python/pmtiles/tile.py +++ b/python/pmtiles/tile.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + from enum import Enum import io import gzip diff --git a/python/pmtiles/v2.py b/python/pmtiles/v2.py index c2f9095a..77379d08 100644 --- a/python/pmtiles/v2.py +++ b/python/pmtiles/v2.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + import json from collections import namedtuple diff --git a/python/pmtiles/writer.py b/python/pmtiles/writer.py index daa60e4b..8a720d8e 100644 --- a/python/pmtiles/writer.py +++ b/python/pmtiles/writer.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + import json import tempfile import gzip diff --git a/python/setup.py b/python/setup.py index d818a85e..8902eef6 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + import setuptools with open("README.md", "r") as fh: diff --git a/python/test/__init__.py b/python/test/__init__.py index e69de29b..63cbcffb 100644 --- a/python/test/__init__.py +++ b/python/test/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause diff --git a/python/test/test_convert.py b/python/test/test_convert.py index 7013176c..3b31b490 100644 --- a/python/test/test_convert.py +++ b/python/test/test_convert.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + import unittest import sqlite3 from io import BytesIO diff --git a/python/test/test_reader_writer.py b/python/test/test_reader_writer.py index 7837e58f..9bd2a6ef 100644 --- a/python/test/test_reader_writer.py +++ b/python/test/test_reader_writer.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + import unittest from io import BytesIO from pmtiles.writer import Writer diff --git a/python/test/test_tile.py b/python/test/test_tile.py index 25859e0e..f3b656a7 100644 --- a/python/test/test_tile.py +++ b/python/test/test_tile.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Protomaps LLC +# +# SPDX-License-Identifier: BSD-3-Clause + import unittest from pmtiles.tile import zxy_to_tileid, tileid_to_zxy, Entry from pmtiles.tile import read_varint, write_varint