Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NGI - Updating licensing aspects according to REUSE #480

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions LICENSES/BSD-3-Clause.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright (c) <year> <owner>.

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.
6 changes: 6 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2021 Protomaps LLC

SPDX-License-Identifier: BSD-3-Clause
-->

<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
4 changes: 4 additions & 0 deletions app/src/Inspector.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 4 additions & 0 deletions app/src/Loader.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 4 additions & 0 deletions app/src/MapView.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 4 additions & 0 deletions app/src/MapViewComponent.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 4 additions & 0 deletions app/src/MaplibreMap.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021 Protomaps LLC
//
// SPDX-License-Identifier: BSD-3-Clause

import {
LayerSpecification,
StyleSpecification,
Expand Down
4 changes: 4 additions & 0 deletions app/src/Metadata.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 4 additions & 0 deletions app/src/Start.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 4 additions & 0 deletions app/src/TileInspect.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 4 additions & 0 deletions app/src/TileInspectComponent.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 4 additions & 0 deletions app/src/stitches.config.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
4 changes: 4 additions & 0 deletions app/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// SPDX-FileCopyrightText: 2021 Protomaps LLC
//
// SPDX-License-Identifier: BSD-3-Clause

/// <reference types="vite/client" />
4 changes: 4 additions & 0 deletions app/vite.config.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 4 additions & 0 deletions python/examples/create_raster_example.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions python/pmtiles/__init__.py
Original file line number Diff line number Diff line change
@@ -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"])
4 changes: 4 additions & 0 deletions python/pmtiles/convert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Protomaps LLC
#
# SPDX-License-Identifier: BSD-3-Clause

# pmtiles to files
import gzip
import json
Expand Down
4 changes: 4 additions & 0 deletions python/pmtiles/reader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Protomaps LLC
#
# SPDX-License-Identifier: BSD-3-Clause

import json
import mmap
from .tile import (
Expand Down
4 changes: 4 additions & 0 deletions python/pmtiles/tile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Protomaps LLC
#
# SPDX-License-Identifier: BSD-3-Clause

from enum import Enum
import io
import gzip
Expand Down
4 changes: 4 additions & 0 deletions python/pmtiles/v2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Protomaps LLC
#
# SPDX-License-Identifier: BSD-3-Clause

import json
from collections import namedtuple

Expand Down
4 changes: 4 additions & 0 deletions python/pmtiles/writer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Protomaps LLC
#
# SPDX-License-Identifier: BSD-3-Clause

import json
import tempfile
import gzip
Expand Down
4 changes: 4 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Protomaps LLC
#
# SPDX-License-Identifier: BSD-3-Clause

import setuptools

with open("README.md", "r") as fh:
Expand Down
3 changes: 3 additions & 0 deletions python/test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2021 Protomaps LLC
#
# SPDX-License-Identifier: BSD-3-Clause
4 changes: 4 additions & 0 deletions python/test/test_convert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Protomaps LLC
#
# SPDX-License-Identifier: BSD-3-Clause

import unittest
import sqlite3
from io import BytesIO
Expand Down
4 changes: 4 additions & 0 deletions python/test/test_reader_writer.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions python/test/test_tile.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading