def compute(self, dataset_pool):
     distance = self.get_dataset().get_attribute('distance_to_highway')
     urbansim_constant = dataset_pool.get_dataset('urbansim_constant')
     length = UrbanSimLength(distance,
                             urbansim_constant["gridcell_width"].units)
     return length.less_than(
         urbansim_constant["near_highway_threshold_unit"])
Beispiel #2
0
 def compute(self, dataset_pool):
     distance = self.get_dataset().get_attribute('distance_to_highway')
     urbansim_constant = dataset_pool.get_dataset('urbansim_constant')
     length = UrbanSimLength(distance, urbansim_constant["gridcell_width"].units)
     return length.less_than(urbansim_constant["near_highway_threshold_unit"])
def get_is_near_arterial(distance, urbansim_constant):
    length = UrbanSimLength(distance,
                            urbansim_constant["gridcell_width"].units)
    return length.less_than(urbansim_constant["near_arterial_threshold_unit"])
def get_is_near_arterial(distance, urbansim_constant):
    length = UrbanSimLength(distance, urbansim_constant["gridcell_width"].units)
    return length.less_than(urbansim_constant["near_arterial_threshold_unit"])