pg.ddx.io  postgis-users@lists.osgeo.org mailing list archive (PostGIS users)  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
Subject: [postgis-users] X() function working for POINTs and MULTIPOINTs
Date: Fri, 24 Mar 2006 15:45:25 +0100
Message-ID: <44240605.4020902@logix-tt.com> (raw)
In-Reply-To: <1142871193.441ed4991a425@web-mail2.uibk.ac.at>
References: <1142871193.441ed4991a425@web-mail2.uibk.ac.at>

Hi, Bernhard,

Bernhard Reimar Hoefle wrote:

> The PostGIS x() function does not support MULTIPOINTs and the geometryN() does
> not support POINTs.
> 
> select x('MULTIPOINT(1 1 1,2 2 2)'::GEOMETRY);
> ERROR:  Argument to X() must be a point
> ERROR:  Argument to X() must be a point

You might want to write your own set returning plpgsql function. This
way, it is even possible that select your_x('MULTIPOINT(...)') returns
two rows, 1 and 2.

HTH,
Schabi



-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org




view thread (6+ messages)  latest in thread

Message-ID: <44240605.4020902@logix-tt.com>
Permalink:  ../44240605.4020902@logix-tt.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 using the --to and --cc options:
  reply via email

  To: postgis-users@lists.osgeo.org
  Cc: schabi@logix-tt.com
  Subject: Re: [postgis-users] X() function working for POINTs and MULTIPOINTs
  In-Reply-To: <44240605.4020902@logix-tt.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