Package org.osm2world.core.osm.ruleset

Examples of org.osm2world.core.osm.ruleset.HardcodedRuleset


   */
  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);
         
        }
      }
    }
   
View Full Code Here

TOP

Related Classes of org.osm2world.core.osm.ruleset.HardcodedRuleset

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.