Re: Retreving X, Y, Z from the Geometry column in oracle 10g
| From: | Evert Lammerts | Date: | Wed, 20 Feb 2008 09:24:59 +0000 |
| Subject: | Re: Retreving X, Y, Z from the Geometry column in oracle 10g | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44633@lists.php.net to get a copy of this message | ||
You'll need an oracle - oci8 expert for this. A little googling told me that in order to use user defined data types (and i guess enhanced build in data types as GEOMETRY too) you will need oci8 functions (http://bugs.php.net/bug.php?id=39887), specifically the function bind_array_by_name() (http://usphp.com/manual/en/function.oci-bind-array-by-name.php).
In general, and I bet you do, keep the oci8 function overview close (http://usphp.com/manual/en/ref.oci8.php).
Evert
Hebat-Allah Farag wrote:
Dear all , I am stick since 2 days at the same point, I am using 10g, PHP my problem now is how to fecth the X, Y , z coordinates from the geometry column to view it on my web page, i don't understand the (SDO_ORDINATES), what is its type & how i can deal with it. my simple code is: $conn=oci_connect('User','pass','//localhost/x') $sqlCol="SELECT c.GEOMETRY.SDO_ORDINATES from SSS c WHERE c.CODE = '80A' "; $resultCol=oci_parse($conn,$sqlCol); $excuteResCol=oci_execute($resultCol); $resultRecordsCol=oci_fetch_array($resultCol); I got an error on the last line as (ORA-00932: inconsistent datatypes: expected CHAR got ARRAY ) i don't know how to deal with this resultset. If anyone could help please replay. Thanks for your help