use of net.osmand.data.MultipolygonBuilder in project OsmAnd-tools by osmandapp.
the class IndexRouteCreator method addLowEmissonZoneWay.
private void addLowEmissonZoneWay(Way e) {
List<Way> outer = new ArrayList<>();
List<Way> inner = new ArrayList<>();
outer.add(e);
MultipolygonBuilder multipolygonBuilder = new MultipolygonBuilder(outer, inner);
multipolygonBuilder.setId(e.getId());
Multipolygon lowEmissionZone = multipolygonBuilder.build();
if (lowEmissionZone != null) {
QuadRect bbox = lowEmissionZone.getLatLonBbox();
QuadRect flippedBbox = flipBbox(bbox);
lowEmissionZones.insert(lowEmissionZone, flippedBbox);
}
}
Aggregations