Skip to content

Commit

Permalink
Improve third party licensing
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Nov 24, 2024
1 parent eb4e12f commit b8ff5ef
Show file tree
Hide file tree
Showing 9 changed files with 424 additions and 404 deletions.
8 changes: 8 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ https://github.com/palantir/streams/blob/develop/LICENSE
The derived files are:
- baremaps-openstreetmap/src/main/java/org/apache/baremaps/openstreetmap/stream/BufferedSpliterator.java

This product includes code derived from PgBulkInsert.
MIT License.
Please visit the following URL for the full text of the PgBulkInsert license:
https://github.com/PgBulkInsert/PgBulkInsert/blob/master/LICENSE
The derived files are:
- baremaps-postgres/src/main/java/org/apache/baremaps/postgres/copy/CopyWriter.java

This product includes code derived from Planetiler.
Apache License 2.0.
Please visit the following URL for the full text of the Planetiler license:
Expand All @@ -62,6 +69,7 @@ The derived files are:
- baremaps-data/src/main/java/org/apache/baremaps/data/collection/MemoryAlignedDataMap.java
- baremaps-data/src/main/java/org/apache/baremaps/data/collection/MonotonicDataMap.java
- baremaps-data/src/main/java/org/apache/baremaps/data/collection/MonotonicFixedSizeDataMap.java
- baremaps-data/src/main/java/org/apache/baremaps/data/collection/MonotonicPairedSizeDataMap.java

This product includes test data copied from PMTiles.
BSD-3-Clause license.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you 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
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you 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
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you 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
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
* A {@link DataMap} that can hold a large number of variable-size data elements. The elements must
* be sorted by their key and inserted in a monotonic way. The elements cannot be removed or updated
* once inserted.
*
* <p>
* This code has been adapted from Planetiler (Apache license).
*
* <p>
* Copyright (c) Planetiler.
*/
public class MonotonicPairedDataMap<E> implements DataMap<Long, E> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
import java.net.URI;
import java.nio.file.Path;
import javax.imageio.ImageIO;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

class MartiniTest {
Expand All @@ -35,7 +33,8 @@ class MartiniTest {
@Disabled("This test requires an internet connection")
void generateAMesh() throws IOException {
// Download the image to a temporary file
URI uri = URI.create("https://raw.githubusercontent.com/mapbox/martini/refs/heads/main/test/fixtures/fuji.png");
URI uri = URI.create(
"https://raw.githubusercontent.com/mapbox/martini/refs/heads/main/test/fixtures/fuji.png");
File file = File.createTempFile("fuji", ".png", Path.of("").toAbsolutePath().toFile());
file.deleteOnExit();
ImageIO.write(ImageIO.read(uri.toURL()), "png", file);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you 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
* (c) Copyright 2017 Palantir Technologies Inc. All rights reserved.
*
* http://www.apache.org/licenses/LICENSE-2.0
* 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
*
* http://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,
Expand Down
Loading

0 comments on commit b8ff5ef

Please sign in to comment.