Re: Problem of creating geometry column (linestring) - Mailing list pgsql-novice

From Newperson
Subject Re: Problem of creating geometry column (linestring)
Date
Msg-id 25530549.post@talk.nabble.com
Whole thread Raw
In response to Re: Problem of creating geometry column (linestring)  (Michael Wood <esiotrot@gmail.com>)
List pgsql-novice

Michael Wood-8 wrote:
>
> 2009/9/18 Newperson <useintowngas@gmail.com>:
>
> You have a typo in the name of the function.
> I have never done this, but maybe if you fix the typo above it will work?
>
> --
> Michael Wood <esiotrot@gmail.com>
>
> --
> Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>
>
Dear all,

I have fixed the above error.

the sql which works is:

SELECT AddGeometryColumn( 'public', 'pipe', 'pipe_geom', 4269, 'POINT', 2 );

I think this part has no typo.

UPDATE pipe
SET pipe_geom = GeometryFromText('LINESTRING('||x1||' '||y1||','||x2||'
'||y2||',
'||x3||' '||y3||','||x4||' '||y4||')' , 4269);

This part cannot work if there is no space between ' '.
--
View this message in context:
http://www.nabble.com/Problem-of-creating-geometry-column-%28linestring%29-tp25502605p25530549.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Logging Question (SSL)
Next
From: Bhushan Verma
Date:
Subject: Re: Databse installation problem