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 d7c8ee4
Show file tree
Hide file tree
Showing 15 changed files with 1,394 additions and 367 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
Loading

0 comments on commit d7c8ee4

Please sign in to comment.