<s> from shapely . geometry import shape <EOL> with features_in_tile_layer ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , '<STR_LIT>' ) as buildings : <EOL> max_w = <NUM_LIT> <EOL> max_h = <NUM_LIT> <EOL> saw_the_high_line = False <EOL> for building in buildings : <EOL> bounds = shape ( building [ '<STR_LIT>' ] ) . bounds <EOL> w = bounds [ <NUM_LIT:2> ] - bounds [ <NUM_LIT:0> ] <EOL> h = bounds [ <NUM_LIT:3> ] - bounds [ <NUM_LIT:1> ] <EOL> if building [ '<STR_LIT>' ] [ '<STR_LIT:id>' ] == <NUM_LIT> : <EOL> saw_the_high_line = True <EOL> if w > max_w or h > max_h : <EOL> raise Exception ( "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> % ( building [ '<STR_LIT>' ] [ '<STR_LIT:id>' ] , <EOL> w , h , max_w , max_h ) ) <EOL> if not saw_the_high_line : <EOL> raise Exception ( "<STR_LIT>" <EOL> "<STR_LIT>" ) </s>
