pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Moore <martin.moore@avbrief.com>
To: 'Andreas Kretschmer' <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
Subject: RE: Circle and box intersect
Date: Fri, 16 Mar 2018 12:32:57 -0000
Message-ID: <5aabb97b.178bdf0a.74160.ff6a@mx.google.com> (raw)
In-Reply-To: <088af4a1-47ae-7cf8-1b0f-53917c3dcbee@a-kretschmer.de>
References: <E269BF34-4CE1-47EC-8A80-F18DE55E2BEF@open-lab.org>
	<20180315204851.GU2416@tamriel.snowman.net>
	<CANu8FixnK=FJswaK8o=eWZ7smOTh=qpb8ciFAYd9oWUCS4tb1A@mail.gmail.com>
	<206B6740-DCC5-4491-A87D-EEF5CBF8EA6B@open-lab.org>
	<20180315220512.GV2416@tamriel.snowman.net>
	<CANu8FiyPd5DUuP01RKjmYzxZcBFaPFfV6qZeiEzQJU5QAfx2jg@mail.gmail.com>
	<20180316021411.GX2416@tamriel.snowman.net>
	<CANu8Fiyq8kFxMh5eoJVb4-5fCH=koXe02pd2rBGTF+cKYtqSLQ@mail.gmail.com>
	<23415.1521170582@sss.pgh.pa.us>
	<5aab95c9.8587df0a.61cae.56f9@mx.google.com>
	<088af4a1-47ae-7cf8-1b0f-53917c3dcbee@a-kretschmer.de>

Cheers - I'd tried postGIS on 9.6 but had install issues. Installed first time on 10 :)


-----Original Message-----
From: Andreas Kretschmer [mailto:andreas@a-kretschmer.de] 
Sent: 16 March, 2018 11:46 AM
To: pgsql-general@lists.postgresql.org
Subject: Re: Circle and box intersect



Am 16.03.2018 um 11:00 schrieb Martin Moore:
> PG10
>
> Is there an operator to determine if a box and circle intersect?
> I can only see box && box and can use centre+rad and distance to 
> calculate circle:circle.
>
> Thanks.
>
>
please don't hijack other mail-threads by answering & changing the subject, your mail still contains references to "SELECT .. FOR UPDATE: 
find out who locked a row"
Create a new mail for a new thread!


to your question: consider PostGIS and it's functions st_intersects()

Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com







view thread (3+ messages)

Message-ID: <5aabb97b.178bdf0a.74160.ff6a@mx.google.com>
Permalink:  ../5aabb97b.178bdf0a.74160.ff6a@mx.google.com/
Also on:    postgresql.org/message-id/5aabb97b.178bdf0a.74160.ff6a@mx.google.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: martin.moore@avbrief.com, andreas@a-kretschmer.de
  Subject: Re: Circle and box intersect
  In-Reply-To: <5aabb97b.178bdf0a.74160.ff6a@mx.google.com>
  References: <E269BF34-4CE1-47EC-8A80-F18DE55E2BEF@open-lab.org> <20180315204851.GU2416@tamriel.snowman.net> <CANu8FixnK=FJswaK8o=eWZ7smOTh=qpb8ciFAYd9oWUCS4tb1A@mail.gmail.com> <206B6740-DCC5-4491-A87D-EEF5CBF8EA6B@open-lab.org> <20180315220512.GV2416@tamriel.snowman.net> <CANu8FiyPd5DUuP01RKjmYzxZcBFaPFfV6qZeiEzQJU5QAfx2jg@mail.gmail.com> <20180316021411.GX2416@tamriel.snowman.net> <CANu8Fiyq8kFxMh5eoJVb4-5fCH=koXe02pd2rBGTF+cKYtqSLQ@mail.gmail.com> <23415.1521170582@sss.pgh.pa.us> <5aab95c9.8587df0a.61cae.56f9@mx.google.com> <088af4a1-47ae-7cf8-1b0f-53917c3dcbee@a-kretschmer.de> <5aabb97b.178bdf0a.74160.ff6a@mx.google.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox