wkb_ranges function

Extract ranges information