Re: Problem of creating geometry column (linestring)

Поиск
Список
Период
Сортировка
От Newperson
Тема Re: Problem of creating geometry column (linestring)
Дата
Msg-id 25530549.post@talk.nabble.com
обсуждение исходный текст
Ответ на Re: Problem of creating geometry column (linestring)  (Michael Wood <esiotrot@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Logging Question (SSL)
Следующее
От: Bhushan Verma
Дата:
Сообщение: Re: Databse installation problem