Reads mercator bounds, returns (min_lon, min_lat, max_lon, max_lat).
(f, coord_size)
| 335 | |
| 336 | |
| 337 | def read_bounds(f, coord_size) -> mi.Rect: |
| 338 | """Reads mercator bounds, returns (min_lon, min_lat, max_lon, max_lat).""" |
| 339 | rmin = mwm_bitwise_split(read_varint(f)) |
| 340 | rmax = mwm_bitwise_split(read_varint(f)) |
| 341 | pmin = to_4326(coord_size, rmin) |
| 342 | pmax = to_4326(coord_size, rmax) |
| 343 | return mi.Rect(left_bottom=pmin, right_top=pmax) |
| 344 | |
| 345 | |
| 346 | def read_string(f, plain: bool = False, decode: bool = True) -> AnyStr: |
no test coverage detected