org.osm2world.core.world.modules.common
Class WorldModuleParseUtil

Object
  extended by WorldModuleParseUtil

public class WorldModuleParseUtil
extends Object

utility class that can be used by WorldModules to interpret frequently used value formats.


Method Summary
static float parseClearing(TagGroup tags, float defaultValue)
          retrieves clearing using (in this priority order) practical:maxheight tag, maxheight tag, defaultValue parameter
static float parseHeight(TagGroup tags, float defaultValue)
          retrieves height using (in this priority order) height tag, building:height tag, est_height tag, defaultValue parameter
static float parseWidth(TagGroup tags, float defaultValue)
          retrieves width using (in this priority order) width tag, est_width tag, defaultValue parameter
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseWidth

public static final float parseWidth(TagGroup tags,
                                     float defaultValue)
retrieves width using (in this priority order) width tag, est_width tag, defaultValue parameter


parseHeight

public static final float parseHeight(TagGroup tags,
                                      float defaultValue)
retrieves height using (in this priority order) height tag, building:height tag, est_height tag, defaultValue parameter


parseClearing

public static final float parseClearing(TagGroup tags,
                                        float defaultValue)
retrieves clearing using (in this priority order) practical:maxheight tag, maxheight tag, defaultValue parameter