Hi,<br>ST_MakePoint return point with unknow geometry.<br>You need to use something like:<br>ST_SetSRID(ST_MakePoint(x,y,z),<your_srid>)<br><br>Fred<br><br><pre class="programlisting"><br></pre><br><br><div class="gmail_quote">
On Thu, Aug 12, 2010 at 7:09 PM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br clear="all"><pre><div class="im">>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></div><div class="im">>Thanks in advance.<br>>Tony Appel<br><br><br></div>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><font color="#888888"><br>-- <br>-----------------<br>Andrea Peri<br>
. . . . . . . . . <br>
qwerty אטלעש<br>-----------------<br><br>
</font><br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>