point does not return a center of lseg

Started by Kenji Sugitaover 23 years ago2 messagespatches
Jump to latest
#1Kenji Sugita
sugita@srapc1327.sra.co.jp

Point does not return a center of lseg.

Before patch:

=# select point(lseg '((1, 1), (2, 2))');
point
-------------
(-0.5,-0.5)
(1 row)

=#

After patch:

=# select point(lseg '((1, 1), (2, 2))');
point
-----------
(1.5,1.5)
(1 row)

=#

Attachments:

point-lseg.patchtext/plain; charset=us-asciiDownload+2-2
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Kenji Sugita (#1)
Re: point does not return a center of lseg

Kenji Sugita <sugita@srapc1327.sra.co.jp> writes:

Point does not return a center of lseg.

Hm, I wonder how *that* escaped notice for so long?

Patch applied in HEAD and REL7_3. Thanks.

regards, tom lane