Page 1 of 1

Reading and writting spatial data.

Posted: Sun 19 May 2013 08:38
by FCS
Hello,

How to read and write spatial data from/into the PostgreSQL or Oracle databases?
Is there something like asString for the geometry ?

Regards
Michal

Re: Reading and writting spatial data.

Posted: Mon 20 May 2013 06:33
by AlexP
Hello,

The GEOMETRY type is a PostgreSQL and Oracle server-specific types and it cannot be brought to UniDAC. Therefore in UniDAC you can work with such field types only as with strings. For example, to record data to a Point field, you can use the following code:

Code: Select all

  UniQuery1.FieldByName('f_point').AsString := '(2,3)';

Re: Reading and writting spatial data.

Posted: Mon 20 May 2013 07:26
by FCS
Hello,

Thanks, I will try this method.

Regards
Michal

Re: Reading and writting spatial data.

Posted: Wed 22 May 2013 10:54
by AlexP
Hello,

If you have any other questions, feel free to contact us