Daniel Lau <iedaniel(at)ust(dot)hk> writes:
> I was to extract the '_lines' (path) if the lines are contained or on by a
> box-like polygon. The result turns wrong if the box-like polygon is
> changed from a square (x_max = y_max) to a rectangle (x_max <> y_max).
The examples you give are not "box-like"; they are in fact just line
segments. You need four points to define a box-like polygon.
AFAICS the quoted example is correct behavior.
regards, tom lane