Added ob_gzhandler to compress JSON.
Build up polygon, but allow for segment resolution in the horizontal lines to prevent "curvy" GC lines