Re: [GENERAL] simple coordinate system

2007-04-06 Thread Bruno Wolff III
On Fri, Mar 16, 2007 at 15:55:15 +0100,
  Robin Ericsson [EMAIL PROTECTED] wrote:
 On 3/16/07, Tom Lane [EMAIL PROTECTED] wrote:
 Robin Ericsson [EMAIL PROTECTED] writes:
  Yes, I've looked at those, I was thinking that point looked like a
  good type, but it's only 2d, so maybe I need a hint on how to use this
  in a 3d environment.
 
 Yeah, the built-in geometric types are all 2D.  If you need 3D, perhaps
 PostGIS can help --- otherwise you're on your own :-(.  But adding a new
 datatype to PG isn't hard, if you can hack C at all.
 
 My hope was that there was something between standard PostgreSQL and
 PostGIS as I didn't want to bring in the whole PostGIS into my
 application. But probably it's worth it anyways.

The cube contrib stuff might be useful for you.

---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?

   http://www.postgresql.org/docs/faq


Re: [GENERAL] simple coordinate system

2007-03-16 Thread Robin Ericsson

On 3/15/07, Webb Sprague [EMAIL PROTECTED] wrote:

http://www.postgresql.org/docs/8.2/static/datatype-geometric.html

Have you looked at these yet?  If not, you asked your question
prematurely and should have read the docs.  If so, in what respect do
they not work for you?


Yes, I've looked at those, I was thinking that point looked like a
good type, but it's only 2d, so maybe I need a hint on how to use this
in a 3d environment.

--
   regards,
   Robin

---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
  choose an index scan if your joining column's datatypes do not
  match


Re: [GENERAL] simple coordinate system

2007-03-16 Thread Tom Lane
Robin Ericsson [EMAIL PROTECTED] writes:
 Yes, I've looked at those, I was thinking that point looked like a
 good type, but it's only 2d, so maybe I need a hint on how to use this
 in a 3d environment.

Yeah, the built-in geometric types are all 2D.  If you need 3D, perhaps
PostGIS can help --- otherwise you're on your own :-(.  But adding a new
datatype to PG isn't hard, if you can hack C at all.

regards, tom lane

---(end of broadcast)---
TIP 4: Have you searched our list archives?

   http://archives.postgresql.org/


Re: [GENERAL] simple coordinate system

2007-03-16 Thread Robin Ericsson

On 3/16/07, Tom Lane [EMAIL PROTECTED] wrote:

Robin Ericsson [EMAIL PROTECTED] writes:
 Yes, I've looked at those, I was thinking that point looked like a
 good type, but it's only 2d, so maybe I need a hint on how to use this
 in a 3d environment.

Yeah, the built-in geometric types are all 2D.  If you need 3D, perhaps
PostGIS can help --- otherwise you're on your own :-(.  But adding a new
datatype to PG isn't hard, if you can hack C at all.


My hope was that there was something between standard PostgreSQL and
PostGIS as I didn't want to bring in the whole PostGIS into my
application. But probably it's worth it anyways.

--
   regards,
   Robin

---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?

  http://www.postgresql.org/docs/faq


[GENERAL] simple coordinate system

2007-03-15 Thread Robin Ericsson

Hi,

I'm planning a simple coordinate system, where objects are described
as x, y and z. Are there any contribs or extensions available that can
help me with datatypes, calculation of length between two points, etc?

--
   regards,
   Robin

---(end of broadcast)---
TIP 6: explain analyze is your friend


Re: [GENERAL] simple coordinate system

2007-03-15 Thread Webb Sprague

... planning a simple coordinate system, where objects are described

as x, y and z. Are there any contribs or extensions available that can
help me with datatypes, calculation of length between two points, etc?


google postgis.  It is for geographic stuff, so maybe overkill, but
maybe not.  There are are also geometry types native to Postgres that
you can find in the docs



--
regards,
Robin

---(end of broadcast)---
TIP 6: explain analyze is your friend



---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
  choose an index scan if your joining column's datatypes do not
  match


Re: [GENERAL] simple coordinate system

2007-03-15 Thread Robin Ericsson

On 3/15/07, Webb Sprague [EMAIL PROTECTED] wrote:

... planning a simple coordinate system, where objects are described
 as x, y and z. Are there any contribs or extensions available that can
 help me with datatypes, calculation of length between two points, etc?

google postgis.  It is for geographic stuff, so maybe overkill, but
maybe not.  There are are also geometry types native to Postgres that
you can find in the docs


I was thinking about PostGIS, but it seemed overkill for my purpose.
Therefore I asked in the first place :)

--
   regards,
   Robin

---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly


Re: [GENERAL] simple coordinate system

2007-03-15 Thread Webb Sprague

http://www.postgresql.org/docs/8.2/static/datatype-geometric.html

Have you looked at these yet?  If not, you asked your question
prematurely and should have read the docs.  If so, in what respect do
they not work for you?


On 3/15/07, Robin Ericsson [EMAIL PROTECTED] wrote:

On 3/15/07, Webb Sprague [EMAIL PROTECTED] wrote:
 ... planning a simple coordinate system, where objects are described
  as x, y and z. Are there any contribs or extensions available that can
  help me with datatypes, calculation of length between two points, etc?

 google postgis.  It is for geographic stuff, so maybe overkill, but
 maybe not.  There are are also geometry types native to Postgres that
 you can find in the docs

I was thinking about PostGIS, but it seemed overkill for my purpose.
Therefore I asked in the first place :)

--
   regards,
   Robin



---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster