Skip to content

Commit

Permalink
Add a licenses directory and update the LICENSE file
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Nov 24, 2024
1 parent b8ff5ef commit c98c565
Show file tree
Hide file tree
Showing 14 changed files with 1,044 additions and 16 deletions.
22 changes: 11 additions & 11 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@

Code and data produced outside the ASF that is included in the
distribution of this product is subject to the following
additional license terms:

- FlatGeobuf, BSD-2-Clause license, see https://github.com/flatgeobuf/flatgeobuf.
- GeoPackage Java, MIT License, see https://github.com/ngageoint/geopackage-java.
- OSMPBF, MIT License, see https://github.com/openstreetmap/OSM-binary/pull/35.
- OSM Test Data, Public domain, see https://github.com/osmcode/osm-testdata.
- Mapbox Vector Tile, Creative Commons Public License, see https://github.com/mapbox/vector-tile-spec.
- Palantir Streams, Apache License 2.0, see https://github.com/palantir/streams.
- Planetiler, Apache License 2.0, see https://github.com/onthegomap/planetiler.
- PMTiles, BSD-3-Clause license, see https://github.com/protomaps/PMTiles.
- pyosmium, BSD 2-Clause "Simplified" License, see https://github.com/osmcode/pyosmium.
additional license terms.

- FlatGeobuf, BSD-2-Clause license, see licenses/flatgeobuf.
- GeoPackage Java, MIT License, see licenses/geopackage-java.
- OSMPBF, MIT License, see licenses/osm-binary.
- OSM Test Data, Public domain, see licenses/osm-testdata.
- Mapbox Vector Tile, Creative Commons Public License, see licenses/vector-tile-spec.
- Palantir Streams, Apache License 2.0, see licenses/palantir-streams.
- Planetiler, Apache License 2.0, see licenses/planetiler.
- PMTiles, BSD-3-Clause license, see licenses/pmtiles.
- pyosmium, BSD 2-Clause "Simplified" License, see licenses/pyosmium.
1 change: 1 addition & 0 deletions baremaps-cli/src/assembly/bin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ limitations under the License.
<includes>
<include>DISCLAIMER</include>
<include>NOTICE</include>
<include>licenses/**</include>
</includes>
<lineEnding>unix</lineEnding>
</fileSet>
Expand Down
1 change: 1 addition & 0 deletions baremaps-cli/src/assembly/src.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ limitations under the License.
<include>.asf.yaml</include>
<include>CONTRIBUTING.md</include>
<include>LICENSE</include>
<include>licenses/**</include>
<include>examples/**</include>
<include>.gitignore</include>
<include>RELEASE.md</include>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;

import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.nio.file.Path;
import javax.imageio.ImageIO;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.locationtech.jts.geom.Polygon;
Expand All @@ -46,13 +49,17 @@ void testGrid1() {

@Test
@DisplayName("Test Mount Fuji")
@Disabled("This test requires an internet connection")
void testMountFuji() throws IOException {
var fujiImage = ImageIO.read(
Path.of("")
.toAbsolutePath()
.resolveSibling("baremaps-dem/src/test/resources/fuji.png")
.toAbsolutePath().toFile());

// Download the image to a temporary file
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);

var fujiImage = ImageIO.read(file);
var fujiGrid = ElevationUtils.imageToGrid(fujiImage, ElevationUtils::rgbToElevation);
var fujiContours =
new ContourTracer(fujiGrid, fujiImage.getWidth(), fujiImage.getHeight(), false, true)
Expand Down
9 changes: 9 additions & 0 deletions licenses/flatgeobuf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Copyright (c) 2018, Björn Harrtell

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.

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 OWNER 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.
19 changes: 19 additions & 0 deletions licenses/geopackage-java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2015 Bit Systems

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 7 additions & 0 deletions licenses/osm-binary
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2010 Scott A. Crosby. <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit c98c565

Please sign in to comment.