<br clear="all"><pre>>I have already loaded a table that contains X, Y and Z values. AT the time of loading it was thought we did not need a spatial component to this table.<br>>Now we realize that we do have a need but do not want to reload the 190 million records again and create the point features on load.<br>
>Is it possible to create the point geometry in the existing table....if so, how?<br>>Thanks in advance.<br>>Tony Appel<br><br><br>Assume the X,Y,Z are in three fields in a "tablename" table.<br><br>SELECT AddGeometryColumn( 'public','tablename','geom', <epsg>, 'POINT', 3 );<br>
update public.tablename set geom = ST_MakePoint(X::double,Y::double,Z::double);<br><br>epsg is a integer value of your SRS (epsg code)<br></pre><br>Regards,<br><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>
qwerty אטלעש<br>-----------------<br><br>