*/
private static boolean isProbablySeaTile(OSMData osmData) {
boolean anySeaTag = false;
Ruleset ruleset = new HardcodedRuleset();
@SuppressWarnings("unchecked")
List<Collection<? extends OSMElement>> collections = asList(
osmData.getWays(), osmData.getNodes());
for (Collection<? extends OSMElement> collection : collections) {
for (OSMElement element : collection) {
for (Tag tag : element.tags) {
if (ruleset.isLandTag(tag)) return false;
anySeaTag |= ruleset.isSeaTag(tag);
}
}
}