Hello i have a little problem creating a new column for my table and inserting there new data.
<br><br>I have a talbe:
<br><br>CREATE TABLE "axes" (
<br>gid serial PRIMARY KEY,
<br>"name" varchar(100));
<br>SELECT AddGeometryColumn('','axes','the_geom','27492','LINESTRING',2);
<br><br>and this table if full of data
<br><br>now i want to add new column with another SRID like wgs84 srid = 4326
<br><br>SELECT AddGeometryColumn('','axes','the_geom_wgs84','4326','LINESTRING',2);
<br><br>and now i need to create a query that reads each row from
column the_geom, converts it by Transform(the_geom, 4326) and put into
a new kolumn the_geom_wgs84 in the same row.
<br><br>Do You have an idea if it is possible?
<br><br>I tried to do something like that:
<br><br>SELECT AddGeometryColumn('','axes','the_geom_wgs84','4326','LINESTRING',2);
<br>INSERT INTO "axes" (the_geom_wgs84) VALUES (select AsText(Transform(the_geom,4326)) from axes)