Skip to content

Commit

Permalink
adding headers with copyright and license info to various files
Browse files Browse the repository at this point in the history
  • Loading branch information
lnceballosz committed Oct 14, 2024
1 parent 5821eb6 commit 9198c0f
Show file tree
Hide file tree
Showing 25 changed files with 101 additions and 0 deletions.
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

0 comments on commit 9198c0f

Please sign in to comment.