Re: How do I create a box from fields in a table?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Rob Richardson <RDRichardson(at)rad-con(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How do I create a box from fields in a table?
Date: 2013-10-18 15:08:33
Message-ID: CAHyXU0wddoTokemidPMJW7xXF2uPETQAC__LNcQUN_KGj5xabw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 18, 2013 at 10:05 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Rob Richardson <RDRichardson(at)rad-con(dot)com> writes:
>> In my opinion, that is ugly to the point of uselessness.
>
> Indeed :-(
>
> For some reason, there's no constructor function to make a box from four
> floats. But there is a box constructor that takes two points, as well
> as a point constructor that takes two floats; so you could do something
> like
>
> box(point(location, 1), point(2, 3))

shoot -- I thought so -- I looked for that, and didn't find it. hm,
perhaps the geographical type documentation needs some TLC.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-10-18 15:17:06 Re: Cannot import logs from csv
Previous Message Helen Griffiths 2013-10-18 15:07:03 Cannot import logs from csv