Skip to content

Commit

Permalink
Minor fix for pbf cut type (osmlab#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
adahn6 authored Oct 22, 2021
1 parent f3c698f commit 2c1ead6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.openstreetmap.atlas.geography.atlas.packed.PackedAtlas;
import org.openstreetmap.atlas.geography.atlas.pbf.AtlasLoadingOption;
import org.openstreetmap.atlas.geography.atlas.raw.creation.RawAtlasGenerator;
import org.openstreetmap.atlas.geography.atlas.sub.AtlasCutType;
import org.openstreetmap.atlas.geography.boundary.CountryBoundaryMap;
import org.openstreetmap.atlas.geography.clipping.Clip.ClipType;
import org.openstreetmap.atlas.geography.converters.jts.JtsMultiPolygonConverter;
Expand Down Expand Up @@ -135,6 +136,12 @@ public Atlas generateRawAtlas(final String countryName, final Shard shard)
else
{
shardPbfSlice = rawAtlasGenerator.build();
final Optional<Atlas> sub = shardPbfSlice.subAtlas(shard.bounds(),
AtlasCutType.SILK_CUT);
if (sub.isPresent())
{
shardPbfSlice = rawAtlasGenerator.build();
}
}
}
catch (final Exception e)
Expand Down

0 comments on commit 2c1ead6

Please sign in to comment.