Re: Postgres native geometry types

From: Szymon Guz <mabewlun(at)gmail(dot)com>
To: Kasia Tuszynska <ktuszynska(at)esri(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Postgres native geometry types
Date: 2011-03-05 13:26:45
Message-ID: AANLkTinOh5xrY7_Et81iC4g5G2dygXwH0LPUfW-ayTu1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 4 March 2011 22:58, Kasia Tuszynska <ktuszynska(at)esri(dot)com> wrote:

> Hi Everybody,
>
>
>
> I am doing some testing on the postgres native geometry types, namely:
> point, line, lseg, box, path (closed), path [open], polygon and circle.
>
>
>
> Does anyone know what are they being used for? PostGIS is usually
> designated as the gis “module” to postgres and there are other spatial types
> that work on postgres.
>
> So, what are the native geometry types on postgres used for?
> http://www.postgresql.org/docs/9.0/static/datatype-geometric.html#AEN6332
>
>
>

Hi,
I think this part of PostGIS documentation describes the difference well
http://postgis.refractions.net/documentation/manual-1.5/ch04.html#PostGIS_GeographyVSGeometry
.

The main idea is that normal geometry types are using standard flat surface
and normal (Euclidean) 3d space.
The postgis types are using some spheroid defined in an appripriate WGS,
this spheroid is similar to Earth shape and has its size in meters, not just
virtual mathematical coordinates.

If you use the normal geometry types, you do it like you'd perform
calculations in math, using some virtual points and distance calculated
using the Pythagorean theorem.
Using postgis, you use points that are defined on some spheroid (depending
on the WGS) and you provide longitude and latitude. The distance between two
geographical points can be calculated in meters and is defined on surface of
the spheroid, not in straight line like in math.

I hope that helps a little.

regards
Szymon

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Szymon Guz 2011-03-05 15:53:07 Re: Postgres native geometry types
Previous Message raghu ram 2011-03-05 11:36:36 Re: Error when trying to create Database Cluster